Beispiel #1
0
// Return the reference count of the given implementation object
// container's reference count.
aafUInt32 ReferenceImplCount(ImplAAFRoot *pObj)
{
    IAAFRoot * pRoot = static_cast<IAAFRoot *>(pObj->GetContainer());
    assert(pRoot);
    pRoot->AddRef();
    return pRoot->Release();
}
Beispiel #2
0
// Increases the reference count of the API container object.
aafUInt32 AcquireImplReference(ImplAAFRoot *pObj)
{
    IAAFRoot * pRoot = static_cast<IAAFRoot *>(pObj->GetContainer());
    assert(pRoot);
    return pRoot->AddRef();
}