diff -r 000000000000 -r 7afb1e598abd bookloupe/counters.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bookloupe/counters.h Sat Sep 21 23:47:52 2013 +0100 @@ -0,0 +1,17 @@ +#ifndef COUNTERS_H +#define COUNTERS_H + +#include + +struct counters { + GTree *matching; + long quot; + int c_unders; +}; + +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_destroy(struct counters *counters); + +#endif /* COUNTERS_H */