Changeset 6952 for trunk/src/quartz/fgraph.c
- Timestamp:
- Oct 6, 2001, 10:56:18 AM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/quartz/fgraph.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/quartz/fgraph.c
r6710 r6952 10 10 #include "winbase.h" 11 11 #include "wingdi.h" 12 #include "winuser.h" 12 13 #include "winerror.h" 13 14 #include "wine/obj_base.h" … … 23 24 #include "fgraph.h" 24 25 26 /*************************************************************************** 27 * 28 * new/delete for CFilterGraph 29 * 30 */ 31 25 32 /* can I use offsetof safely? - FIXME? */ 26 33 static QUARTZ_IFEntry IFEntries[] = … … 32 39 { &IID_IFilterGraph2, offsetof(CFilterGraph,fgraph)-offsetof(CFilterGraph,unk) }, 33 40 { &IID_IGraphVersion, offsetof(CFilterGraph,graphversion)-offsetof(CFilterGraph,unk) }, 41 { &IID_IGraphConfig, offsetof(CFilterGraph,grphconf)-offsetof(CFilterGraph,unk) }, 34 42 { &IID_IMediaControl, offsetof(CFilterGraph,mediacontrol)-offsetof(CFilterGraph,unk) }, 35 43 { &IID_IMediaFilter, offsetof(CFilterGraph,mediafilter)-offsetof(CFilterGraph,unk) }, … … 60 68 FGENT(IFilterGraph2) 61 69 FGENT(IGraphVersion) 70 FGENT(IGraphConfig) 62 71 FGENT(IMediaControl) 63 72 FGENT(IMediaFilter) … … 80 89 int i; 81 90 91 TRACE( "(%p)\n", punk ); 92 82 93 /* At first, call Stop. */ 83 94 IMediaControl_Stop( CFilterGraph_IMediaControl(This) ); … … 136 147 137 148 149 /*************************************************************************** 150 * 151 * CFilterGraph::IPersist 152 * 153 */ 154 155 static HRESULT WINAPI 156 IPersist_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 165 static ULONG WINAPI 166 IPersist_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 175 static ULONG WINAPI 176 IPersist_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 186 static HRESULT WINAPI 187 IPersist_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 201 static 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 212 HRESULT CFilterGraph_InitIPersist( CFilterGraph* pfg ) 213 { 214 TRACE("(%p)\n",pfg); 215 ICOM_VTBL(&pfg->persist) = &ipersist; 216 217 return NOERROR; 218 } 219 220 void CFilterGraph_UninitIPersist( CFilterGraph* pfg ) 221 { 222 TRACE("(%p)\n",pfg); 223 }
Note:
See TracChangeset
for help on using the changeset viewer.
