diff options
author | David Lamparter <equinox@diac24.net> | 2013-06-04 19:37:09 +0000 |
---|---|---|
committer | root <root@beaglebone.local.sublab.org> | 2013-06-28 18:55:08 +0000 |
commit | b9041388478bd29c15d35764c2ee20b6bdec6d9e (patch) | |
tree | 1ff7d0fa09949c754b833914571b8aff4e5df000 /cethcan/cethcan.h | |
parent | c35cf61a00b0bd8c65b4aec5dc76eb235ab1dc81 (diff) |
cethcan: JSON-RPC
Diffstat (limited to 'cethcan/cethcan.h')
-rw-r--r-- | cethcan/cethcan.h | 5 |
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); |