Implement ResetDC and PHYSICALOFFSET[X|Y] devcaps.
[wine] / dlls / quartz / fmap.h
1 /*
2  * Copyright (C) Hidenori TAKESHIMA
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef WINE_DSHOW_FMAP_H
20 #define WINE_DSHOW_FMAP_H
21
22 /*
23                 implements CLSID_FilterMapper.
24
25         - At least, the following interfaces should be implemented:
26
27         IUnknown
28                 + IFilterMapper
29  */
30
31 #include "iunk.h"
32
33
34 typedef struct FM_IFilterMapperImpl
35 {
36         ICOM_VFIELD(IFilterMapper);
37 } FM_IFilterMapperImpl;
38
39 typedef struct CFilterMapper
40 {
41         QUARTZ_IUnkImpl unk;
42         FM_IFilterMapperImpl    fmap;
43 } CFilterMapper;
44
45 #define CFilterMapper_THIS(iface,member)                CFilterMapper*  This = ((CFilterMapper*)(((char*)iface)-offsetof(CFilterMapper,member)))
46
47 HRESULT QUARTZ_CreateFilterMapper(IUnknown* punkOuter,void** ppobj);
48
49
50 HRESULT CFilterMapper_InitIFilterMapper( CFilterMapper* pfm );
51 void CFilterMapper_UninitIFilterMapper( CFilterMapper* pfm );
52
53
54
55 /*
56                 implements CLSID_FilterMapper2.
57
58         - At least, the following interfaces should be implemented:
59
60         IUnknown
61                 + IFilterMapper2
62  */
63
64
65 typedef struct FM2_IFilterMapper2Impl
66 {
67         ICOM_VFIELD(IFilterMapper2);
68 } FM2_IFilterMapper2Impl;
69
70 typedef struct CFilterMapper2
71 {
72         QUARTZ_IUnkImpl unk;
73         FM2_IFilterMapper2Impl  fmap2;
74         /* IFilterMapper2 fields */
75 } CFilterMapper2;
76
77 #define CFilterMapper2_THIS(iface,member)               CFilterMapper2* This = ((CFilterMapper2*)(((char*)iface)-offsetof(CFilterMapper2,member)))
78
79 HRESULT QUARTZ_CreateFilterMapper2(IUnknown* punkOuter,void** ppobj);
80
81
82 HRESULT CFilterMapper2_InitIFilterMapper2( CFilterMapper2* psde );
83 void CFilterMapper2_UninitIFilterMapper2( CFilterMapper2* psde );
84
85 #endif  /* WINE_DSHOW_FMAP_H */