pico-http/llist/llist.h
Andrew Gundersen 9904bd2212 init commit
2022-05-02 08:00:44 -05:00

27 lines
No EOL
391 B
C

#ifndef _LLIST_H_
#define _LLIST_H_
typedef struct
{
struct LLNodeT* head;
int entries;
}
LL;
typedef int (*LLCb)(void*, void*);
LL* ll_create(void);
int ll_push(LL* ll, void* data);
int ll_append(LL* ll, void* data);
void* ll_search(LL* ll, LLCb cb, void* arg);
void* ll_delete(LL* ll, LLCb cb, void* arg);
int ll_loop(LL* ll, LLCb cb, void* arg);
void ll_free(LL* ll);
#endif