From 70004fcc6dcd5dd979c10143872b2a136371e371 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 28 Mar 2011 19:24:21 +0200 Subject: vty: move vty_out_rate_ctr_group prototype to osmocom/vty/misc.h 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 dba573d9..9efc23db 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 d2f0616d..83d00107 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 00000000..707f82fa --- /dev/null +++ b/include/osmocom/vty/misc.h @@ -0,0 +1,10 @@ +#ifndef OSMO_VTY_MISC_H +#define OSMO_VTY_MISC_H + +#include +#include + +void vty_out_rate_ctr_group(struct vty *vty, const char *prefix, + struct rate_ctr_group *ctrg); + +#endif -- cgit v1.2.3