libubus: add UBUS_ATTR_NO_REPLY and add policy for UBUS_ATTR_ACTIVE

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2012-12-14 20:05:06 +01:00
parent 2224658580
commit 154a87c683
2 changed files with 3 additions and 0 deletions

View file

@ -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];

View file

@ -89,6 +89,7 @@ enum ubus_msg_attr {
UBUS_ATTR_TARGET,
UBUS_ATTR_ACTIVE,
UBUS_ATTR_NO_REPLY,
/* must be last */
UBUS_ATTR_MAX,