diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-28 09:44:26 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-28 09:44:26 +0200 |
commit | bf51438a8aeaa67076e209587b83cafe6c4fa4d2 (patch) | |
tree | 23ccc827f6ad1a3fddd97fe66ed9b45342ea8df0 /libosmocore/include/osmocore/statistics.h | |
parent | 900aeaf41539a0577f33b501b2cc0c525ce4ce34 (diff) |
remove libosmocore from openbsc.git
The idea was great, but it never really worked in reality...
Diffstat (limited to 'libosmocore/include/osmocore/statistics.h')
-rw-r--r-- | libosmocore/include/osmocore/statistics.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libosmocore/include/osmocore/statistics.h b/libosmocore/include/osmocore/statistics.h deleted file mode 100644 index 1d56054ab..000000000 --- a/libosmocore/include/osmocore/statistics.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef _STATISTICS_H -#define _STATISTICS_H - -struct counter { - struct llist_head list; - const char *name; - const char *description; - unsigned long value; -}; - -static inline void counter_inc(struct counter *ctr) -{ - ctr->value++; -} - -static inline unsigned long counter_get(struct counter *ctr) -{ - return ctr->value; -} - -static inline void counter_reset(struct counter *ctr) -{ - ctr->value = 0; -} - -struct counter *counter_alloc(const char *name); -void counter_free(struct counter *ctr); - -int counters_for_each(int (*handle_counter)(struct counter *, void *), void *data); - -#endif /* _STATISTICS_H */ |