// 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(); }
// 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(); }