summaryrefslogtreecommitdiff
path: root/src/ll-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ll-internal.h')
-rw-r--r--src/ll-internal.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ll-internal.h b/src/ll-internal.h
new file mode 100644
index 0000000..f627807
--- /dev/null
+++ b/src/ll-internal.h
@@ -0,0 +1,27 @@
1#ifndef __VXGG_REWRITE___LL_INTERNAL_H___21242172227746___
2#define __VXGG_REWRITE___LL_INTERNAL_H___21242172227746___
3
4#define __VXGG_REWRITE___LL_INTERNAL___
5#include "ll.h"
6
7typedef struct dll {
8 void *data;
9 dll_freecb freecb;
10
11 struct dll *next;
12 struct dll *prev;
13
14} dllnode;
15typedef struct dlinked {
16 int size;
17 dllnode *start;
18 dllnode *end;
19
20} dlinkedlist;
21
22dllnode * dllnode_init(void *data, dll_freecb fcb);
23
24// Note: This file exists because I want to reuse dlinkedlist's definitions from threadpool to create a concurrent queue without
25// sacrificing the opaqueness of the definition
26
27#endif \ No newline at end of file