diff -r 3f655b1b0d93 -r 5e27fa988c5c bookloupe/counters.h --- a/bookloupe/counters.h Sat Sep 21 18:28:40 2013 +0100 +++ b/bookloupe/counters.h Mon Sep 30 08:18:42 2013 +0100 @@ -3,6 +3,12 @@ #include +/* Special counters live in the private use area */ +enum { + COUNTER_ILLUSTRATION=0xE000, + NO_SPECIAL_COUNTERS +}; + struct counters { GTree *matching; long quot; @@ -12,6 +18,7 @@ void increment_matching(struct counters *counters,gunichar ch,gboolean open); int matching_count(const struct counters *counters,gunichar ch,gboolean open); int matching_difference(const struct counters *counters,gunichar ch); +void counters_reset(struct counters *counters); void counters_destroy(struct counters *counters); #endif /* COUNTERS_H */