mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Parsing, image loading, lots of stuff
This commit is contained in:
26
src/list.h
Normal file
26
src/list.h
Normal file
@ -0,0 +1,26 @@
|
||||
#ifndef LIST_H
|
||||
#define LIST_H
|
||||
|
||||
typedef struct node{
|
||||
void *val;
|
||||
struct node *next;
|
||||
struct node *prev;
|
||||
} node;
|
||||
|
||||
typedef struct list{
|
||||
int size;
|
||||
node *front;
|
||||
node *back;
|
||||
} list;
|
||||
|
||||
list *make_list();
|
||||
int list_find(list *l, void *val);
|
||||
|
||||
void list_insert(list *, void *);
|
||||
|
||||
void **list_to_array(list *l);
|
||||
|
||||
void free_list(list *l);
|
||||
void free_list_contents(list *l);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user