]> git.saurik.com Git - apple/security.git/blame - authd/connection.h
Security-55471.14.18.tar.gz
[apple/security.git] / authd / connection.h
CommitLineData
427c49bc
A
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)
7extern "C" {
8#endif
9
10AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED
11connection_t connection_create(process_t);
12
13AUTH_NONNULL_ALL
14pid_t connection_get_pid(connection_t);
15
16AUTH_NONNULL_ALL
17process_t connection_get_process(connection_t);
18
19AUTH_NONNULL_ALL
20dispatch_queue_t connection_get_dispatch_queue(connection_t);
21
22AUTH_NONNULL1
23void connection_set_engine(connection_t, engine_t);
24
25AUTH_NONNULL_ALL
26void connection_destory_agents(connection_t);
27
28AUTH_NONNULL_ALL
29bool connection_get_syslog_warn(connection_t);
30
31AUTH_NONNULL_ALL
32void connection_set_syslog_warn(connection_t);
33
34#if defined(__cplusplus)
35}
36#endif
37
38#endif /* !_SECURITY_AUTH_CONNECTION_H_ */