]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_cdsa_client/lib/cssmclient.h
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_cdsa_client / lib / cssmclient.h
index 43fb3141c717617b82a94d1858ac8a9fa001289b..faa2fe8d893754c223dd5ac747df07c1e2dc0c62 100644 (file)
@@ -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<Impl> mImpl;
 };