]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/xpc_services/xpc_client_log_utility.h
mDNSResponder-1310.40.42.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / xpc_services / xpc_client_log_utility.h
1 //
2 // xpc_client_log_utility.h
3 // mDNSResponder
4 //
5 // Copyright (c) 2019 Apple Inc. All rights reserved.
6 //
7
8 #ifndef XPC_CLIENT_LOG_UTILITY_H
9 #define XPC_CLIENT_LOG_UTILITY_H
10
11 #define kDNSLogUtilityService "com.apple.mDNSResponder.log_utility"
12
13 typedef enum
14 {
15 kDNSMsg_NoError = 0,
16 kDNSMsg_Busy,
17 kDNSMsg_UnknownRequest,
18 kDNSMsg_Error
19 } DaemonReplyStatusCodes;
20
21 #define kDNSErrorDescription "ErrorDescription"
22
23 #define kDNSLogLevel "DNSLoggingVerbosity"
24 typedef enum
25 {
26 log_level1 = 1, // logging off
27 log_level2, // logging USR1
28 log_level3, // logging USR2
29 log_level4, // logging USR1/2
30 } DNSLogLevels;
31
32 #define kDNSStateInfo "DNSStateInfoLevels"
33 typedef enum
34 {
35 full_state = 1, // Dump state to a plain text file
36 full_state_with_compression = 2, // Dump state to a compressed file
37 full_state_to_stdout = 3, // Dump state to STDOUT
38 } DNSStateInfo;
39
40 #define kmDNSResponderTests "mDNSResponderTests"
41 typedef enum
42 {
43 test_helper_ipc = 1, // invokes mDNSResponder to send a test msg to mDNSResponderHelper
44 test_mDNS_log, // invokes mDNSResponder to log using different internal macros
45 } mDNSTestModes;
46
47 #define kDNSStateDump "mDNSResponderStateDump"
48 #define kDNSDumpFilePath "mDNSResponderDumpFilePath"
49 #define kDNSStateDumpTimeUsed "mDNSResponderDumpTimeUsed"
50 #define kDNSStateDumpFD "mDNSResponderDumpFD"
51
52 #endif /* XPC_CLIENT_LOG_UTILITY_H */