ReactOS  0.4.13-dev-242-g611e6d7
d3dxof_private.h
Go to the documentation of this file.
1 /*
2  * DirectX File private interfaces (D3DXOF.DLL)
3  *
4  * Copyright 2004, 2008 Christian Costa
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #ifndef __D3DXOF_PRIVATE_INCLUDED__
22 #define __D3DXOF_PRIVATE_INCLUDED__
23 
24 #include <stdarg.h>
25 
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wtypes.h"
29 #include "wingdi.h"
30 #include "winuser.h"
31 #include "dxfile.h"
32 
33 #define MAX_NAME_LEN 40
34 #define MAX_ARRAY_DIM 4
35 #define MAX_MEMBERS 50
36 #define MAX_CHILDREN 200
37 #define MAX_TEMPLATES 200
38 #define MAX_OBJECTS 500
39 #define MAX_SUBOBJECTS 2000
40 #define MAX_STRINGS_BUFFER 10000
41 
42 typedef struct {
47  BOOL dim_fixed[MAX_ARRAY_DIM]; /* fixed or variable */
48  ULONG dim_value[MAX_ARRAY_DIM]; /* fixed value or member index */
49 } member;
50 
51 typedef struct {
57  char children[MAX_CHILDREN][MAX_NAME_LEN];
59  member members[MAX_MEMBERS];
60 } xtemplate;
61 
62 typedef struct {
63  char* name;
67 
68 struct _xobject {
70  struct _xobject* ptarget;
82  struct _xobject * root;
83 };
84 
85 typedef struct _xobject xobject;
86 
87 typedef struct {
88  IDirectXFile IDirectXFile_iface;
91  xtemplate xtemplates[MAX_TEMPLATES];
93 
94 typedef struct {
95  IDirectXFileBinary IDirectXFileBinary_iface;
98 
99 typedef struct {
100  IDirectXFileData IDirectXFileData_iface;
108 
109 typedef struct {
110  IDirectXFileDataReference IDirectXFileDataReference_iface;
114 
115 typedef struct {
116  IDirectXFileObject IDirectXFileObject_iface;
119 
120 typedef struct {
121  /* Buffer to parse */
124  /* Misc info */
133  BYTE value[100];
144 } parse_buffer;
145 
146 typedef struct {
147  IDirectXFileEnumObject IDirectXFileEnumObject_iface;
154  xobject* xobjects[MAX_OBJECTS];
155  IDirectXFileData* pRefObjects[MAX_OBJECTS];
157 
158 typedef struct {
159  IDirectXFileSaveObject IDirectXFileSaveObject_iface;
162 
164 
168 
169 int mszip_decompress(int inlen, int outlen, char* inbuffer, char* outbuffer) DECLSPEC_HIDDEN;
170 
171 #endif /* __D3DXOF_PRIVATE_INCLUDED__ */
#define MAX_TEMPLATES
ULONG nb_children
const unsigned char * inbuffer
Definition: jpeglib.h:982
IDirectXFileEnumObject IDirectXFileEnumObject_iface
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
ULONG nb_subobjects
GUID class_id
IDirectXFileObject IDirectXFileObject_iface
struct _xobject * children[MAX_CHILDREN]
DWORD size
int mszip_decompress(int inlen, int outlen, char *inbuffer, char *outbuffer) DECLSPEC_HIDDEN
LPBYTE cur_pstrings
IDirectXFileImpl * pdxf
unsigned char * LPBYTE
Definition: typedefs.h:52
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
IDirectXFileData IDirectXFileData_iface
xobject * pxo_tab
xobject_member members[MAX_MEMBERS]
BOOL parse_templates(parse_buffer *buf, BOOL templates_only) DECLSPEC_HIDDEN
Definition: parsing.c:1099
IDirectXFileSaveObject IDirectXFileSaveObject_iface
ULONG nb_members
HRESULT parse_header(parse_buffer *buf, BYTE **decomp_buffer_ptr) DECLSPEC_HIDDEN
Definition: parsing.c:185
ULONG nb_children
xobject ** pxo_globals
IDirectXFileDataReference IDirectXFileDataReference_iface
LONG HRESULT
Definition: typedefs.h:77
ULONG nb_pxo_globals
#define MAX_ARRAY_DIM
IDirectXFileBinary IDirectXFileBinary_iface
ULONG pos_data
unsigned short WORD
Definition: ntddk_ex.h:93
static DWORD parse_buffer(struct inf_file *file, const WCHAR *buffer, const WCHAR *end, UINT *error_line)
Definition: parser.c:911
unsigned long DWORD
Definition: ntddk_ex.h:95
#define MAX_NAME_LEN
DWORD list_nb_elements
LONG idx_template
unsigned char BYTE
Definition: mem.h:68
#define MAX_SUBOBJECTS
#define MAX_OBJECTS
ULONG nb_members
struct _xobject * root
DWORD type
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
ULONG nb_dims
LPBYTE pdata
struct _xobject * ptarget
#define MAX_CHILDREN
Definition: name.c:36
unsigned int ULONG
Definition: retypes.h:1
IDirectXFileImpl * pDirectXFile
BOOL parse_object(parse_buffer *buf) DECLSPEC_HIDDEN
Definition: parsing.c:1380
IDirectXFile IDirectXFile_iface
HRESULT IDirectXFileImpl_Create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN
Definition: d3dxof.c:51
xobject * pxo
#define MAX_MEMBERS