]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/SNHelperPrivate.h
configd-596.15.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / SNHelperPrivate.h
1 /*
2 * Copyright (c) 2013 Apple Inc.
3 * All rights reserved.
4 */
5
6 #ifndef __SYSTEMCONFIGURATION_SNHELPER_PRIVATE_H__
7 #define __SYSTEMCONFIGURATION_SNHELPER_PRIVATE_H__
8
9 #include <xpc/xpc.h>
10
11 #define kSNHelperService "com.apple.snhelper"
12
13 #define kSNHelperMessageType "message-type"
14 #define kSNHelperMessageUUID "uuid"
15 #define kSNHelperMessageResult "result-code"
16
17 enum {
18 kSNHelperMessageTypeFlowDivertUUIDAdd,
19 kSNHelperMessageTypeFlowDivertUUIDRemove,
20 kSNHelperMessageTypeFlowDivertUUIDClear,
21 };
22
23 int snhelper_flow_divert_uuid_policy_add(const uuid_t uuid);
24 int snhelper_flow_divert_uuid_policy_remove(const uuid_t uuid);
25 int snhelper_flow_divert_uuid_policy_clear(void);
26
27 bool isa_xpc_connection(xpc_object_t obj);
28 bool isa_xpc_bool(xpc_object_t obj);
29 bool isa_xpc_dictionary(xpc_object_t obj);
30 bool isa_xpc_error(xpc_object_t obj);
31
32 #endif /* __SYSTEMCONFIGURATION_SNHELPER_PRIVATE_H__ */