ReactOS 0.4.16-dev-334-g4d9f67c
|
Go to the source code of this file.
Classes | |
struct | field |
struct | line |
struct | section |
struct | inf_file |
struct | parser |
Macros | |
#define | CONTROL_Z '\x1a' |
#define | MAX_SECTION_NAME_LEN 255 |
#define | MAX_FIELD_LEN 511 /* larger fields get silently truncated */ |
#define | MAX_STRING_LEN (MAX_INF_STRING_LENGTH+1) |
Typedefs | |
typedef const WCHAR *(* | parser_state_func) (struct parser *parser, const WCHAR *pos) |
Enumerations | |
enum | parser_state { HEADER , PARSE_WIN31_LINE , LINE_START , KEY_NAME , DELETE_KEY , DEFAULT_VALUE_NAME , QUOTED_VALUE_NAME , DATA_START , DELETE_VALUE , DATA_TYPE , STRING_DATA , DWORD_DATA , HEX_DATA , EOL_BACKSLASH , HEX_MULTILINE , UNKNOWN_DATA , SET_VALUE , NB_PARSER_STATES , HEADER , PARSE_WIN31_LINE , LINE_START , KEY_NAME , DELETE_KEY , DEFAULT_VALUE_NAME , QUOTED_VALUE_NAME , DATA_START , DELETE_VALUE , DATA_TYPE , STRING_DATA , DWORD_DATA , HEX_DATA , EOL_BACKSLASH , HEX_MULTILINE , UNKNOWN_DATA , SET_VALUE , NB_PARSER_STATES , LINE_START , SECTION_NAME , KEY_NAME , VALUE_NAME , EOL_BACKSLASH , QUOTES , LEADING_SPACES , TRAILING_SPACES , COMMENT , NB_PARSER_STATES , LINE_START , SECTION_NAME , KEY_NAME , VALUE_NAME , EOL_BACKSLASH , QUOTES , LEADING_SPACES , TRAILING_SPACES , COMMENT , NB_PARSER_STATES , LINE_START , SECTION_NAME , KEY_NAME , VALUE_NAME , EOL_BACKSLASH , QUOTES , LEADING_SPACES , TRAILING_SPACES , COMMENT , NB_PARSER_STATES } |
Variables | |
static const WCHAR | BackSlash [] = {'\\',0} |
static const WCHAR | Class [] = {'C','l','a','s','s',0} |
static const WCHAR | ClassGUID [] = {'C','l','a','s','s','G','U','I','D',0} |
static const WCHAR | InfDirectory [] = {'i','n','f','\\',0} |
static const WCHAR | InfFileSpecification [] = {'*','.','i','n','f',0} |
static const parser_state_func | parser_funcs [NB_PARSER_STATES] |
static const WCHAR | Version [] = {'V','e','r','s','i','o','n',0} |
static const WCHAR | Signature [] = {'S','i','g','n','a','t','u','r','e',0} |
static const WCHAR | Chicago [] = {'$','C','h','i','c','a','g','o','$',0} |
static const WCHAR | WindowsNT [] = {'$','W','i','n','d','o','w','s',' ','N','T','$',0} |
static const WCHAR | Windows95 [] = {'$','W','i','n','d','o','w','s',' ','9','5','$',0} |
static const WCHAR | LayoutFile [] = {'L','a','y','o','u','t','F','i','l','e',0} |
#define MAX_STRING_LEN (MAX_INF_STRING_LENGTH+1) |
Definition at line 80 of file parser.c.
Definition at line 280 of file parser.c.
Referenced by add_field_from_token().
Definition at line 566 of file parser.c.
Referenced by key_name_state(), and value_name_state().
Definition at line 225 of file parser.c.
Referenced by add_field_from_token().
Definition at line 206 of file parser.c.
Referenced by add_section_from_token().
Definition at line 540 of file parser.c.
Referenced by section_name_state().
Definition at line 970 of file parser.c.
Referenced by SetupOpenAppendInfFileA(), and SetupOpenAppendInfFileW().
Definition at line 602 of file parser.c.
Referenced by line_start_state().
BOOL EnumerateSectionsStartingWith | ( | IN HINF | hInf, |
IN LPCWSTR | pStr, | ||
IN FIND_CALLBACK | Callback, | ||
IN PVOID | Context | ||
) |
Definition at line 2387 of file parser.c.
Referenced by SetupDiGetActualSectionToInstallExW().
Definition at line 784 of file parser.c.
|
static |
Definition at line 177 of file parser.c.
Referenced by add_section_from_token(), parse_buffer(), parse_file(), SetupFindFirstLineW(), SetupFindNextLine(), SetupFindNextMatchLineW(), SetupGetLineByIndexW(), and SetupGetLineCountW().
Definition at line 897 of file parser.c.
Referenced by parse_file(), and SetupCloseInfFile().
|
static |
Definition at line 296 of file parser.c.
Referenced by get_string_subst(), and PARSER_get_dest_dir().
|
static |
Definition at line 262 of file parser.c.
Referenced by pSetupGetField(), SetupGetStringFieldA(), and SetupGetStringFieldW().
Definition at line 168 of file parser.c.
Referenced by get_dirid_subst(), and PARSER_get_src_root().
|
static |
Definition at line 309 of file parser.c.
Referenced by PARSER_string_substW().
Definition at line 148 of file parser.c.
Referenced by add_field(), and add_section().
Definition at line 509 of file parser.c.
Referenced by eol_backslash_state(), and line_start_state().
Definition at line 516 of file parser.c.
Referenced by comment_state(), key_name_state(), leading_spaces_state(), quotes_state(), section_name_state(), trailing_spaces_state(), and value_name_state().
Definition at line 677 of file parser.c.
|
static |
Definition at line 989 of file parser.c.
Referenced by SetupOpenInfFileW().
WCHAR * PARSER_get_dest_dir | ( | INFCONTEXT * | context | ) |
Definition at line 1116 of file parser.c.
Referenced by get_destination_dir(), register_dlls_callback(), and SetupGetTargetPathW().
Definition at line 1096 of file parser.c.
Referenced by get_src_file_info().
|
static |
Definition at line 1161 of file parser.c.
Referenced by SetupDiGetINFClassW(), and SetupOpenInfFileW().
|
static |
Definition at line 456 of file parser.c.
Referenced by SetupGetLineTextA(), SetupGetMultiSzFieldA(), and SetupGetStringFieldA().
|
static |
Definition at line 403 of file parser.c.
Referenced by PARSER_string_substA(), SetupGetLineTextW(), SetupGetMultiSzFieldW(), and SetupGetStringFieldW().
Definition at line 492 of file parser.c.
Referenced by comment_state(), eol_backslash_state(), leading_spaces_state(), quotes_state(), and trailing_spaces_state().
LPCWSTR WINAPI pSetupGetField | ( | PINFCONTEXT | context, |
DWORD | index | ||
) |
Definition at line 2122 of file parser.c.
|
inlinestatic |
Definition at line 484 of file parser.c.
Referenced by eol_backslash_state(), key_name_state(), line_start_state(), section_name_state(), and value_name_state().
Definition at line 523 of file parser.c.
Referenced by eol_backslash_state(), key_name_state(), quotes_state(), section_name_state(), and value_name_state().
Definition at line 656 of file parser.c.
|
inlinestatic |
Definition at line 500 of file parser.c.
Referenced by eol_backslash_state(), key_name_state(), leading_spaces_state(), line_start_state(), section_name_state(), trailing_spaces_state(), and value_name_state().
Definition at line 1393 of file parser.c.
Referenced by SetupDiGetINFClassW(), SetupGetInfFileListW(), SetupOpenInfFileW(), test_close_inf_file(), test_enum_sections(), test_GLE(), test_invalid_files(), test_key_names(), test_pSetupGetField(), test_section_names(), and test_SetupGetIntField().
BOOL WINAPI SetupDiGetINFClassA | ( | IN PCSTR | InfName, |
OUT LPGUID | ClassGuid, | ||
OUT PSTR | ClassName, | ||
IN DWORD | ClassNameSize, | ||
OUT PDWORD RequiredSize | OPTIONAL | ||
) |
Definition at line 2347 of file parser.c.
Referenced by test_get_inf_class().
BOOL WINAPI SetupDiGetINFClassW | ( | IN PCWSTR | InfName, |
OUT LPGUID | ClassGuid, | ||
OUT PWSTR | ClassName, | ||
IN DWORD | ClassNameSize, | ||
OUT PDWORD RequiredSize | OPTIONAL | ||
) |
Definition at line 2316 of file parser.c.
Referenced by InstallSoftwareBusPnpEnumerator(), SetupDiGetINFClassA(), and SetupDiInstallDevice().
Definition at line 1564 of file parser.c.
Referenced by SetupGetLineTextA(), test_GLE(), test_key_names(), test_pSetupGetField(), and test_SetupGetIntField().
Definition at line 1593 of file parser.c.
Referenced by SetupFindFirstLineA(), SetupGetLineTextW(), and SetupOpenAppendInfFileW().
BOOL WINAPI SetupFindNextLine | ( | PINFCONTEXT | context_in, |
PINFCONTEXT | context_out | ||
) |
Definition at line 1631 of file parser.c.
Referenced by SetupFindNextMatchLineA(), and SetupFindNextMatchLineW().
BOOL WINAPI SetupFindNextMatchLineA | ( | PINFCONTEXT | context_in, |
PCSTR | key, | ||
PINFCONTEXT | context_out | ||
) |
Definition at line 1672 of file parser.c.
Referenced by test_GLE().
BOOL WINAPI SetupFindNextMatchLineW | ( | PINFCONTEXT | context_in, |
PCWSTR | key, | ||
PINFCONTEXT | context_out | ||
) |
Definition at line 1694 of file parser.c.
Referenced by iterate_section_fields(), SetupDiInstallDeviceInterfaces(), SetupFindFirstLineW(), SetupFindNextMatchLineA(), and SetupInstallServicesFromInfSectionExW().
BOOL WINAPI SetupGetBinaryField | ( | PINFCONTEXT | context, |
DWORD | index, | ||
BYTE * | buffer, | ||
DWORD | size, | ||
LPDWORD | required | ||
) |
Definition at line 1969 of file parser.c.
DWORD WINAPI SetupGetFieldCount | ( | PINFCONTEXT | context | ) |
BOOL WINAPI SetupGetInfFileListA | ( | IN PCSTR DirectoryPath | OPTIONAL, |
IN DWORD | InfStyle, | ||
IN OUT PSTR ReturnBuffer | OPTIONAL, | ||
IN DWORD ReturnBufferSize | OPTIONAL, | ||
OUT PDWORD RequiredSize | OPTIONAL | ||
) |
Definition at line 2272 of file parser.c.
Referenced by test_inffilelistA().
BOOL WINAPI SetupGetInfFileListW | ( | IN PCWSTR DirectoryPath | OPTIONAL, |
IN DWORD | InfStyle, | ||
IN OUT PWSTR ReturnBuffer | OPTIONAL, | ||
IN DWORD ReturnBufferSize | OPTIONAL, | ||
OUT PDWORD RequiredSize | OPTIONAL | ||
) |
Definition at line 2139 of file parser.c.
Referenced by SetupDiBuildDriverInfoList(), SetupGetInfFileListA(), and test_inffilelist().
BOOL WINAPI SetupGetIntField | ( | PINFCONTEXT | context, |
DWORD | index, | ||
PINT | result | ||
) |
Definition at line 1933 of file parser.c.
Referenced by PARSER_get_dest_dir(), and test_SetupGetIntField().
Definition at line 1515 of file parser.c.
Referenced by test_GLE().
Definition at line 1534 of file parser.c.
Referenced by SetupGetLineByIndexA().
Definition at line 1475 of file parser.c.
Referenced by test_GLE(), and test_section_names().
Definition at line 1494 of file parser.c.
Referenced by RegisterDlls(), and SetupGetLineCountA().
BOOL WINAPI SetupGetLineTextA | ( | PINFCONTEXT | context, |
HINF | hinf, | ||
PCSTR | section_name, | ||
PCSTR | key_name, | ||
PSTR | buffer, | ||
DWORD | size, | ||
PDWORD | required | ||
) |
Definition at line 1807 of file parser.c.
Referenced by get_line_text(), and test_GLE().
BOOL WINAPI SetupGetLineTextW | ( | PINFCONTEXT | context, |
HINF | hinf, | ||
PCWSTR | section_name, | ||
PCWSTR | key_name, | ||
PWSTR | buffer, | ||
DWORD | size, | ||
PDWORD | required | ||
) |
Definition at line 1756 of file parser.c.
Referenced by del_dirs_callback(), GetLineText(), GetVersionInformationFromInfFile(), PARSER_GetInfClassW(), per_user_install_callback(), registry_callback(), run_setup_commands_callback(), set_ldids(), SETUP_CreateClassKey(), SetupQueryInfOriginalFileInformationW(), SetupQueueCopySectionW(), TranslateInfStringExW(), and TranslateInfStringW().
BOOL WINAPI SetupGetMultiSzFieldA | ( | PINFCONTEXT | context, |
DWORD | index, | ||
PSTR | buffer, | ||
DWORD | size, | ||
LPDWORD | required | ||
) |
BOOL WINAPI SetupGetMultiSzFieldW | ( | PINFCONTEXT | context, |
DWORD | index, | ||
PWSTR | buffer, | ||
DWORD | size, | ||
LPDWORD | required | ||
) |
BOOL WINAPI SetupGetStringFieldA | ( | PINFCONTEXT | context, |
DWORD | index, | ||
PSTR | buffer, | ||
DWORD | size, | ||
PDWORD | required | ||
) |
Definition at line 1871 of file parser.c.
Referenced by get_string_field(), and SetupGetIntField().
BOOL WINAPI SetupGetStringFieldW | ( | PINFCONTEXT | context, |
DWORD | index, | ||
PWSTR | buffer, | ||
DWORD | size, | ||
PDWORD | required | ||
) |
Definition at line 1902 of file parser.c.
Referenced by PARSER_get_dest_dir(), and SetupOpenAppendInfFileW().
Definition at line 1330 of file parser.c.
Definition at line 1346 of file parser.c.
Referenced by include_callback(), SetupDiInstallClassExW(), and SetupOpenAppendInfFileA().
Definition at line 1139 of file parser.c.
Referenced by inf_open_file_content(), SetupOpenAppendInfFileA(), test_file_contents(), test_install_from(), test_install_svc_from(), test_original_file_name(), test_SetupDiInstallClassExA(), test_SetupGetInfInformation(), test_SetupGetSourceFileLocation(), test_SetupGetSourceInfo(), test_SetupGetTargetPath(), test_SetupInstallServicesFromInfSectionExA(), and test_SetupInstallServicesFromInfSectionExW().
Definition at line 1229 of file parser.c.
Referenced by AddNewKbLayoutsByLcid(), CheckInfFile(), CommonInstall(), CreateInfFileDetails(), GetDefaultLayoutForLocale(), HandleSetupCommand(), InitCodePagesList(), install_init(), InstallDeviceData(), InstallHinfSectionW(), InstallInfSections(), InstallReactOS(), InstallSecurity(), InstallSoftwareDeviceInterfaceInf(), InstallSysSetupInfComponents(), LoadOSList(), MMSYS_InstallDevice(), NetClassInstaller(), OpenINFEngineW(), OpenSetupInf(), ProcessSetupInf(), SaveFontSubstitutionSettings(), search_for_inf(), SetupDiGetINFClassW(), SetupDiInstallClassExW(), SetupGetInfFileListW(), SetupGetInfInformationW(), SetupOpenAppendInfFileW(), SetupOpenInfFileA(), SetupOpenInfFileExW(), SetupOpenMasterInf(), SetupQueryInfOriginalFileInformationW(), and TranslateInfStringW().
Definition at line 1378 of file parser.c.
Definition at line 29 of file parser.c.
Referenced by SetupGetInfFileListW().
Definition at line 142 of file parser.c.
Referenced by parse_file().
Definition at line 31 of file parser.c.
Referenced by PARSER_GetInfClassW().
Definition at line 32 of file parser.c.
Referenced by SetupGetInfFileListW().
Definition at line 33 of file parser.c.
Referenced by SetupGetInfFileListW().
Definition at line 145 of file parser.c.
Referenced by SetupOpenAppendInfFileW().
|
static |
Definition at line 125 of file parser.c.
Referenced by parse_buffer().
Definition at line 141 of file parser.c.
Referenced by _Struct_size_bytes_(), AcpiGetTable(), AcpiGetTableHeader(), AcpiTbFindTable(), AcpiTbPrintTableHeader(), AcpiTbVerifyTempTable(), AddBootStoreEntry(), AddDiskToList(), AddReactOSArcDiskInfo(), ata_send_ioctl(), BlUtlGetAcpiTable(), CreateFreeLoaderIniForReactOSAndBootSector(), CreateFreeLoaderReactOSEntries(), CreateNTOSEntry(), CRYPT_AsnDecodeCertSignedContent(), DiskFlushDispatch(), DiskInfoExceptionCheck(), DiskIoctlGetMediaTypesEx(), DiskIoctlIsWritable(), DiskIoctlReassignBlocks(), DiskIoctlReassignBlocksEx(), DiskIoctlVerifyThread(), DiskModeSelect(), DiskPerformSmartCommand(), DiskShutdownFlush(), DrvEvaluateGtmObject(), EnumerateInstallations(), EnumerateReactOSEntries(), EvalCreateParametersList(), FreeLdrEnumerateBootEntries(), FstubWriteBootSectorEFI(), GetDiskBySignature(), GetHarddiskInformation(), HalAcpiGetTable(), HalpAcpiGetCachedTable(), HalpAcpiGetTable(), HalpAcpiGetTableFromBios(), ILCreateNetConnectItem(), InstallMbrBootCode(), IoGetBootDiskInformation(), IopCreateArcNamesDisk(), IopCreateLogFile(), IopVerifyDiskSignature(), IoReadDiskSignature(), main(), NtLdrEnumerateBootEntries(), parse_file(), PcInitializeBootDevices(), pInitializeStorageRequestBlock(), ResetBus(), test_EnumBuffer(), test_Functions(), test_GetBuffer(), test_pack_IMAGE_NT_HEADERS32(), test_pack_IMAGE_NT_HEADERS64(), test_pack_IMAGE_SEPARATE_DEBUG_HEADER(), test_pack_USER_MARSHAL_CB(), UefiInitializeBootDevices(), UpdateBootIni(), and UpdateFreeLoaderIni().
Definition at line 144 of file parser.c.
Referenced by parse_file().