aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocore/include/osmocore/statistics.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2010-02-20 23:22:54 +0100
committerHarald Welte <laforge@netfilter.org>2010-02-20 23:22:54 +0100
commit1ed97629adffa6b5345963ec8905526da835535a (patch)
treea49e90400aa3a59c8e68db352c0c3c5a4f3dab6a /libosmocore/include/osmocore/statistics.h
parent8427e2e5df902a97ab154db2638fcf948bb38666 (diff)
remove libosmocore from openbsc
From now on, you will have to obtain, build and install libosmocore before being able to build openbsc. Sorry for that. But I hope it's a small price to pay for having no code duplication with our work on the phone side GSM stack!
Diffstat (limited to 'libosmocore/include/osmocore/statistics.h')
-rw-r--r--libosmocore/include/osmocore/statistics.h31
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 */