X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=ubusmsg.h;h=00bf125c544ff3363aafb5423b4d5abb8144e847;hb=6facb814094c0138cbaae954d071660d55f8243d;hp=3e107973312d7fdbed5ce004d49877f94fe91a6a;hpb=1a871e1e89055f8683793f1ca0d629ca2fa4d3be;p=project%2Fubus.git diff --git a/ubusmsg.h b/ubusmsg.h index 3e10797..00bf125 100644 --- a/ubusmsg.h +++ b/ubusmsg.h @@ -6,7 +6,10 @@ #define __packetdata __attribute__((packed)) __attribute__((__aligned__(4))) -#define UBUS_MAX_MSGLEN 65535 +#define UBUS_MAX_MSGLEN 65536 + +#define UBUS_SYSTEM_OBJECT_EVENT 1 +#define UBUS_SYSTEM_OBJECT_MAX 1024 struct ubus_msghdr { uint8_t version; @@ -35,8 +38,8 @@ enum ubus_msg_type { /* invoke a method on a single object */ UBUS_MSG_INVOKE, - /* publish an object */ - UBUS_MSG_PUBLISH, + UBUS_MSG_ADD_OBJECT, + UBUS_MSG_REMOVE_OBJECT, /* must be last */ __UBUS_MSG_LAST, @@ -67,6 +70,8 @@ enum ubus_msg_status { UBUS_STATUS_METHOD_NOT_FOUND, UBUS_STATUS_NOT_FOUND, UBUS_STATUS_NO_DATA, + UBUS_STATUS_PERMISSION_DENIED, + UBUS_STATUS_TIMEOUT, __UBUS_STATUS_LAST };