[Olsr-dev] [PATCH v1 054/115] info: do not export info_plugin_outbuffer_t, only used internally

Ferry Huberts (spam-protected)
Wed Dec 2 21:28:27 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/info_types.h | 10 ----------
 lib/info/olsrd_info.c | 10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/lib/info/info_types.h b/lib/info/info_types.h
index 8166a5e..a54da0c 100644
--- a/lib/info/info_types.h
+++ b/lib/info/info_types.h
@@ -100,16 +100,6 @@ typedef struct {
     printer_generic plugins;
 } info_plugin_functions_t;
 
-#define MAX_CLIENTS 3
-
-typedef struct {
-    char *buffer[MAX_CLIENTS];
-    size_t size[MAX_CLIENTS];
-    size_t written[MAX_CLIENTS];
-    int socket[MAX_CLIENTS];
-    int count;
-} info_plugin_outbuffer_t;
-
 typedef struct {
     union olsr_ip_addr accept_ip;
     union olsr_ip_addr listen_ip;
diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index 7e437da..1159184 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -52,6 +52,16 @@
 #define close(x) closesocket(x)
 #endif /* _WIN32 */
 
+#define MAX_CLIENTS 3
+
+typedef struct {
+  char *buffer[MAX_CLIENTS];
+  size_t size[MAX_CLIENTS];
+  size_t written[MAX_CLIENTS];
+  int socket[MAX_CLIENTS];
+  int count;
+} info_plugin_outbuffer_t;
+
 static const char * PLUGIN_NAME = NULL;
 static info_plugin_functions_t *functions = NULL;
 static info_plugin_config_t *info_plugin_config;
-- 
2.5.0




More information about the Olsr-dev mailing list