info: rename type printer_functions_t to info_plugin_functions_t
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 11:00:30 +0000 (12:00 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 19:54:15 +0000 (20:54 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/info_types.h
lib/info/olsrd_info.c
lib/info/olsrd_info.h
lib/jsoninfo/src/olsrd_plugin.c
lib/txtinfo/src/olsrd_plugin.c

index dc24d35..11c54ff 100644 (file)
@@ -98,7 +98,7 @@ typedef struct {
     printer_generic interfaces;
     printer_generic config;
     printer_generic plugins;
-} printer_functions_t;
+} info_plugin_functions_t;
 
 #define MAX_CLIENTS 3
 
index 275a600..bfea91b 100644 (file)
@@ -53,7 +53,7 @@
 #endif /* _WIN32 */
 
 static const char * PLUGIN_NAME = NULL;
-static printer_functions_t *printer_functions = NULL;
+static info_plugin_functions_t *printer_functions = NULL;
 static info_plugin_config_t *info_plugin_config;
 
 static int ipc_socket = -1;
@@ -403,7 +403,7 @@ static int plugin_ipc_init(void) {
  *This function is called by the my_init
  *function in uolsrd_plugin.c
  */
-int info_plugin_init(const char * plugin_name, printer_functions_t *functions, info_plugin_config_t *config) {
+int info_plugin_init(const char * plugin_name, info_plugin_functions_t *functions, info_plugin_config_t *config) {
   printer_functions = functions;
   PLUGIN_NAME = plugin_name;
   info_plugin_config = config;
index 382d14d..b498653 100644 (file)
@@ -44,7 +44,7 @@
 
 #include "info_types.h"
 
-int info_plugin_init(const char * plugin_name, printer_functions_t *functions, info_plugin_config_t *config);
+int info_plugin_init(const char * plugin_name, info_plugin_functions_t *functions, info_plugin_config_t *config);
 void info_plugin_exit(void);
 
 #endif /* _OLSRD_INFO_INFO_H */
index fffdfe2..01c5fa8 100644 (file)
@@ -53,7 +53,7 @@
 #define MOD_DESC PLUGIN_TITLE " " PLUGIN_VERSION " by " PLUGIN_AUTHOR
 #define PLUGIN_INTERFACE_VERSION 5
 
-static printer_functions_t printer_functions = { //
+static info_plugin_functions_t printer_functions = { //
     //
         .init = &plugin_init, //
         .is_command = &isCommand, //
index 6f8247c..01fd2c2 100644 (file)
@@ -53,7 +53,7 @@
 #define MOD_DESC PLUGIN_TITLE " " PLUGIN_VERSION " by " PLUGIN_AUTHOR
 #define PLUGIN_INTERFACE_VERSION 5
 
-static printer_functions_t printer_functions = { //
+static info_plugin_functions_t printer_functions = { //
     //
         .init = NULL, //
         .is_command = &isCommand, //