5 #include <libubox/blob.h>
7 #define __packetdata __attribute__((packed)) __attribute__((__aligned__(4)))
9 #define UBUS_MAX_MSGLEN 65535
11 #define UBUS_SYSTEM_OBJECT_EVENT 1
12 #define UBUS_SYSTEM_OBJECT_MAX 1024
19 struct blob_attr data[];
23 /* initial server message */
26 /* generic command response */
29 /* data message response */
35 /* look up one or more objects */
38 /* invoke a method on a single object */
41 /* publish an object */
66 enum ubus_msg_status {
68 UBUS_STATUS_INVALID_COMMAND,
69 UBUS_STATUS_INVALID_ARGUMENT,
70 UBUS_STATUS_METHOD_NOT_FOUND,
71 UBUS_STATUS_NOT_FOUND,
73 UBUS_STATUS_PERMISSION_DENIED,