aboutsummaryrefslogtreecommitdiff
path: root/plugin-api.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-21 00:58:19 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-21 01:02:16 +0200
commit47aaedd26a5ebabb3f009ca0c24c130c46558352 (patch)
tree88cfb53cd79b1538759c81c9e6e83207de1f6c1b /plugin-api.h
parent2b74a188332f152e8952725812e086968a41e925 (diff)
downloadponymap-47aaedd26a5ebabb3f009ca0c24c130c46558352.tar.gz
ponymap-47aaedd26a5ebabb3f009ca0c24c130c46558352.tar.xz
ponymap-47aaedd26a5ebabb3f009ca0c24c130c46558352.zip
Implement the HTTP plugin
Ended up including Joyent's http-parser library.
Diffstat (limited to 'plugin-api.h')
-rw-r--r--plugin-api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin-api.h b/plugin-api.h
index 3406308..7a73c59 100644
--- a/plugin-api.h
+++ b/plugin-api.h
@@ -50,11 +50,11 @@ struct service
// FIXME: the dependency on `struct str' is not very good
void (*on_data) (void *handle, struct unit *u, struct str *data);
- // XXX: do we need these at all? Is there any use for them?
-
/// Server has closed the connection
void (*on_eof) (void *handle, struct unit *u);
+ // XXX: do we need these at all? Is there any use for them?
+
/// Network or other error has occured
void (*on_error) (void *handle, struct unit *u);