d3dxof: Implement storage of parsed information.
[wine.git] / dlls / d3dxof / d3dxof_private.h
blob9bbf62927f64ebca89703aeb88b2bb383a84b0a1
1 /*
2 * DirectX File private interfaces (D3DXOF.DLL)
4 * Copyright 2004, 2008 Christian Costa
6 * This file contains the (internal) driver registration functions,
7 * driver enumeration APIs and DirectDraw creation functions.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #ifndef __D3DXOF_PRIVATE_INCLUDED__
25 #define __D3DXOF_PRIVATE_INCLUDED__
27 #include <stdarg.h>
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wtypes.h"
32 #include "wingdi.h"
33 #include "winuser.h"
34 #include "dxfile.h"
36 #define MAX_NAME_LEN 32
37 #define MAX_ARRAY_DIM 1
38 #define MAX_MEMBERS 50
39 #define MAX_CHILDS 10
40 #define MAX_TEMPLATES 200
42 typedef struct {
43 DWORD type;
44 LONG idx_template;
45 char name[MAX_NAME_LEN];
46 ULONG nb_dims;
47 BOOL dim_fixed[MAX_ARRAY_DIM]; /* fixed or variable */
48 ULONG dim_value[MAX_ARRAY_DIM]; /* fixed value or member index */
49 } member;
51 typedef struct {
52 char name[MAX_NAME_LEN];
53 GUID class_id;
54 BOOL open;
55 ULONG nb_childs;
56 char childs[MAX_CHILDS][MAX_NAME_LEN];
57 ULONG nb_members;
58 member members[MAX_MEMBERS];
59 } xtemplate;
61 typedef struct {
62 IDirectXFile lpVtbl;
63 LONG ref;
64 ULONG nb_xtemplates;
65 xtemplate xtemplates[MAX_TEMPLATES];
66 } IDirectXFileImpl;
68 typedef struct {
69 IDirectXFileBinary lpVtbl;
70 LONG ref;
71 } IDirectXFileBinaryImpl;
73 typedef struct {
74 IDirectXFileData lpVtbl;
75 LONG ref;
76 } IDirectXFileDataImpl;
78 typedef struct {
79 IDirectXFileDataReference lpVtbl;
80 LONG ref;
81 } IDirectXFileDataReferenceImpl;
83 typedef struct {
84 IDirectXFileObject lpVtbl;
85 LONG ref;
86 } IDirectXFileObjectImpl;
88 typedef struct {
89 IDirectXFileEnumObject lpVtbl;
90 LONG ref;
91 } IDirectXFileEnumObjectImpl;
93 typedef struct {
94 IDirectXFileSaveObject lpVtbl;
95 LONG ref;
96 } IDirectXFileSaveObjectImpl;
98 HRESULT IDirectXFileImpl_Create(IUnknown *pUnkOuter, LPVOID *ppObj);
99 HRESULT IDirectXFileBinaryImpl_Create(IDirectXFileBinaryImpl** ppObj);
100 HRESULT IDirectXFileDataImpl_Create(IDirectXFileDataImpl** ppObj);
101 HRESULT IDirectXFileDataReferenceImpl_Create(IDirectXFileDataReferenceImpl** ppObj);
102 HRESULT IDirectXFileEnumObjectImpl_Create(IDirectXFileEnumObjectImpl** ppObj);
103 HRESULT IDirectXFileFileObjectImpl_Create(IDirectXFileObjectImpl** ppObj);
104 HRESULT IDirectXFileFileSaveObjectImpl_Create(IDirectXFileSaveObjectImpl** ppObj);
106 #endif /* __D3DXOF_PRIVATE_INCLUDED__ */