aboutsummaryrefslogtreecommitdiff
path: root/inc/lib/list.h
blob: b57d85bd043dc466568772cb486df810ef2f8a55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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