projects
/
oweals
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2224658
)
libubus: add UBUS_ATTR_NO_REPLY and add policy for UBUS_ATTR_ACTIVE
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 14 Dec 2012 19:05:06 +0000
(20:05 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 14 Dec 2012 19:05:06 +0000
(20:05 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-io.c
patch
|
blob
|
history
ubusmsg.h
patch
|
blob
|
history
diff --git
a/libubus-io.c
b/libubus-io.c
index 4ebb8fbeecc06f97e8d982e304e130145a174fa9..18fb6cba8aea303f882a419abd7fc0184ceab1c8 100644
(file)
--- a/
libubus-io.c
+++ b/
libubus-io.c
@@
-33,6
+33,8
@@
static const struct blob_attr_info ubus_policy[UBUS_ATTR_MAX] = {
[UBUS_ATTR_OBJID] = { .type = BLOB_ATTR_INT32 },
[UBUS_ATTR_OBJPATH] = { .type = BLOB_ATTR_STRING },
[UBUS_ATTR_METHOD] = { .type = BLOB_ATTR_STRING },
+ [UBUS_ATTR_ACTIVE] = { .type = BLOB_ATTR_INT8 },
+ [UBUS_ATTR_NO_REPLY] = { .type = BLOB_ATTR_INT8 },
};
static struct blob_attr *attrbuf[UBUS_ATTR_MAX];
diff --git
a/ubusmsg.h
b/ubusmsg.h
index fc4eeddcf59cf3dbd239797749cfc8a314b97dfa..f7c115dbc5b7cdd30be611a1418ddaf1d49459bc 100644
(file)
--- a/
ubusmsg.h
+++ b/
ubusmsg.h
@@
-89,6
+89,7
@@
enum ubus_msg_attr {
UBUS_ATTR_TARGET,
UBUS_ATTR_ACTIVE,
+ UBUS_ATTR_NO_REPLY,
/* must be last */
UBUS_ATTR_MAX,