Ignore:
Timestamp:
Oct 6, 2001, 10:56:18 AM (24 years ago)
Author:
sandervl
Message:

Wine 20011004 resync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/quartz/fgraph.c

    r6710 r6952  
    1010#include "winbase.h"
    1111#include "wingdi.h"
     12#include "winuser.h"
    1213#include "winerror.h"
    1314#include "wine/obj_base.h"
     
    2324#include "fgraph.h"
    2425
     26/***************************************************************************
     27 *
     28 *      new/delete for CFilterGraph
     29 *
     30 */
     31
    2532/* can I use offsetof safely? - FIXME? */
    2633static QUARTZ_IFEntry IFEntries[] =
     
    3239  { &IID_IFilterGraph2, offsetof(CFilterGraph,fgraph)-offsetof(CFilterGraph,unk) },
    3340  { &IID_IGraphVersion, offsetof(CFilterGraph,graphversion)-offsetof(CFilterGraph,unk) },
     41  { &IID_IGraphConfig, offsetof(CFilterGraph,grphconf)-offsetof(CFilterGraph,unk) },
    3442  { &IID_IMediaControl, offsetof(CFilterGraph,mediacontrol)-offsetof(CFilterGraph,unk) },
    3543  { &IID_IMediaFilter, offsetof(CFilterGraph,mediafilter)-offsetof(CFilterGraph,unk) },
     
    6068        FGENT(IFilterGraph2)
    6169        FGENT(IGraphVersion)
     70        FGENT(IGraphConfig)
    6271        FGENT(IMediaControl)
    6372        FGENT(IMediaFilter)
     
    8089        int     i;
    8190
     91        TRACE( "(%p)\n", punk );
     92
    8293        /* At first, call Stop. */
    8394        IMediaControl_Stop( CFilterGraph_IMediaControl(This) );
     
    136147
    137148
     149/***************************************************************************
     150 *
     151 *      CFilterGraph::IPersist
     152 *
     153 */
     154
     155static HRESULT WINAPI
     156IPersist_fnQueryInterface(IPersist* iface,REFIID riid,void** ppobj)
     157{
     158        CFilterGraph_THIS(iface,persist);
     159
     160        TRACE("(%p)->()\n",This);
     161
     162        return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     163}
     164
     165static ULONG WINAPI
     166IPersist_fnAddRef(IPersist* iface)
     167{
     168        CFilterGraph_THIS(iface,persist);
     169
     170        TRACE("(%p)->()\n",This);
     171
     172        return IUnknown_AddRef(This->unk.punkControl);
     173}
     174
     175static ULONG WINAPI
     176IPersist_fnRelease(IPersist* iface)
     177{
     178        CFilterGraph_THIS(iface,persist);
     179
     180        TRACE("(%p)->()\n",This);
     181
     182        return IUnknown_Release(This->unk.punkControl);
     183}
     184
     185
     186static HRESULT WINAPI
     187IPersist_fnGetClassID(IPersist* iface,CLSID* pclsid)
     188{
     189        CFilterGraph_THIS(iface,persist);
     190
     191        TRACE("(%p)->()\n",This);
     192
     193        if ( pclsid == NULL )
     194                return E_POINTER;
     195        memcpy( pclsid, &CLSID_FilterGraph, sizeof(CLSID) );
     196
     197        return E_NOTIMPL;
     198}
     199
     200
     201static ICOM_VTABLE(IPersist) ipersist =
     202{
     203        ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     204        /* IUnknown fields */
     205        IPersist_fnQueryInterface,
     206        IPersist_fnAddRef,
     207        IPersist_fnRelease,
     208        /* IPersist fields */
     209        IPersist_fnGetClassID,
     210};
     211
     212HRESULT CFilterGraph_InitIPersist( CFilterGraph* pfg )
     213{
     214        TRACE("(%p)\n",pfg);
     215        ICOM_VTBL(&pfg->persist) = &ipersist;
     216
     217        return NOERROR;
     218}
     219
     220void CFilterGraph_UninitIPersist( CFilterGraph* pfg )
     221{
     222        TRACE("(%p)\n",pfg);
     223}
Note: See TracChangeset for help on using the changeset viewer.