summaryrefslogtreecommitdiff
path: root/cethcan/cethcan.h
diff options
context:
space:
mode:
Diffstat (limited to 'cethcan/cethcan.h')
-rw-r--r--cethcan/cethcan.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cethcan/cethcan.h b/cethcan/cethcan.h
index 4777f5f..73492cc 100644
--- a/cethcan/cethcan.h
+++ b/cethcan/cethcan.h
@@ -21,6 +21,7 @@
#include <assert.h>
#include <event2/event.h>
+#include <event2/buffer.h>
#include <jansson.h>
#include "protocol.h"
@@ -75,6 +76,10 @@ extern void can_broadcast(struct can_user *origin, struct can_message *msg);
extern void can_json(json_t *json, enum json_subtype type);
extern void can_init(void);
+extern void rpc_perform(struct evbuffer *request,
+ void (*response_handler)(void *arg, struct evbuffer *data),
+ void *handler_arg);
+
extern void json_bump_longpoll(void);
extern int socan_init(json_t *config);