6 extern struct avl_tree obj_types
;
7 extern struct avl_tree objects
;
8 extern struct avl_tree path
;
13 struct ubus_object_type
{
16 struct list_head methods
;
20 struct list_head list
;
22 struct blob_attr data
[];
27 struct list_head list
;
29 struct list_head events
;
31 struct ubus_object_type
*type
;
34 struct ubus_client
*client
;
35 int (*recv_msg
)(struct ubus_client
*client
, const char *method
, struct blob_attr
*msg
);
38 struct ubus_object
*ubusd_create_object(struct ubus_client
*cl
, struct blob_attr
**attr
);
39 struct ubus_object
*ubusd_create_object_internal(struct ubus_object_type
*type
, uint32_t id
);
40 void ubusd_free_object(struct ubus_object
*obj
);
42 static inline struct ubus_object
*ubusd_find_object(uint32_t objid
)
44 struct ubus_object
*obj
;
47 id
= ubus_find_id(&objects
, objid
);
51 obj
= container_of(id
, struct ubus_object
, id
);