Home
last modified time | relevance | path

Searched refs:id_node (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/components/esp_event/
Desp_event_private.c28 esp_event_id_node_t* id_node; in esp_event_is_handler_registered() local
50 SLIST_FOREACH(id_node, &(base_node->id_nodes), next) { in esp_event_is_handler_registered()
51 if(id_node->id == event_id) { in esp_event_is_handler_registered()
52 SLIST_FOREACH(handler, &(id_node->handlers), next) { in esp_event_is_handler_registered()
Desp_event.c222 esp_event_id_node_t *it = NULL, *id_node = NULL, *last_id_node = NULL; in base_node_add_handler() local
226 id_node = it; in base_node_add_handler()
231 if (!last_id_node || !id_node) { in base_node_add_handler()
232 id_node = (esp_event_id_node_t*) calloc(1, sizeof(*id_node)); in base_node_add_handler()
234 if (!id_node) { in base_node_add_handler()
239 id_node->id = id; in base_node_add_handler()
241 SLIST_INIT(&(id_node->handlers)); in base_node_add_handler()
243 …err = handler_instances_add(&(id_node->handlers), event_handler, event_handler_arg, handler_ctx, l… in base_node_add_handler()
247 SLIST_INSERT_HEAD(&(base_node->id_nodes), id_node, next); in base_node_add_handler()
250 SLIST_INSERT_AFTER(last_id_node, id_node, next); in base_node_add_handler()
[all …]