#include "cmp.h"
#include "string.h"
#include "ctype.h"
#include "stdlib.h"
#include "parseini.h"
Go to the source code of this file.
Classes | |
struct | _value |
struct | _line |
struct | _section |
struct | _inf |
struct | _token |
Typedefs | |
typedef _value VALUE * | PVALUE |
typedef _line LINE * | PLINE |
typedef _section SECTION * | PSECTION |
typedef _inf INF * | PINF |
typedef _token TOKEN * | PTOKEN |
typedef enum _tokentype TOKENTYPE * | PTOKENTTYPE |
typedef enum _stringsSectionType | STRINGSSECTIONTYPE |
Enumerations | |
enum | _stringsSectionType { StringsSectionNone, StringsSectionPlain, StringsSectionLoosePrimaryMatch, StringsSectionExactPrimaryMatch, StringsSectionExactMatch } |
enum | _tokentype { TOK_EOF, TOK_EOL, TOK_LBRACE, TOK_RBRACE, TOK_STRING, TOK_EQUAL, TOK_COMMA, TOK_ERRPARSE, TOK_ERRNOMEM } |
Functions | |
VOID | CmpFreeValueList (IN PVALUE pValue) |
VOID | CmpFreeLineList (IN PLINE pLine) |
VOID | CmpFreeSectionList (IN PSECTION pSection) |
PCHAR | CmpProcessForSimpleStringSub (IN PINF pInf, IN PCHAR String) |
BOOLEAN | CmpAppendSection (IN PINF pInf, IN PCHAR pSectionName, IN BOOLEAN Allocated) |
BOOLEAN | CmpAppendLine (IN PINF pInf, IN PCHAR pLineKey, IN BOOLEAN Allocated) |
BOOLEAN | CmpAppendValue (IN PINF pInf, IN PCHAR pValueString, IN BOOLEAN Allocated) |
VOID | CmpGetToken (IN OUT PCHAR *Stream, IN PCHAR MaxStream, IN OUT PULONG LineNumber, IN OUT PTOKEN Token) |
PINF | CmpParseInfBuffer (IN PCHAR Buffer, IN ULONG Size, IN OUT PULONG ErrorLine) |
PVALUE | CmpSearchValueInLine (IN PLINE pLine, IN ULONG ValueIndex) |
PLINE | CmpSearchLineInSectionByIndex (IN PSECTION pSection, IN ULONG LineIndex) |
PSECTION | CmpSearchSectionByName (IN PINF pInf, IN PCHAR SectionName) |
PVOID | CmpOpenInfFile (IN PVOID InfImage, IN ULONG ImageSize) |
VOID | CmpCloseInfFile (PVOID InfHandle) |
BOOLEAN | CmpSearchInfSection (IN PINF pInf, IN PCHAR Section) |
PCHAR | CmpGetKeyName (IN PVOID InfHandle, IN PCHAR Section, IN ULONG LineIndex) |
BOOLEAN | CmpSearchInfLine (IN PVOID InfHandle, IN PCHAR Section, IN ULONG LineIndex) |
PCHAR | CmpGetSectionLineIndex (IN PVOID InfHandle, IN PCHAR Section, IN ULONG LineIndex, IN ULONG ValueIndex) |
ULONG | CmpGetSectionLineIndexValueCount (IN PVOID InfHandle, IN PCHAR Section, IN ULONG LineIndex) |
BOOLEAN | CmpGetIntField (IN PVOID InfHandle, IN PCHAR Section, IN ULONG LineIndex, IN ULONG ValueIndex, IN OUT PULONG Data) |
BOOLEAN | CmpGetBinaryField (IN PVOID InfHandle, IN PCHAR Section, IN ULONG LineIndex, IN ULONG ValueIndex, IN OUT PVOID Buffer, IN ULONG BufferSize, IN OUT PULONG ActualSize) |
Variables | |
CHAR | StringTerminators [] = "[]=,\t \"\n\f\v\r" |
PCHAR | QStringTerminators = StringTerminators + 6 |
PCHAR | EmptyValue |
CHAR | DblSpaceSection [] = "DBLSPACE_SECTION" |
|
Definition at line 37 of file parseini.c. Referenced by CmpAppendSection(), CmpCloseInfFile(), CmpGetBinaryField(), CmpGetKeyName(), CmpGetSectionLineIndex(), CmpGetSectionLineIndexValueCount(), CmpOpenInfFile(), CmpParseInfBuffer(), and CmpSearchInfLine(). |
|
Definition at line 35 of file parseini.c. Referenced by CmpAppendLine(), CmpAppendSection(), CmpAppendValue(), CmpFreeLineList(), CmpGetBinaryField(), CmpGetKeyName(), CmpGetSectionLineIndex(), CmpGetSectionLineIndexValueCount(), CmpProcessForSimpleStringSub(), CmpSearchInfLine(), and CmpSearchLineInSectionByIndex(). |
|
|
|
Definition at line 39 of file parseini.c. |
|
Definition at line 34 of file parseini.c. Referenced by CmpAppendLine(), CmpAppendValue(), CmpFreeValueList(), CmpGetBinaryField(), CmpGetSectionLineIndex(), CmpGetSectionLineIndexValueCount(), and CmpSearchValueInLine(). |
|
Definition at line 40 of file parseini.c. Referenced by CmpAppendSection(). |
|
Definition at line 78 of file parseini.c.
|
|
Definition at line 87 of file parseini.c.
|
|
Definition at line 383 of file parseini.c. References ASSERT, ExAllocatePoolWithTag, FALSE, NULL, PagedPool, PLINE, PSECTION, PVALUE, and TRUE. Referenced by CmpParseInfBuffer().
|
|
Definition at line 219 of file parseini.c. References ASSERT, ExAllocatePoolWithTag, FALSE, NULL, PagedPool, PINF, PLINE, PSECTION, SECTION, StringsSectionExactMatch, StringsSectionExactPrimaryMatch, StringsSectionLoosePrimaryMatch, StringsSectionNone, StringsSectionPlain, STRINGSSECTIONTYPE, TRUE, type, and USHORT. Referenced by CmpParseInfBuffer().
|
|
Definition at line 462 of file parseini.c. References ASSERT, ExAllocatePoolWithTag, FALSE, NULL, PagedPool, PLINE, PVALUE, and TRUE. Referenced by CmpParseInfBuffer().
|
|
Definition at line 1832 of file parseini.c. References CmpFreeSectionList(), ExFreePool(), and PINF. Referenced by CmpMatchInfList().
|
|
Definition at line 1495 of file parseini.c. References CmpFreeValueList(), ExFreePool(), PLINE, and _line::pNext. Referenced by CmpFreeSectionList().
|
|
Definition at line 1558 of file parseini.c. References CmpFreeLineList(), ExFreePool(), _section::pNext, and PSECTION. Referenced by CmpCloseInfFile().
|
|
Definition at line 1439 of file parseini.c. References ExFreePool(), _value::pNext, and PVALUE. Referenced by CmpFreeLineList().
|
|
Definition at line 2177 of file parseini.c. References Buffer, BufferSize, CmpGetSectionLineIndex(), CmpGetSectionLineIndexValueCount(), CmpSearchLineInSectionByIndex(), CmpSearchSectionByName(), FALSE, NULL, PINF, PLINE, PSECTION, PVALUE, and TRUE. Referenced by CmpGetAddRegInfData().
|
|
Definition at line 2120 of file parseini.c. References CmpGetSectionLineIndex(), FALSE, NULL, and TRUE. Referenced by CmpGetAddRegInfData(), CmpProcessAddRegLine(), and CmpProcessBitRegLine().
|
|
Definition at line 1890 of file parseini.c. References CmpSearchLineInSectionByIndex(), CmpSearchSectionByName(), NULL, PINF, PLINE, and PSECTION. Referenced by CmpGenInstall(), and CmpMatchDescription().
|
|
Definition at line 1991 of file parseini.c. References CmpProcessForSimpleStringSub(), CmpSearchLineInSectionByIndex(), CmpSearchSectionByName(), CmpSearchValueInLine(), NULL, PINF, PLINE, PSECTION, and PVALUE. Referenced by CmpGenInstall(), CmpGetAddRegInfData(), CmpGetBinaryField(), CmpGetInfData(), CmpGetIntField(), CmpMatchAcpiCreatorIdRule(), CmpMatchAcpiCreatorRevisionRule(), CmpMatchAcpiOemIdRule(), CmpMatchAcpiOemRevisionRule(), CmpMatchAcpiOemTableIdRule(), CmpMatchAcpiRevisionRule(), CmpMatchDateRule(), CmpMatchInfList(), CmpMatchInstallRule(), CmpMatchMemoryRule(), CmpMatchNextMatchRule(), CmpMatchOemIdRule(), CmpMatchPointerRule(), CmpMatchSearchRule(), CmpProcessAddRegLine(), CmpProcessBitRegLine(), and CmpProcessDelRegLine().
|
|
Definition at line 2060 of file parseini.c. References CmpSearchLineInSectionByIndex(), CmpSearchSectionByName(), PINF, PLINE, PSECTION, and PVALUE. Referenced by CmpGetAddRegInfData(), and CmpGetBinaryField().
|
|
Definition at line 537 of file parseini.c. References ASSERT, ExAllocatePoolWithTag, FALSE, NULL, PagedPool, QStringTerminators, StringTerminators, TOK_COMMA, TOK_EOF, TOK_EOL, TOK_EQUAL, TOK_ERRNOMEM, TOK_ERRPARSE, TOK_LBRACE, TOK_RBRACE, TOK_STRING, Token, and TRUE. Referenced by CmpParseInfBuffer().
|
|
Definition at line 1790 of file parseini.c. References CmpParseInfBuffer(), DbgPrint, NULL, and PINF. Referenced by CmpMatchInfList().
|
|
Definition at line 744 of file parseini.c. References ASSERT, Buffer, CmpAppendLine(), CmpAppendSection(), CmpAppendValue(), CmpGetToken(), DblSpaceSection, EmptyValue, ExAllocatePoolWithTag, ExFreePool(), FALSE, NULL, PagedPool, PINF, Size, StringsSectionNone, StringTerminators, strlen(), TOK_COMMA, TOK_EOF, TOK_EOL, TOK_EQUAL, TOK_LBRACE, TOK_RBRACE, TOK_STRING, TOKEN, and TRUE. Referenced by CmpOpenInfFile().
|
|
Definition at line 1369 of file parseini.c. References PLINE, PSECTION, String, and strlen(). Referenced by CmpGetSectionLineIndex().
|
|
Definition at line 1942 of file parseini.c. References CmpSearchLineInSectionByIndex(), CmpSearchSectionByName(), NULL, PINF, PLINE, and PSECTION. Referenced by CmpProcessReg().
|
|
Definition at line 1862 of file parseini.c. References CmpSearchSectionByName(), and NULL.
|
|
Definition at line 1739 of file parseini.c. Referenced by CmpGetBinaryField(), CmpGetKeyName(), CmpGetSectionLineIndex(), CmpGetSectionLineIndexValueCount(), and CmpSearchInfLine().
|
|
Definition at line 1661 of file parseini.c. References NULL, and PSECTION. Referenced by CmpGetBinaryField(), CmpGetKeyName(), CmpGetSectionLineIndex(), CmpGetSectionLineIndexValueCount(), CmpSearchInfLine(), and CmpSearchInfSection().
|
|
Definition at line 1622 of file parseini.c. Referenced by CmpGetSectionLineIndex().
|
|
Definition at line 216 of file parseini.c. Referenced by CmpParseInfBuffer(). |
|
Definition at line 215 of file parseini.c. Referenced by CmpParseInfBuffer(). |
|
Definition at line 214 of file parseini.c. Referenced by CmpGetToken(). |
|
Definition at line 213 of file parseini.c. Referenced by CmpGetToken(), and CmpParseInfBuffer(). |