]> git.saurik.com Git - apple/security.git/blob - Security/authd/connection.h
Security-57031.1.35.tar.gz
[apple/security.git] / Security / authd / connection.h
1 /* Copyright (c) 2012 Apple Inc. All Rights Reserved. */
2
3 #ifndef _SECURITY_AUTH_CONNECTION_H_
4 #define _SECURITY_AUTH_CONNECTION_H_
5
6 #if defined(__cplusplus)
7 extern "C" {
8 #endif
9
10 AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED
11 connection_t connection_create(process_t);
12
13 AUTH_NONNULL_ALL
14 pid_t connection_get_pid(connection_t);
15
16 AUTH_NONNULL_ALL
17 process_t connection_get_process(connection_t);
18
19 AUTH_NONNULL_ALL
20 dispatch_queue_t connection_get_dispatch_queue(connection_t);
21
22 AUTH_NONNULL1
23 void connection_set_engine(connection_t, engine_t);
24
25 AUTH_NONNULL_ALL
26 void connection_destory_agents(connection_t);
27
28 AUTH_NONNULL_ALL
29 bool connection_get_syslog_warn(connection_t);
30
31 AUTH_NONNULL_ALL
32 void connection_set_syslog_warn(connection_t);
33
34 #if defined(__cplusplus)
35 }
36 #endif
37
38 #endif /* !_SECURITY_AUTH_CONNECTION_H_ */