2 * DirectX File private interfaces (D3DXOF.DLL)
4 * Copyright 2004, 2008 Christian Costa
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.
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.
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
21 #ifndef __D3DXOF_PRIVATE_INCLUDED__
22 #define __D3DXOF_PRIVATE_INCLUDED__
28 #define WIN32_NO_STATUS
30 #define COM_NO_WINDOWS_H
38 #include <wine/debug.h>
40 #define MAX_NAME_LEN 40
41 #define MAX_ARRAY_DIM 4
42 #define MAX_MEMBERS 50
43 #define MAX_CHILDREN 200
44 #define MAX_TEMPLATES 200
45 #define MAX_OBJECTS 500
46 #define MAX_SUBOBJECTS 2000
47 #define MAX_STRINGS_BUFFER 10000
52 char name
[MAX_NAME_LEN
];
54 BOOL dim_fixed
[MAX_ARRAY_DIM
]; /* fixed or variable */
55 ULONG dim_value
[MAX_ARRAY_DIM
]; /* fixed value or member index */
59 char name
[MAX_NAME_LEN
];
64 char children
[MAX_CHILDREN
][MAX_NAME_LEN
];
66 member members
[MAX_MEMBERS
];
77 struct _xobject
* ptarget
;
78 char name
[MAX_NAME_LEN
];
85 xobject_member members
[MAX_MEMBERS
];
88 struct _xobject
* children
[MAX_CHILDREN
];
89 struct _xobject
* root
;
92 typedef struct _xobject xobject
;
95 IDirectXFile IDirectXFile_iface
;
98 xtemplate xtemplates
[MAX_TEMPLATES
];
102 IDirectXFileBinary IDirectXFileBinary_iface
;
104 } IDirectXFileBinaryImpl
;
107 IDirectXFileData IDirectXFileData_iface
;
114 } IDirectXFileDataImpl
;
117 IDirectXFileDataReference IDirectXFileDataReference_iface
;
120 } IDirectXFileDataReferenceImpl
;
123 IDirectXFileObject IDirectXFileObject_iface
;
125 } IDirectXFileObjectImpl
;
128 /* Buffer to parse */
135 DWORD list_nb_elements
;
136 BOOL list_type_float
;
141 xobject
** pxo_globals
;
142 ULONG nb_pxo_globals
;
144 IDirectXFileImpl
* pdxf
;
146 xtemplate
* pxt
[MAX_SUBOBJECTS
];
154 IDirectXFileEnumObject IDirectXFileEnumObject_iface
;
156 LPBYTE mapped_memory
;
157 LPBYTE decomp_buffer
;
159 IDirectXFileImpl
* pDirectXFile
;
161 xobject
* xobjects
[MAX_OBJECTS
];
162 IDirectXFileData
* pRefObjects
[MAX_OBJECTS
];
163 } IDirectXFileEnumObjectImpl
;
166 IDirectXFileSaveObject IDirectXFileSaveObject_iface
;
168 } IDirectXFileSaveObjectImpl
;
170 HRESULT
IDirectXFileImpl_Create(IUnknown
*pUnkOuter
, LPVOID
*ppObj
) DECLSPEC_HIDDEN
;
172 HRESULT
parse_header(parse_buffer
*buf
, BYTE
**decomp_buffer_ptr
) DECLSPEC_HIDDEN
;
173 BOOL
parse_object(parse_buffer
* buf
) DECLSPEC_HIDDEN
;
174 BOOL
parse_templates(parse_buffer
* buf
, BOOL templates_only
) DECLSPEC_HIDDEN
;
176 int mszip_decompress(int inlen
, int outlen
, char* inbuffer
, char* outbuffer
) DECLSPEC_HIDDEN
;
178 #endif /* __D3DXOF_PRIVATE_INCLUDED__ */