txtinfo: wrap the outbuffer in a struct for easier usage
[olsrd.git] / lib / info / info_types.h
index 652d174..bd5905f 100644 (file)
@@ -90,4 +90,14 @@ typedef struct {
     printer_generic plugins;
 } printer_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;
+} outbuffer_t;
+
 #endif /* _OLSRD_INFO_TYPES_H */