vty: move vty_out_rate_ctr_group prototype to osmocom/vty/misc.h
authorPablo Neira Ayuso <pablo@gnumonks.org>
Mon, 28 Mar 2011 17:24:21 +0000 (19:24 +0200)
committerHarald Welte <laforge@gnumonks.org>
Mon, 28 Mar 2011 18:00:45 +0000 (20:00 +0200)
Before this patch, it was in osmocom/core/rate_ctr.h

include/osmocom/core/rate_ctr.h
include/osmocom/vty/Makefile.am
include/osmocom/vty/misc.h [new file with mode: 0644]

index dba573d..9efc23d 100644 (file)
@@ -75,7 +75,4 @@ static inline void rate_ctr_inc(struct rate_ctr *ctr)
 /* Initialize the counter module */
 int rate_ctr_init(void *tall_ctx);
 
-struct vty;
-void vty_out_rate_ctr_group(struct vty *vty, const char *prefix,
-                           struct rate_ctr_group *ctrg);
 #endif /* RATE_CTR_H */
index d2f0616..83d0010 100644 (file)
@@ -1,4 +1,4 @@
 osmovty_HEADERS = buffer.h command.h vector.h vty.h \
-       telnet_interface.h logging.h
+       telnet_interface.h logging.h misc.h
 
 osmovtydir = $(includedir)/osmocom/vty
diff --git a/include/osmocom/vty/misc.h b/include/osmocom/vty/misc.h
new file mode 100644 (file)
index 0000000..707f82f
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef OSMO_VTY_MISC_H
+#define OSMO_VTY_MISC_H
+
+#include <osmocom/vty/vty.h>
+#include <osmocom/core/rate_ctr.h>
+
+void vty_out_rate_ctr_group(struct vty *vty, const char *prefix,
+                            struct rate_ctr_group *ctrg);
+
+#endif