diff options
Diffstat (limited to 'src/sp_list.h')
| -rw-r--r-- | src/sp_list.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sp_list.h b/src/sp_list.h new file mode 100644 index 0000000..48b11f6 --- /dev/null +++ b/src/sp_list.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef SP_LIST_H | ||
| 2 | #define SP_LIST_H | ||
| 3 | |||
| 4 | typedef struct sp_node_s { | ||
| 5 | struct sp_node_s *next; | ||
| 6 | struct sp_node_s *head; | ||
| 7 | void *data; | ||
| 8 | |||
| 9 | } sp_node_t; | ||
| 10 | |||
| 11 | sp_node_t *sp_new_list(); | ||
| 12 | void sp_list_insert(sp_node_t *, void *); | ||
| 13 | void sp_list_free(sp_node_t *); | ||
| 14 | |||
| 15 | #endif | ||
