[Olsr-dev] [PATCH v1 06/10] info: add function to the function table to output an error

Ferry Huberts (spam-protected)
Sun Feb 21 18:56:19 CET 2016


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/info_types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/info/info_types.h b/lib/info/info_types.h
index d0e0a1d..682d407 100644
--- a/lib/info/info_types.h
+++ b/lib/info/info_types.h
@@ -78,6 +78,7 @@ typedef void (*init_plugin)(const char *plugin_name);
 typedef bool (*command_matcher)(const char *str, unsigned int siw);
 typedef const char * (*mime_type)(unsigned int send_what);
 typedef void (*output_start_end)(struct autobuf *abuf);
+typedef void (*printer_error)(struct autobuf *abuf, unsigned int status, const char * req, bool http_headers);
 typedef void (*printer_generic)(struct autobuf *abuf);
 
 typedef struct {
@@ -86,6 +87,7 @@ typedef struct {
     mime_type determine_mime_type;
     output_start_end output_start;
     output_start_end output_end;
+    printer_error output_error;
     printer_generic neighbors;
     printer_generic links;
     printer_generic routes;
-- 
2.5.0




More information about the Olsr-dev mailing list