/* * Copyright (C) Hidenori TAKESHIMA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef WINE_DSHOW_FMAP_H #define WINE_DSHOW_FMAP_H /* implements CLSID_FilterMapper. - At least, the following interfaces should be implemented: IUnknown + IFilterMapper */ #include "iunk.h" typedef struct FM_IFilterMapperImpl { ICOM_VFIELD(IFilterMapper); } FM_IFilterMapperImpl; typedef struct CFilterMapper { QUARTZ_IUnkImpl unk; FM_IFilterMapperImpl fmap; } CFilterMapper; #define CFilterMapper_THIS(iface,member) CFilterMapper* This = ((CFilterMapper*)(((char*)iface)-offsetof(CFilterMapper,member))) HRESULT QUARTZ_CreateFilterMapper(IUnknown* punkOuter,void** ppobj); HRESULT CFilterMapper_InitIFilterMapper( CFilterMapper* pfm ); void CFilterMapper_UninitIFilterMapper( CFilterMapper* pfm ); /* implements CLSID_FilterMapper2. - At least, the following interfaces should be implemented: IUnknown + IFilterMapper2 */ typedef struct FM2_IFilterMapper2Impl { ICOM_VFIELD(IFilterMapper2); } FM2_IFilterMapper2Impl; typedef struct CFilterMapper2 { QUARTZ_IUnkImpl unk; FM2_IFilterMapper2Impl fmap2; /* IFilterMapper2 fields */ } CFilterMapper2; #define CFilterMapper2_THIS(iface,member) CFilterMapper2* This = ((CFilterMapper2*)(((char*)iface)-offsetof(CFilterMapper2,member))) HRESULT QUARTZ_CreateFilterMapper2(IUnknown* punkOuter,void** ppobj); HRESULT CFilterMapper2_InitIFilterMapper2( CFilterMapper2* psde ); void CFilterMapper2_UninitIFilterMapper2( CFilterMapper2* psde ); #endif /* WINE_DSHOW_FMAP_H */