1 #ifndef _H_EVENTLISTENER
2 #define _H_EVENTLISTENER
4 #include <Security/ssclient.h>
11 namespace SecurityServer
{
17 ClientSession mClientSession
;
18 CFMachPortRef mMachPortRef
;
19 CFRunLoopSourceRef mRunLoopSourceRef
;
21 static void Callback (CFMachPortRef port
, void *msg
, CFIndex size
, void *info
);
22 static OSStatus
ProcessMessage (Listener::Domain domain
, Listener::Event event
, const void *data
, size_t dataLength
, void *context
);
23 void HandleCallback (CFMachPortRef port
, void *msg
, CFIndex size
);
24 void HandleMessage ();
28 EventListener (CssmAllocator
&standard
= CssmAllocator::standard(), CssmAllocator
&returning
= CssmAllocator::standard());
29 virtual ~EventListener ();
31 void RequestEvents (Listener::Domain domain
, Listener::EventMask eventMask
);
32 virtual void EventReceived (Listener::Domain domain
, Listener::Event event
, const void* data
, size_t dataLength
);
36 }; // end namespace SecurityServer
37 }; // end namespace Security