Home
last modified time | relevance | path

Searched refs:obj_manager (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_obj_manager.c61 struct bt_gatt_ots_obj_manager *obj_manager, in bt_gatt_ots_obj_manager_first_obj_get() argument
67 if (sys_dlist_is_empty(&obj_manager->list)) { in bt_gatt_ots_obj_manager_first_obj_get()
71 obj_dnode = sys_dlist_peek_head_not_empty(&obj_manager->list); in bt_gatt_ots_obj_manager_first_obj_get()
80 struct bt_gatt_ots_obj_manager *obj_manager, in bt_gatt_ots_obj_manager_last_obj_get() argument
86 if (sys_dlist_is_empty(&obj_manager->list)) { in bt_gatt_ots_obj_manager_last_obj_get()
90 obj_dnode = sys_dlist_peek_tail(&obj_manager->list); in bt_gatt_ots_obj_manager_last_obj_get()
99 struct bt_gatt_ots_obj_manager *obj_manager, in bt_gatt_ots_obj_manager_prev_obj_get() argument
106 if (sys_dlist_is_empty(&obj_manager->list)) { in bt_gatt_ots_obj_manager_prev_obj_get()
111 prev_obj_dnode = sys_dlist_peek_prev_no_check(&obj_manager->list, in bt_gatt_ots_obj_manager_prev_obj_get()
126 struct bt_gatt_ots_obj_manager *obj_manager, in bt_gatt_ots_obj_manager_next_obj_get() argument
[all …]
Dots_obj_manager_internal.h16 int bt_gatt_ots_obj_manager_first_obj_get(void *obj_manager,
19 int bt_gatt_ots_obj_manager_last_obj_get(void *obj_manager,
23 void *obj_manager,
28 void *obj_manager,
32 int bt_gatt_ots_obj_manager_obj_get(void *obj_manager,
36 int bt_gatt_ots_obj_manager_obj_add(void *obj_manager,
41 bool bt_gatt_ots_obj_manager_obj_contains(void *obj_manager, struct bt_gatt_ots_object *obj);
Dots_dir_list.c126 static void bt_ots_dir_list_reset_anchor(struct bt_ots_dir_list *dir_list, void *obj_manager) in bt_ots_dir_list_reset_anchor() argument
131 (void)bt_gatt_ots_obj_manager_first_obj_get(obj_manager, &dir_list->anchor_object); in bt_ots_dir_list_reset_anchor()
134 static int bt_ots_dir_list_search_forward(struct bt_ots_dir_list *dir_list, void *obj_manager, in bt_ots_dir_list_search_forward() argument
148 err = bt_gatt_ots_obj_manager_next_obj_get(obj_manager, obj, &obj); in bt_ots_dir_list_search_forward()
162 static int bt_ots_dir_list_search_backward(struct bt_ots_dir_list *dir_list, void *obj_manager, in bt_ots_dir_list_search_backward() argument
175 err = bt_gatt_ots_obj_manager_prev_obj_get(obj_manager, obj, &obj); in bt_ots_dir_list_search_backward()
187 static int bt_ots_dir_list_search(struct bt_ots_dir_list *dir_list, void *obj_manager, off_t offset) in bt_ots_dir_list_search() argument
201 err = bt_ots_dir_list_search_forward(dir_list, obj_manager, offset); in bt_ots_dir_list_search()
207 bt_gatt_ots_obj_manager_last_obj_get(obj_manager, &dir_list->anchor_object); in bt_ots_dir_list_search()
210 err = bt_ots_dir_list_search_backward(dir_list, obj_manager, offset); in bt_ots_dir_list_search()
[all …]
Dots_dir_list_internal.h159 void bt_ots_dir_list_selected(struct bt_ots_dir_list *dir_list, void *obj_manager,
161 void bt_ots_dir_list_init(struct bt_ots_dir_list **dir_list, void *obj_manager);
162 ssize_t bt_ots_dir_list_content_get(struct bt_ots_dir_list *dir_list, void *obj_manager,
Dots_olcp.c46 err = bt_gatt_ots_obj_manager_first_obj_get(ots->obj_manager, in olcp_first_proc_execute()
63 err = bt_gatt_ots_obj_manager_last_obj_get(ots->obj_manager, in olcp_last_proc_execute()
83 err = bt_gatt_ots_obj_manager_prev_obj_get(ots->obj_manager, in olcp_prev_proc_execute()
104 err = bt_gatt_ots_obj_manager_next_obj_get(ots->obj_manager, in olcp_next_proc_execute()
128 err = bt_gatt_ots_obj_manager_obj_get(ots->obj_manager, in olcp_goto_proc_execute()
281 bt_ots_dir_list_selected(ots->dir_list, ots->obj_manager, in bt_gatt_ots_olcp_write()
Dots.c188 rc = bt_gatt_ots_obj_manager_first_obj_get(ots->obj_manager, &obj); in ots_obj_name_write()
194 rc = bt_gatt_ots_obj_manager_next_obj_get(ots->obj_manager, obj, &obj); in ots_obj_name_write()
312 err = bt_gatt_ots_obj_manager_obj_add(ots->obj_manager, &new_obj); in bt_ots_obj_add_internal()
404 err = bt_gatt_ots_obj_manager_obj_get(ots->obj_manager, id, &obj); in bt_ots_obj_delete()
520 bt_ots_dir_list_init(&ots->dir_list, ots->obj_manager); in bt_ots_init()
601 err = bt_gatt_ots_obj_manager_first_obj_get(ots->obj_manager, &next_obj); in ots_delete_empty_name_objects()
608 err = bt_gatt_ots_obj_manager_next_obj_get(ots->obj_manager, obj, &next_obj); in ots_delete_empty_name_objects()
670 instance->obj_manager = bt_gatt_ots_obj_manager_assign(); in bt_gatt_ots_instances_prepare()
672 if (!instance->obj_manager) { in bt_gatt_ots_instances_prepare()
Dots_internal.h138 void *obj_manager; member
Dots_oacp.c492 len = bt_ots_dir_list_content_get(ots->dir_list, ots->obj_manager, in oacp_read_proc_cb()