diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 09:24:04 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 09:24:04 +0100 |
commit | 1eedd103be4919683f2d0b2165cefe82b73e4a5f (patch) | |
tree | 67e7a640711ed1d2e34a7c7c059119b3732e76c7 /uhttpd.h | |
parent | 51da420dfeda783c74f5a3d05e1a11edec04091d (diff) |
rework the ubus plugin to support JSON-RPC 2.0
Diffstat (limited to 'uhttpd.h')
-rw-r--r-- | uhttpd.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -160,13 +160,21 @@ struct dispatch_handler { #ifdef HAVE_UBUS struct dispatch_ubus { struct ubus_request req; + + struct uloop_timeout timeout; struct json_tokener *jstok; struct json_object *jsobj; - uint32_t obj; + struct json_object *jsobj_cur; int post_len; + + const char *sid; + uint32_t obj; const char *func; + + struct blob_buf buf; bool req_pending; - bool header_sent; + bool array; + int array_idx; }; #endif |