X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/72a12576750f52947eb043106ba5c12c0d07decf..b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195:/libsecurity_transform/lib/SingleShotSource.h diff --git a/libsecurity_transform/lib/SingleShotSource.h b/libsecurity_transform/lib/SingleShotSource.h new file mode 100644 index 00000000..2681cac4 --- /dev/null +++ b/libsecurity_transform/lib/SingleShotSource.h @@ -0,0 +1,25 @@ +#ifndef __SINGLE_SHOT_SOURCE__ +#define __SINGLE_SHOT_SOURCE__ + +#include "Source.h" + +extern CFStringRef gSingleShotSourceName; + +/* + We need this source because we need to send the data followed by + a null value, so that all input sources have the same behavior. +*/ + +class SingleShotSource : public Source +{ +protected: + SingleShotSource(CFTypeRef value, Transform* t, CFStringRef name); + +public: + void DoActivate(); + Boolean Equal(const CoreFoundationObject* obj); + static CFTypeRef Make(CFTypeRef value, Transform* t, CFStringRef name); + std::string DebugDescription(); +}; + +#endif