123456789101112131415161718192021222324 |
- #pragma once
- #include "queue_node.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- typedef struct nodelist_s
- {
- queue_node_t *head;
- queue_node_t *tail;
- } nodelist_s, *nodelist_t;
- void nodelist_init(nodelist_t nodelist);
- void nodelist_push_back(nodelist_t nodelist, queue_node_t *item);
- void nodelist_push_front(nodelist_t nodelist, queue_node_t *item);
- queue_node_t *nodelist_pop_front(nodelist_t nodelist);
-
- void nodelist_push_back_list(nodelist_t nodelist, queue_node_t *item);
-
- #ifdef __cplusplus
- }
- #endif
|