ReactOS
0.4.15-dev-2095-g7caf9e9
|
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) |
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(), and hhp_reader::hhp_reader().
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().
Definition at line 887 of file parser.c.
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 188 of file parser.c.
Referenced by parse_file().
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().
|
inlinestatic |
Definition at line 249 of file parser.c.
Referenced by get_field(), SetupGetBinaryField(), SetupGetFieldCount(), SetupGetLineTextA(), SetupGetLineTextW(), SetupGetMultiSzFieldA(), and SetupGetMultiSzFieldW().
|
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.
Definition at line 847 of file parser.c.
Definition at line 617 of file parser.c.
|
static |
Definition at line 911 of file parser.c.
Referenced by parse_file().
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 474 of file parser.c.
Referenced by add_field_from_token(), and add_section_from_token().
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 817 of file parser.c.
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(), and test_invalid_files().
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 SetupDiGetINFClassA(), and SetupDiInstallDevice().
Definition at line 1564 of file parser.c.
Referenced by SetupGetLineTextA().
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.
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 | ) |
Definition at line 1858 of file parser.c.
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().
Definition at line 1515 of file parser.c.
Definition at line 1534 of file parser.c.
Referenced by SetupGetLineByIndexA().
Definition at line 1475 of file parser.c.
Definition at line 1494 of file parser.c.
Referenced by SetupGetLineCountA(), and StartComponentRegistration().
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().
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 | ||
) |
Definition at line 2025 of file parser.c.