bookloupe/counters.h
changeset 94 3f655b1b0d93
child 103 adc06e9e8470
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bookloupe/counters.h	Sat Sep 21 18:28:40 2013 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +#ifndef COUNTERS_H
     1.5 +#define COUNTERS_H
     1.6 +
     1.7 +#include <glib.h>
     1.8 +
     1.9 +struct counters {
    1.10 +    GTree *matching;
    1.11 +    long quot;
    1.12 +    int c_unders;
    1.13 +};
    1.14 +
    1.15 +void increment_matching(struct counters *counters,gunichar ch,gboolean open);
    1.16 +int matching_count(const struct counters *counters,gunichar ch,gboolean open);
    1.17 +int matching_difference(const struct counters *counters,gunichar ch);
    1.18 +void counters_destroy(struct counters *counters);
    1.19 +
    1.20 +#endif /* COUNTERS_H */