]> git.saurik.com Git - apple/security.git/blob - SecurityTests/regressions/test/testeventqueue.h
Security-57740.1.18.tar.gz
[apple/security.git] / SecurityTests / regressions / test / testeventqueue.h
1 #ifndef __TEST_EVENT_QUEUE
2 #define __TEST_EVENT_QUEUE
3
4
5
6 #include <Security/Security.h>
7
8 typedef struct CallbackData
9 {
10 UInt32 version;
11 SecKeychainEvent event;
12 SecKeychainItemRef itemRef;
13 SecKeychainRef keychain;
14 pid_t pid;
15 } CallbackData;
16
17
18
19 void TEQ_Enqueue(CallbackData* cd);
20 bool TEQ_Dequeue(CallbackData* cd);
21 void TEQ_FlushQueue();
22 int TEQ_ItemsInQueue();
23 void TEQ_Release(CallbackData* cd);
24
25 #endif