]>
git.saurik.com Git - apple/syslog.git/blob - libsystem_asl.tproj/include/asl_private.h
6007ab0f608c07b5a48194c7fd7d71ea63ea21f5
2 * Copyright (c) 2007-2011 Apple Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 #ifndef __ASL_PRIVATE_H__
25 #define __ASL_PRIVATE_H__
28 #include <sys/socket.h>
30 #include <netinet/in.h>
31 #include <arpa/inet.h>
34 #include <Availability.h>
36 #define ASL_QUERY_OP_NULL 0x00000
38 #define ASLMANAGER_SERVICE_NAME "com.apple.aslmanager"
39 #define NOTIFY_SYSTEM_MASTER "com.apple.system.syslog.master"
40 #define NOTIFY_SYSTEM_ASL_FILTER "com.apple.system.syslog.asl_filter"
41 #define NOTIFY_PREFIX_SYSTEM "com.apple.system.syslog"
42 #define NOTIFY_PREFIX_USER "user.syslog"
43 #define NOTIFY_RC "com.apple.asl.remote"
45 #define ASL_OPT_IGNORE "ignore"
46 #define ASL_OPT_STORE "store"
48 #define ASL_STORE_LOCATION_FILE 0
49 #define ASL_STORE_LOCATION_MEMORY 1
51 #define ASL_OPT_SYSLOG_LEGACY 0x00010000
53 #define ASL_KEY_SENDER_MACH_UUID "Sender_Mach_UUID"
55 /* SPI to enable ASL filter tunneling using asl_set_filter() */
56 #define ASL_FILTER_MASK_TUNNEL 0x100
67 typedef struct __aslclient
70 struct sockaddr_un server
;
79 int notify_master_token
;
81 asl_out_file_t
*out_list
;
91 int asl_add_output(aslclient asl
, int fd
, const char *msg_fmt
, const char *time_fmt
, uint32_t text_encoding
) __OSX_AVAILABLE_STARTING(__MAC_10_5
, __IPHONE_2_0
);
92 int asl_remove_output(aslclient asl
, int fd
) __OSX_AVAILABLE_STARTING(__MAC_10_5
, __IPHONE_2_0
);
93 int asl_store_location() __OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_4_3
);
94 int asl_get_filter(aslclient asl
, int *local
, int *master
, int *remote
, int *active
) __OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_4_3
);
95 char *asl_remote_notify_name() __OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_4_3
);
96 int asl_trigger_aslmanager(void) __OSX_AVAILABLE_STARTING(__MAC_10_9
, __IPHONE_7_0
);
97 aslmsg
_asl_server_control_query(void) __OSX_AVAILABLE_STARTING(__MAC_10_9
, __IPHONE_7_0
);
101 #endif /* __ASL_PRIVATE_H__ */