From b9041388478bd29c15d35764c2ee20b6bdec6d9e Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 4 Jun 2013 19:37:09 +0000 Subject: cethcan: JSON-RPC --- cethcan/cethcan.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cethcan/cethcan.h') 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 #include +#include #include #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); -- cgit v1.2.1