diff options
Diffstat (limited to 'inc/lib/list.h')
-rw-r--r-- | inc/lib/list.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/lib/list.h b/inc/lib/list.h new file mode 100644 index 0000000..b57d85b --- /dev/null +++ b/inc/lib/list.h @@ -0,0 +1,15 @@ +// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de> +// SPDX-License-Identifier: MIT + +#ifndef SHARING_LIST_H +#define SHARING_LIST_H + +struct list { + void *data; + struct list *next; +}; + +struct list *list_add(struct list *list, void *data); +void list_free(struct list *list); + +#endif |