Lines Matching refs:share
477 Share* share = it.Next().value; in ~SecurityContext() local
478 share->ReleaseReference(); in ~SecurityContext()
512 Share* share = it.Next().value; in Archive() local
514 error = share->Archive(&shareArchive, deep); in Archive()
778 Share* share = new(std::nothrow) Share; in AddShare() local
779 if (!share) in AddShare()
781 BReference<Share> shareReference(share, true); in AddShare()
782 status_t error = share->Init(name, ref); in AddShare()
787 error = fShares->Put(name, share); in AddShare()
793 *_share = share; in AddShare()
794 share->AcquireReference(); in AddShare()
814 Share* share = new(std::nothrow) Share; in AddShare() local
815 if (!share) in AddShare()
817 BReference<Share> shareReference(share, true); in AddShare()
818 status_t error = share->Init(name, path); in AddShare()
823 error = fShares->Put(name, share); in AddShare()
829 *_share = share; in AddShare()
830 share->AcquireReference(); in AddShare()
847 Share* share = FindShare(name); in RemoveShare() local
848 if (!share) in RemoveShare()
850 BReference<Share> shareReference(share, true); in RemoveShare()
853 status_t error = RemoveShare(share); in RemoveShare()
855 *_share = share; in RemoveShare()
856 share->AcquireReference(); in RemoveShare()
864 SecurityContext::RemoveShare(Share* share) in RemoveShare() argument
866 if (!share) in RemoveShare()
872 if (fShares->Get(share->GetName()) != share) in RemoveShare()
874 fShares->Remove(share->GetName()); in RemoveShare()
877 share->ReleaseReference(); in RemoveShare()
892 Share* share = fShares->Get(name); in FindShare() local
893 if (share) in FindShare()
894 share->AcquireReference(); in FindShare()
895 return share; in FindShare()
917 Share* share = it.Next().value; in GetShares() local
919 status_t error = shares->AddString("shares", share->GetName()); in GetShares()
924 error = shares->AddString("paths", share->GetPath()); in GetShares()