inital commit. currently all winapi
This commit is contained in:
25
list.h
Normal file
25
list.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef LIST_H
|
||||
#define LIST_H
|
||||
|
||||
|
||||
struct ListElem
|
||||
{
|
||||
void* dataStart;
|
||||
size_t dataSize;
|
||||
|
||||
struct ListElem* next;
|
||||
};
|
||||
|
||||
struct ListHead
|
||||
{
|
||||
struct ListElem* start;
|
||||
struct ListElem* end;
|
||||
};
|
||||
|
||||
struct ListHead* list_create();
|
||||
|
||||
int list_add(struct ListHead* head, void* data, size_t size);
|
||||
|
||||
int list_free(struct ListHead* head);
|
||||
|
||||
#endif // LIST_H
|
||||
Reference in New Issue
Block a user