]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_transform/lib/StreamSource.h
Security-59306.11.20.tar.gz
[apple/security.git] / OSX / libsecurity_transform / lib / StreamSource.h
1 #ifndef __STREAM_SOURCE__
2 #define __STREAM_SOURCE__
3
4
5 #include "Source.h"
6
7
8
9 extern CFStringRef gStreamSourceName;
10
11
12
13 class StreamSource : public Source
14 {
15 protected:
16 StreamSource(CFReadStreamRef input, Transform* transform, CFStringRef name);
17
18 virtual void Finalize();
19 CFReadStreamRef mReadStream;
20 dispatch_group_t mReading;
21
22 void BackgroundActivate();
23
24 public:
25
26 void DoActivate();
27 virtual ~StreamSource();
28
29 static CFTypeRef Make(CFReadStreamRef input, Transform* transform, CFStringRef name);
30 Boolean Equal(const CoreFoundationObject* object);
31 std::string DebugDescription();
32 };
33
34
35
36 #endif