#include "inflib.h"
#include <debug.h>
Go to the source code of this file.
◆ EOL
◆ NDEBUG
◆ SIZE_INC
◆ OUTPUTBUFFER
◆ POUTPUTBUFFER
◆ InfpAddField()
Definition at line 254 of file infput.c.
260 DPRINT1(
"Invalid parameter\n");
267 DPRINT(
"Failed to add field\n");
#define INF_STATUS_NO_MEMORY
#define INF_STATUS_INVALID_PARAMETER
#define INF_STATUS_SUCCESS
PINFCACHELINE InfpGetLineForContext(PINFCONTEXT Context)
static PVOID InfpAddFieldToLine(PINFCACHELINE Line, PCSTR Data)
Referenced by InfHostAddField().
◆ InfpAddLineWithKey()
Definition at line 224 of file infput.c.
231 DPRINT1(
"Invalid parameter\n");
239 DPRINT(
"Failed to create line\n");
246 DPRINT(
"Failed to add key\n");
#define INF_STATUS_NO_MEMORY
PINFCACHELINE InfpAddLine(PINFCACHESECTION Section)
#define INF_STATUS_INVALID_PARAMETER
#define INF_STATUS_SUCCESS
static PVOID InfpAddKeyToLine(PINFCACHELINE Line, PCSTR Key)
PINFCACHESECTION InfpGetSectionForContext(PINFCONTEXT Context)
Referenced by InfHostAddLine().
◆ InfpBuildFileBuffer()
Definition at line 90 of file infput.c.
108 CacheSection =
Cache->FirstSection;
109 while (CacheSection !=
NULL)
111 DPRINT(
"Processing section %S\n", CacheSection->
Name);
112 if (CacheSection !=
Cache->FirstSection)
123 while (CacheLine !=
NULL)
127 DPRINT(
"Line with key %S\n", CacheLine->
Key);
133 DPRINT(
"Line without key\n");
138 while (CacheField !=
NULL)
144 p = CacheField->
Data;
146 while (
L'\0' != *
p && ! NeedQuotes)
164 CacheField = CacheField->
Next;
169 CacheLine = CacheLine->
Next;
173 CacheSection = CacheSection->
Next;
struct _INFCACHEFIELD * Next
struct _INFCACHESECTION * Next
PINFCACHEFIELD FirstField
static void Output(POUTPUTBUFFER OutBuf, PCWSTR Text)
#define INF_STATUS_SUCCESS
struct _INFCACHELINE * Next
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Referenced by InfHostWriteFile(), and InfWriteFile().
◆ InfpFindOrAddSection()
Definition at line 190 of file infput.c.
195 DPRINT(
"InfpFindOrAddSection section %S\n", Section);
204 (*Context)->Inf =
Cache;
205 (*Context)->Line = 0;
207 if (
NULL == CacheSection)
209 DPRINT(
"Section not found, creating it\n");
211 if (
NULL == CacheSection)
213 DPRINT(
"Failed to create section\n");
219 (*Context)->Section = CacheSection->
Id;
PINFCACHESECTION InfpAddSection(PINFCACHE Cache, PCWSTR Name)
#define INF_STATUS_NO_MEMORY
PINFCACHESECTION InfpFindSection(PINFCACHE Cache, PCWSTR Name)
#define INF_STATUS_SUCCESS
Referenced by InfFindOrAddSection(), and InfHostFindOrAddSection().
◆ Output()
Definition at line 27 of file infput.c.
43 DPRINT(
"Out of free space. TotalSize %u FreeSize %u Length %u\n",
62 DPRINT(
"Copying %u bytes from old content\n",
75 DPRINT(
"After reallocation TotalSize %u FreeSize %u\n",
_In_ ULONG _In_ ULONG _In_ ULONG Length
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
#define INF_STATUS_NO_MEMORY
#define MEMCPY(DST, SRC, BYTES)
_Must_inspect_result_ _In_ USHORT NewSize
Referenced by InfpBuildFileBuffer().