1 | #include <config.h> |
---|---|
2 | #include "lst.h" |
3 | |
4 | HLST lstOpen() |
5 | { |
6 | HLST hLst = NULL; |
7 | |
8 | hLst = malloc( sizeof(LST) ); |
9 | |
10 | if ( hLst ) |
11 | { |
12 | hLst->bExclusive = false; |
13 | hLst->hCurrent = NULL; |
14 | hLst->hFirst = NULL; |
15 | hLst->hLast = NULL; |
16 | hLst->hLstBase = NULL; |
17 | hLst->nRefs = 1; /* someone created us so lets assume that it counts as one ref */ |
18 | hLst->pFilter = NULL; |
19 | hLst->pFree = free; |
20 | hLst->nItems = 0; |
21 | hLst->bShowDeleted = false; |
22 | hLst->bShowHidden = false; |
23 | } |
24 | |
25 | return hLst; |
26 | } |
27 | |
28 |