d3dxof: Move X files parsing into a separate file.

This commit is contained in:
Christian Costa 2008-12-31 12:27:24 +01:00 committed by Alexandre Julliard
parent 3807ca733d
commit eb4eda2757
4 changed files with 1300 additions and 1251 deletions

View File

@ -9,6 +9,7 @@ IMPORTS = dxguid uuid ole32 advapi32 kernel32
C_SRCS = \ C_SRCS = \
main.c \ main.c \
d3dxof.c \ d3dxof.c \
parsing.c \
regsvr.c regsvr.c
RC_SRCS = version.rc RC_SRCS = version.rc

File diff suppressed because it is too large Load Diff

View File

@ -42,6 +42,8 @@
#define MAX_SUBOBJECTS 500 #define MAX_SUBOBJECTS 500
#define MAX_STRINGS_BUFFER 10000 #define MAX_STRINGS_BUFFER 10000
#define MAX_DATA_SIZE 400000
typedef struct { typedef struct {
DWORD type; DWORD type;
LONG idx_template; LONG idx_template;
@ -163,4 +165,10 @@ HRESULT IDirectXFileImpl_Create(IUnknown *pUnkOuter, LPVOID *ppObj);
HRESULT IDirectXFileFileObjectImpl_Create(IDirectXFileObjectImpl** ppObj); HRESULT IDirectXFileFileObjectImpl_Create(IDirectXFileObjectImpl** ppObj);
HRESULT IDirectXFileFileSaveObjectImpl_Create(IDirectXFileSaveObjectImpl** ppObj); HRESULT IDirectXFileFileSaveObjectImpl_Create(IDirectXFileSaveObjectImpl** ppObj);
BOOL read_bytes(parse_buffer * buf, LPVOID data, DWORD size);
BOOL parse_template(parse_buffer * buf);
void dump_template(xtemplate* templates_array, xtemplate* ptemplate);
BOOL is_template_available(parse_buffer * buf);
BOOL parse_object(parse_buffer * buf);
#endif /* __D3DXOF_PRIVATE_INCLUDED__ */ #endif /* __D3DXOF_PRIVATE_INCLUDED__ */

1290
dlls/d3dxof/parsing.c Normal file

File diff suppressed because it is too large Load Diff