Ignore:
Timestamp:
Sep 5, 2001, 3:39:12 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

File:
1 edited

Legend:

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

    r6578 r6649  
     1/* $Id: imem.c,v 1.3 2001-09-05 13:36:35 bird Exp $ */
    12/*
    23 * Implementation of CLSID_MemoryAllocator.
     
    2728IMemAllocator_fnQueryInterface(IMemAllocator* iface,REFIID riid,void** ppobj)
    2829{
    29         CMemoryAllocator_THIS(iface,memalloc);
     30    CMemoryAllocator_THIS(iface,memalloc);
    3031
    31         TRACE("(%p)->()\n",This);
     32    TRACE("(%p)->()\n",This);
    3233
    33         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     34    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3435}
    3536
     
    3738IMemAllocator_fnAddRef(IMemAllocator* iface)
    3839{
    39         CMemoryAllocator_THIS(iface,memalloc);
     40    CMemoryAllocator_THIS(iface,memalloc);
    4041
    41         TRACE("(%p)->()\n",This);
     42    TRACE("(%p)->()\n",This);
    4243
    43         return IUnknown_AddRef(This->unk.punkControl);
     44    return IUnknown_AddRef(This->unk.punkControl);
    4445}
    4546
     
    4748IMemAllocator_fnRelease(IMemAllocator* iface)
    4849{
    49         CMemoryAllocator_THIS(iface,memalloc);
     50    CMemoryAllocator_THIS(iface,memalloc);
    5051
    51         TRACE("(%p)->()\n",This);
     52    TRACE("(%p)->()\n",This);
    5253
    53         return IUnknown_Release(This->unk.punkControl);
     54    return IUnknown_Release(This->unk.punkControl);
    5455}
    5556
     
    5758IMemAllocator_fnSetProperties(IMemAllocator* iface,ALLOCATOR_PROPERTIES* pPropReq,ALLOCATOR_PROPERTIES* pPropActual)
    5859{
    59         CMemoryAllocator_THIS(iface,memalloc);
     60    CMemoryAllocator_THIS(iface,memalloc);
    6061
    61         FIXME( "(%p)->() stub!\n", This );
    62         return E_NOTIMPL;
     62    FIXME( "(%p)->() stub!\n", This );
     63    return E_NOTIMPL;
    6364}
    6465
     
    6667IMemAllocator_fnGetProperties(IMemAllocator* iface,ALLOCATOR_PROPERTIES* pProp)
    6768{
    68         CMemoryAllocator_THIS(iface,memalloc);
     69    CMemoryAllocator_THIS(iface,memalloc);
    6970
    70         FIXME( "(%p)->() stub!\n", This );
    71         return E_NOTIMPL;
     71    FIXME( "(%p)->() stub!\n", This );
     72    return E_NOTIMPL;
    7273}
    7374
     
    7576IMemAllocator_fnCommit(IMemAllocator* iface)
    7677{
    77         CMemoryAllocator_THIS(iface,memalloc);
     78    CMemoryAllocator_THIS(iface,memalloc);
    7879
    79         FIXME( "(%p)->() stub!\n", This );
    80         return E_NOTIMPL;
     80    FIXME( "(%p)->() stub!\n", This );
     81    return E_NOTIMPL;
    8182}
    8283
     
    8485IMemAllocator_fnDecommit(IMemAllocator* iface)
    8586{
    86         CMemoryAllocator_THIS(iface,memalloc);
     87    CMemoryAllocator_THIS(iface,memalloc);
    8788
    88         FIXME( "(%p)->() stub!\n", This );
    89         return E_NOTIMPL;
     89    FIXME( "(%p)->() stub!\n", This );
     90    return E_NOTIMPL;
    9091}
    9192
     
    9394IMemAllocator_fnGetBuffer(IMemAllocator* iface,IMediaSample** ppSample,REFERENCE_TIME* prtStart,REFERENCE_TIME* prtEnd,DWORD dwFlags)
    9495{
    95         CMemoryAllocator_THIS(iface,memalloc);
     96    CMemoryAllocator_THIS(iface,memalloc);
    9697
    97         FIXME( "(%p)->() stub!\n", This );
    98         return E_NOTIMPL;
     98    FIXME( "(%p)->() stub!\n", This );
     99    return E_NOTIMPL;
    99100}
    100101
     
    102103IMemAllocator_fnReleaseBuffer(IMemAllocator* iface,IMediaSample* pSample)
    103104{
    104         CMemoryAllocator_THIS(iface,memalloc);
     105    CMemoryAllocator_THIS(iface,memalloc);
    105106
    106         FIXME( "(%p)->() stub!\n", This );
    107         return E_NOTIMPL;
     107    FIXME( "(%p)->() stub!\n", This );
     108    return E_NOTIMPL;
    108109}
    109110
     
    112113static ICOM_VTABLE(IMemAllocator) imemalloc =
    113114{
    114         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    115         /* IUnknown fields */
    116         IMemAllocator_fnQueryInterface,
    117         IMemAllocator_fnAddRef,
    118         IMemAllocator_fnRelease,
    119         /* IMemAllocator fields */
    120         IMemAllocator_fnSetProperties,
    121         IMemAllocator_fnGetProperties,
    122         IMemAllocator_fnCommit,
    123         IMemAllocator_fnDecommit,
    124         IMemAllocator_fnGetBuffer,
    125         IMemAllocator_fnReleaseBuffer,
     115    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     116    /* IUnknown fields */
     117    IMemAllocator_fnQueryInterface,
     118    IMemAllocator_fnAddRef,
     119    IMemAllocator_fnRelease,
     120    /* IMemAllocator fields */
     121    IMemAllocator_fnSetProperties,
     122    IMemAllocator_fnGetProperties,
     123    IMemAllocator_fnCommit,
     124    IMemAllocator_fnDecommit,
     125    IMemAllocator_fnGetBuffer,
     126    IMemAllocator_fnReleaseBuffer,
    126127};
    127128
     
    129130void CMemoryAllocator_InitIMemAllocator( CMemoryAllocator* pma )
    130131{
    131         TRACE("(%p)\n",pma);
    132         ICOM_VTBL(&pma->memalloc) = &imemalloc;
     132    TRACE("(%p)\n",pma);
     133    ICOM_VTBL(&pma->memalloc) = &imemalloc;
    133134}
Note: See TracChangeset for help on using the changeset viewer.