From: Felix Fietkau Date: Fri, 14 Dec 2012 19:05:06 +0000 (+0100) Subject: libubus: add UBUS_ATTR_NO_REPLY and add policy for UBUS_ATTR_ACTIVE X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=154a87c683e3ff39f86998a3e37f6a0d9fb1f677;p=project%2Fubus.git libubus: add UBUS_ATTR_NO_REPLY and add policy for UBUS_ATTR_ACTIVE Signed-off-by: Felix Fietkau --- diff --git a/libubus-io.c b/libubus-io.c index 4ebb8fb..18fb6cb 100644 --- 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 fc4eedd..f7c115d 100644 --- 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,