summaryrefslogtreecommitdiff
path: root/jsonrpc.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-06-28 18:54:20 +0000
committerroot <root@beaglebone.local.sublab.org>2013-06-28 18:54:20 +0000
commit29f49063f7c496a55945d1e8dfe6cb6f97446487 (patch)
tree228deca04ac99b2075110191f1f1208cfca28073 /jsonrpc.h
parentb6947205408c2ca6d0e03c35577b2c5edb768c15 (diff)
add void* application argument
Diffstat (limited to 'jsonrpc.h')
-rw-r--r--jsonrpc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc.h b/jsonrpc.h
index 27a458c..d4a34f8 100644
--- a/jsonrpc.h
+++ b/jsonrpc.h
@@ -6,13 +6,13 @@
#define JSONRPC_INVALID_PARAMS -32602
#define JSONRPC_INTERNAL_ERROR -32603
-typedef int (*jsonrpc_method_prototype)(json_t *json_params, json_t **result);
+typedef int (*jsonrpc_method_prototype)(void *apparg, json_t *json_params, json_t **result);
struct jsonrpc_method_entry_t
{
const char *name;
jsonrpc_method_prototype funcptr;
const char *params_spec;
};
-char *jsonrpc_handler(const char *input, size_t input_len, struct jsonrpc_method_entry_t method_table[]);
+char *jsonrpc_handler(void *apparg, const char *input, size_t input_len, struct jsonrpc_method_entry_t method_table[]);
json_t *jsonrpc_error_object(int code, json_t *data);