add options to override the ubus socket name for the cli and the example program
[project/ubus.git] / ubusmsg.h
index 3e10797..32cee6b 100644 (file)
--- a/ubusmsg.h
+++ b/ubusmsg.h
@@ -8,6 +8,9 @@
 
 #define UBUS_MAX_MSGLEN        65535
 
+#define UBUS_SYSTEM_OBJECT_EVENT       1
+#define UBUS_SYSTEM_OBJECT_MAX         1024
+
 struct ubus_msghdr {
        uint8_t version;
        uint8_t type;
@@ -67,6 +70,7 @@ enum ubus_msg_status {
        UBUS_STATUS_METHOD_NOT_FOUND,
        UBUS_STATUS_NOT_FOUND,
        UBUS_STATUS_NO_DATA,
+       UBUS_STATUS_PERMISSION_DENIED,
        __UBUS_STATUS_LAST
 };