X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/Security/libsecurity_transform/lib/SingleShotSource.h diff --git a/Security/libsecurity_transform/lib/SingleShotSource.h b/Security/libsecurity_transform/lib/SingleShotSource.h new file mode 100644 index 00000000..2681cac4 --- /dev/null +++ b/Security/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