From 154a87c683e3ff39f86998a3e37f6a0d9fb1f677 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 14 Dec 2012 20:05:06 +0100 Subject: [PATCH] libubus: add UBUS_ATTR_NO_REPLY and add policy for UBUS_ATTR_ACTIVE Signed-off-by: Felix Fietkau --- libubus-io.c | 2 ++ ubusmsg.h | 1 + 2 files changed, 3 insertions(+) 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, -- 2.30.2