info: rename a http header function
[olsrd.git] / lib / info / info_types.h
index 8d051bb..82001af 100644 (file)
@@ -39,8 +39,8 @@
  *
  */
 
-#ifndef _OLSRD_INFO_TYPES_H
-#define _OLSRD_INFO_TYPES_H
+#ifndef _OLSRD_LIB_INFO_INFO_TYPES_H_
+#define _OLSRD_LIB_INFO_INFO_TYPES_H_
 
 #include <stdbool.h>
 
@@ -98,16 +98,16 @@ typedef struct {
     printer_generic interfaces;
     printer_generic config;
     printer_generic plugins;
-} printer_functions_t;
-
-#define MAX_CLIENTS 3
+} info_plugin_functions_t;
 
 typedef struct {
-  char *buffer[MAX_CLIENTS];
-  size_t size[MAX_CLIENTS];
-  size_t written[MAX_CLIENTS];
-  int socket[MAX_CLIENTS];
-  int count;
-} outbuffer_t;
+    union olsr_ip_addr accept_ip;
+    union olsr_ip_addr listen_ip;
+    int ipc_port;
+    int nompr;
+    bool http_headers;
+    bool allow_localhost;
+    int ipv6_only;
+} info_plugin_config_t;
 
-#endif /* _OLSRD_INFO_TYPES_H */
+#endif /* _OLSRD_LIB_INFO_INFO_TYPES_H_ */