projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework the ubus plugin to support JSON-RPC 2.0
[project/uhttpd.git]
/
uhttpd.h
diff --git
a/uhttpd.h
b/uhttpd.h
index
590d486
..
12cfc28
100644
(file)
--- a/
uhttpd.h
+++ b/
uhttpd.h
@@
-160,13
+160,21
@@
struct dispatch_handler {
#ifdef HAVE_UBUS
struct dispatch_ubus {
struct ubus_request req;
#ifdef HAVE_UBUS
struct dispatch_ubus {
struct ubus_request req;
+
+ struct uloop_timeout timeout;
struct json_tokener *jstok;
struct json_object *jsobj;
struct json_tokener *jstok;
struct json_object *jsobj;
-
uint32_t obj
;
+
struct json_object *jsobj_cur
;
int post_len;
int post_len;
+
+ const char *sid;
+ uint32_t obj;
const char *func;
const char *func;
+
+ struct blob_buf buf;
bool req_pending;
bool req_pending;
- bool header_sent;
+ bool array;
+ int array_idx;
};
#endif
};
#endif