ReactOS  0.4.14-dev-384-g5b37caa
genlist.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Setup Library
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Generic list functions
5  * COPYRIGHT: Copyright 2008-2018 Christoph von Wittich <christoph at reactos.org>
6  */
7 
8 #pragma once
9 
10 typedef struct _GENERIC_LIST_ENTRY
11 {
15  ULONG_PTR UiData; // Cache variable for any UI list that displays these items
17 
18 typedef struct _GENERIC_LIST
19 {
24 
25 
28 
29 VOID
32  IN BOOLEAN FreeData);
33 
34 BOOLEAN
37  IN PVOID Data,
38  IN BOOLEAN Current);
39 
40 VOID
44 
48 
52 
56 
57 PVOID
60 
64 
65 ULONG
68 
69 /* EOF */
struct _GENERIC_LIST * List
Definition: genlist.h:13
PGENERIC_LIST_ENTRY GetFirstListEntry(IN PGENERIC_LIST List)
Definition: genlist.c:104
PGENERIC_LIST_ENTRY GetCurrentListEntry(IN PGENERIC_LIST List)
Definition: genlist.c:97
ULONG GetNumberOfListEntries(IN PGENERIC_LIST List)
Definition: genlist.c:140
Definition: genlist.h:10
#define IN
Definition: typedefs.h:38
struct _GENERIC_LIST * PGENERIC_LIST
PGENERIC_LIST_ENTRY GetNextListEntry(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:114
struct _GENERIC_LIST_ENTRY * PGENERIC_LIST_ENTRY
BOOLEAN AppendGenericListEntry(IN OUT PGENERIC_LIST List, IN PVOID Data, IN BOOLEAN Current)
Definition: genlist.c:62
LIST_ENTRY ListHead
Definition: genlist.h:20
PGENERIC_LIST CreateGenericList(VOID)
Definition: genlist.c:20
PVOID Data
Definition: genlist.h:14
VOID DestroyGenericList(IN OUT PGENERIC_LIST List, IN BOOLEAN FreeData)
Definition: genlist.c:36
ULONG_PTR UiData
Definition: genlist.h:15
uint32_t ULONG_PTR
Definition: typedefs.h:63
PVOID GetListEntryData(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:126
PGENERIC_LIST_ENTRY CurrentEntry
Definition: genlist.h:22
LIST_ENTRY Entry
Definition: genlist.h:12
unsigned char BOOLEAN
LIST_ENTRY List
Definition: psmgr.c:57
struct _GENERIC_LIST GENERIC_LIST
Definition: typedefs.h:117
ULONG_PTR GetListEntryUiData(IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:133
ULONG NumOfEntries
Definition: genlist.h:21
#define OUT
Definition: typedefs.h:39
VOID SetCurrentListEntry(IN PGENERIC_LIST List, IN PGENERIC_LIST_ENTRY Entry)
Definition: genlist.c:87
unsigned int ULONG
Definition: retypes.h:1
base of all file and directory entries
Definition: entries.h:82
struct _GENERIC_LIST_ENTRY GENERIC_LIST_ENTRY