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);
40 struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr **attr);
41 struct ubus_object *ubusd_create_object_internal(struct ubus_object_type *type, uint32_t id);
42 void ubusd_free_object(struct ubus_object *obj);
44 static inline struct ubus_object *ubusd_find_object(uint32_t objid)
46 struct ubus_object *obj;
49 id = ubus_find_id(&objects, objid);
53 obj = container_of(id, struct ubus_object, id);