yajl compatibility: forgot add_subscription (Thanks badboy)

This commit is contained in:
Michael Stapelberg 2011-04-28 20:25:57 +02:00
parent 646fcc3dbc
commit a9c0b44ce1
1 changed files with 5 additions and 0 deletions

View File

@ -304,8 +304,13 @@ IPC_HANDLER(get_outputs) {
* Callback for the YAJL parser (will be called when a string is parsed). * Callback for the YAJL parser (will be called when a string is parsed).
* *
*/ */
#if YAJL_MAJOR >= 2
static int add_subscription(void *extra, const unsigned char *s,
size_t len) {
#else
static int add_subscription(void *extra, const unsigned char *s, static int add_subscription(void *extra, const unsigned char *s,
unsigned int len) { unsigned int len) {
#endif
ipc_client *client = extra; ipc_client *client = extra;
DLOG("should add subscription to extra %p, sub %.*s\n", client, len, s); DLOG("should add subscription to extra %p, sub %.*s\n", client, len, s);