Data Structures | |
struct | btstack_linked_item |
struct | btstack_linked_list_iterator_t |
Typedefs | |
typedef struct btstack_linked_item | btstack_linked_item_t |
typedef btstack_linked_item_t * | btstack_linked_list_t |
typedef struct btstack_linked_item btstack_linked_item_t |
void btstack_linked_list_add | ( | btstack_linked_list_t * | list, |
btstack_linked_item_t * | item | ||
) |
btstack_linked_list_add
References btstack_linked_item::next.
Referenced by att_register_service_handler(), btstack_run_loop_freertos_add_data_source(), create_connection_for_bd_addr_and_type(), gatt_client_listen_for_characteristic_value_updates(), get_link_key(), provide_context_for_conn_handle(), put_link_key(), and sm_address_resolution_lookup().
void btstack_linked_list_add_tail | ( | btstack_linked_list_t * | list, |
btstack_linked_item_t * | item | ||
) |
References btstack_linked_item::next.
Referenced by att_server_register_can_send_now_callback(), hci_add_event_handler(), and sm_add_event_handler().
int btstack_linked_list_count | ( | btstack_linked_list_t * | list | ) |
Counts number of items in list.
References counter, and btstack_linked_item::next.
int btstack_linked_list_empty | ( | btstack_linked_list_t * | list | ) |
tests if list is empty
Referenced by att_server_handle_can_send_now(), hci_run(), and sm_run().
btstack_linked_item_t* btstack_linked_list_get_first_item | ( | btstack_linked_list_t * | list | ) |
btstack_linked_item_t* btstack_linked_list_get_last_item | ( | btstack_linked_list_t * | list | ) |
btstack_linked_list_get_last_item
References btstack_linked_item::next, and NULL.
Referenced by put_link_key().
int btstack_linked_list_iterator_has_next | ( | btstack_linked_list_iterator_t * | it | ) |
References btstack_linked_list_iterator_t::advance_on_next, btstack_linked_list_iterator_t::curr, btstack_linked_item::next, NULL, and btstack_linked_list_iterator_t::prev.
Referenced by att_notify_write_callbacks(), att_server_handle_can_send_now(), att_service_handler_for_handle(), att_validate_prepared_write(), emit_event_to_registered_listeners(), gatt_client_for_timer(), hci_close(), hci_connection_for_bd_addr_and_type(), hci_connection_for_handle(), hci_disconnect_all(), hci_emit_event(), hci_run(), l2cap_hci_event_handler(), l2cap_notify_channel_can_send(), l2cap_run(), sm_address_resolution_lookup(), sm_dispatch_event(), and sm_run().
void btstack_linked_list_iterator_init | ( | btstack_linked_list_iterator_t * | it, |
btstack_linked_list_t * | list | ||
) |
References btstack_linked_list_iterator_t::advance_on_next, btstack_linked_list_iterator_t::curr, and btstack_linked_list_iterator_t::prev.
Referenced by att_notify_write_callbacks(), att_service_handler_for_handle(), att_validate_prepared_write(), emit_event_to_registered_listeners(), gatt_client_for_timer(), hci_close(), hci_connection_for_bd_addr_and_type(), hci_connection_for_handle(), hci_connections_get_iterator(), hci_disconnect_all(), hci_emit_event(), hci_run(), l2cap_hci_event_handler(), l2cap_notify_channel_can_send(), l2cap_run(), sm_address_resolution_lookup(), and sm_dispatch_event().
btstack_linked_item_t* btstack_linked_list_iterator_next | ( | btstack_linked_list_iterator_t * | it | ) |
References btstack_linked_list_iterator_t::advance_on_next, btstack_linked_list_iterator_t::curr, btstack_linked_item::next, and btstack_linked_list_iterator_t::prev.
Referenced by att_notify_write_callbacks(), att_server_handle_can_send_now(), att_service_handler_for_handle(), att_validate_prepared_write(), emit_event_to_registered_listeners(), gatt_client_for_timer(), hci_close(), hci_connection_for_bd_addr_and_type(), hci_connection_for_handle(), hci_disconnect_all(), hci_emit_event(), hci_run(), l2cap_hci_event_handler(), l2cap_notify_channel_can_send(), l2cap_run(), sm_address_resolution_lookup(), sm_dispatch_event(), and sm_run().
void btstack_linked_list_iterator_remove | ( | btstack_linked_list_iterator_t * | it | ) |
btstack_linked_item_t* btstack_linked_list_pop | ( | btstack_linked_list_t * | list | ) |
References btstack_linked_item::next, and NULL.
int btstack_linked_list_remove | ( | btstack_linked_list_t * | list, |
btstack_linked_item_t * | item | ||
) |
References btstack_linked_item::next.
Referenced by att_server_handle_can_send_now(), btstack_run_loop_freertos_remove_data_source(), btstack_run_loop_freertos_remove_timer(), delete_link_key(), event_handler(), gatt_client_hci_event_packet_handler(), gatt_client_stop_listening_for_characteristic_value_updates(), get_link_key(), hci_run(), hci_shutdown_connection(), put_link_key(), and sm_run().
void test_linked_list | ( | void | ) |