source: trunk/src/quartz/fgraph.c@ 6563

Last change on this file since 6563 was 6563, checked in by sandervl, 24 years ago

created

File size: 1.1 KB
Line 
1/*
2 * Implementation of CLSID_FilterGraph.
3 *
4 * FIXME - stub.
5 *
6 * hidenori@a2.ctktv.ne.jp
7 */
8
9#include "config.h"
10
11#include "windef.h"
12#include "winbase.h"
13#include "wingdi.h"
14#include "winerror.h"
15#include "wine/obj_base.h"
16#include "strmif.h"
17#include "uuids.h"
18
19#include "debugtools.h"
20DEFAULT_DEBUG_CHANNEL(quartz);
21
22#include "quartz_private.h"
23#include "fgraph.h"
24
25/* can I use offsetof safely? - FIXME? */
26static QUARTZ_IFEntry IFEntries[] =
27{
28 { &IID_IFilterGraph, offsetof(CFilterGraph,fgraph)-offsetof(CFilterGraph,unk) },
29 { &IID_IGraphBuilder, offsetof(CFilterGraph,fgraph)-offsetof(CFilterGraph,unk) },
30 { &IID_IFilterGraph2, offsetof(CFilterGraph,fgraph)-offsetof(CFilterGraph,unk) },
31};
32
33HRESULT QUARTZ_CreateFilterGraph(IUnknown* punkOuter,void** ppobj)
34{
35 CFilterGraph* pfg;
36
37 TRACE("(%p,%p)\n",punkOuter,ppobj);
38
39 pfg = (CFilterGraph*)QUARTZ_AllocObj( sizeof(CFilterGraph) );
40 if ( pfg == NULL )
41 return E_OUTOFMEMORY;
42
43 QUARTZ_IUnkInit( &pfg->unk );
44 CFilterGraph_InitIFilterGraph2( pfg );
45
46 pfg->unk.pEntries = IFEntries;
47 pfg->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);
48
49 *ppobj = (void*)pfg;
50
51 return S_OK;
52}
Note: See TracBrowser for help on using the repository browser.