X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=ubusmsg.h;h=116351d4ec2d3739a74251548a11d6d501cd3f03;hb=d2f1a01d9f6b49d7353dc848018c176400091741;hp=e62a39328aaf174037509da3785e77ea6a4e19a9;hpb=dbd4c2f121be08e514828f2533687b145a6e16dd;p=project%2Fubus.git diff --git a/ubusmsg.h b/ubusmsg.h index e62a393..116351d 100644 --- 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; @@ -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, @@ -64,8 +67,10 @@ enum ubus_msg_status { UBUS_STATUS_OK, UBUS_STATUS_INVALID_COMMAND, UBUS_STATUS_INVALID_ARGUMENT, + UBUS_STATUS_METHOD_NOT_FOUND, UBUS_STATUS_NOT_FOUND, UBUS_STATUS_NO_DATA, + UBUS_STATUS_PERMISSION_DENIED, __UBUS_STATUS_LAST };