]> git.saurik.com Git - apple/security.git/blobdiff - Security/authd/connection.h
Security-57031.1.35.tar.gz
[apple/security.git] / Security / authd / connection.h
diff --git a/Security/authd/connection.h b/Security/authd/connection.h
new file mode 100644 (file)
index 0000000..4cf51d2
--- /dev/null
@@ -0,0 +1,38 @@
+/* Copyright (c) 2012 Apple Inc. All Rights Reserved. */
+
+#ifndef _SECURITY_AUTH_CONNECTION_H_
+#define _SECURITY_AUTH_CONNECTION_H_
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED
+connection_t connection_create(process_t);
+
+AUTH_NONNULL_ALL
+pid_t connection_get_pid(connection_t);
+    
+AUTH_NONNULL_ALL
+process_t connection_get_process(connection_t);
+    
+AUTH_NONNULL_ALL
+dispatch_queue_t connection_get_dispatch_queue(connection_t);
+
+AUTH_NONNULL1
+void connection_set_engine(connection_t, engine_t);
+
+AUTH_NONNULL_ALL
+void connection_destory_agents(connection_t);
+
+AUTH_NONNULL_ALL
+bool connection_get_syslog_warn(connection_t);
+
+AUTH_NONNULL_ALL
+void connection_set_syslog_warn(connection_t);
+    
+#if defined(__cplusplus)
+}
+#endif
+
+#endif /* !_SECURITY_AUTH_CONNECTION_H_ */