| author | ali <ali@juiblex.co.uk> |
| Thu Sep 26 08:36:35 2013 +0100 (2013-09-26) | |
| changeset 121 | ea3555c0bf85 |
| parent 103 | adc06e9e8470 |
| permissions | -rw-r--r-- |
1 #ifndef COUNTERS_H
2 #define COUNTERS_H
4 #include <glib.h>
6 /* Special counters live in the private use area */
7 enum {
8 COUNTER_ILLUSTRATION=0xE000,
9 NO_SPECIAL_COUNTERS
10 };
12 struct counters {
13 GTree *matching;
14 int c_unders;
15 };
17 void increment_matching(struct counters *counters,gunichar ch,gboolean open);
18 int matching_count(const struct counters *counters,gunichar ch,gboolean open);
19 int matching_difference(const struct counters *counters,gunichar ch);
20 void counters_reset(struct counters *counters);
21 void counters_destroy(struct counters *counters);
23 #endif /* COUNTERS_H */