X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusmsg.h;h=398b126b6dc01833937749a110181ea0debb1476;hp=d3d29284d70d59b4616705ccdcade0741ab40b08;hb=6f4e11e1db399074273944329883f9c35e7daef6;hpb=8309c75828acbcee73b11d9ce90d76b7ef14b891 diff --git a/ubusmsg.h b/ubusmsg.h index d3d2928..398b126 100644 --- a/ubusmsg.h +++ b/ubusmsg.h @@ -23,6 +23,7 @@ #define UBUS_SYSTEM_OBJECT_EVENT 1 #define UBUS_SYSTEM_OBJECT_ACL 2 +#define UBUS_SYSTEM_OBJECT_MONITOR 3 #define UBUS_SYSTEM_OBJECT_MAX 1024 struct ubus_msghdr { @@ -69,6 +70,8 @@ enum ubus_msg_type { */ UBUS_MSG_NOTIFY, + UBUS_MSG_MONITOR, + /* must be last */ __UBUS_MSG_LAST, }; @@ -100,6 +103,18 @@ enum ubus_msg_attr { UBUS_ATTR_MAX, }; +enum ubus_monitor_attr { + UBUS_MONITOR_CLIENT, + UBUS_MONITOR_PEER, + UBUS_MONITOR_SEND, + UBUS_MONITOR_SEQ, + UBUS_MONITOR_TYPE, + UBUS_MONITOR_DATA, + + /* must be last */ + UBUS_MONITOR_MAX, +}; + enum ubus_msg_status { UBUS_STATUS_OK, UBUS_STATUS_INVALID_COMMAND,