[PATCH 3/4] vty: move vty_out_rate_ctr_group prototype to osmocom/vty/misc.h

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

pablo at gnumonks.org pablo at gnumonks.org
Mon Mar 28 17:24:21 UTC 2011


From: Pablo Neira Ayuso <pablo at gnumonks.org>

Before this patch, it was in osmocom/core/rate_ctr.h
---
 include/osmocom/core/rate_ctr.h |    3 ---
 include/osmocom/vty/Makefile.am |    2 +-
 include/osmocom/vty/misc.h      |   10 ++++++++++
 3 files changed, 11 insertions(+), 4 deletions(-)
 create mode 100644 include/osmocom/vty/misc.h

diff --git a/include/osmocom/core/rate_ctr.h b/include/osmocom/core/rate_ctr.h
index dba573d..9efc23d 100644
--- a/include/osmocom/core/rate_ctr.h
+++ b/include/osmocom/core/rate_ctr.h
@@ -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 */
diff --git a/include/osmocom/vty/Makefile.am b/include/osmocom/vty/Makefile.am
index d2f0616..83d0010 100644
--- a/include/osmocom/vty/Makefile.am
+++ b/include/osmocom/vty/Makefile.am
@@ -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
index 0000000..707f82f
--- /dev/null
+++ b/include/osmocom/vty/misc.h
@@ -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
-- 
1.7.2.3





More information about the OpenBSC mailing list