Lines Matching refs:id_node
222 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()
253 free(id_node); in base_node_add_handler()
259 …return handler_instances_add(&(id_node->handlers), event_handler, event_handler_arg, handler_ctx, … in base_node_add_handler()
577 esp_event_id_node_t *id_node, *temp_id_node; in esp_event_loop_run() local
594 SLIST_FOREACH_SAFE(id_node, &(base_node->id_nodes), next, temp_id_node) { in esp_event_loop_run()
595 if (id_node->id == post.id) { in esp_event_loop_run()
597 SLIST_FOREACH_SAFE(handler, &(id_node->handlers), next, temp_handler) { in esp_event_loop_run()