X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/313fa17b58b78d3c26fb986be9e8fce975cec88c..e3d3b979fd185d8303f28a937baa53a187fb8c7d:/libsecurity_cdsa_client/lib/cssmclient.h diff --git a/libsecurity_cdsa_client/lib/cssmclient.h b/libsecurity_cdsa_client/lib/cssmclient.h index 43fb3141..faa2fe8d 100644 --- a/libsecurity_cdsa_client/lib/cssmclient.h +++ b/libsecurity_cdsa_client/lib/cssmclient.h @@ -97,6 +97,7 @@ public: virtual bool operator ==(const ObjectImpl &other) const; static void check(CSSM_RETURN status); + bool isIdle() const { return mChildCount == 0; } protected: bool mActive; // loaded, attached, etc. @@ -108,7 +109,6 @@ protected: void addChild(); void removeChild(); - bool isIdle() const { return mChildCount == 0; } // {de,}activate() assume you have locked *this virtual void activate() = 0; @@ -152,6 +152,8 @@ public: bool operator ==(const Object &other) const { return mImpl && other.mImpl ? *mImpl == *other.mImpl : mImpl == other.mImpl; } + Impl* get() {return mImpl;} + private: RefPointer mImpl; };