]> git.saurik.com Git - apple/configd.git/blob - logging/liblog_SystemConfiguration_internal.h
configd-1061.120.2.tar.gz
[apple/configd.git] / logging / liblog_SystemConfiguration_internal.h
1 /*
2 * Copyright (c) 2018 Apple Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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
11 * file.
12 *
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.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 #ifndef _LIBLOG_SYSTEMCONFIGURATION_INTERNAL_H
25 #define _LIBLOG_SYSTEMCONFIGURATION_INTERNAL_H
26
27 #include <os/availability.h>
28 #include <TargetConditionals.h>
29 #include <sys/cdefs.h>
30 #include <os/log_private.h>
31 #include <os/state_private.h>
32
33 // <os/log_private.h>
34 #ifdef __OBJC__
35 #import <Foundation/NSObjCRuntime.h>
36 #import <Foundation/NSAttributedString.h>
37 typedef NSAttributedString *(*os_log_copy_formatted_fn_t)(const char *type,
38 id value, os_log_type_info_t info);
39 OS_EXPORT NS_RETURNS_RETAINED
40 NSAttributedString *
41 OSLogCopyFormattedString(const char *type, id value, os_log_type_info_t info);
42 #endif
43
44 // <os/state_private.h>
45 #ifdef __OBJC__
46 #import <Foundation/NSString.h>
47 typedef NSString *
48 (*os_state_create_string_fn_t)(const char *data_type,
49 uint32_t data_size, void *data);
50 OS_EXPORT NS_RETURNS_RETAINED
51 NSString *
52 OSStateCreateStringWithData(const char *data_type, uint32_t data_size, void *data);
53 #endif
54
55 __BEGIN_DECLS
56
57 __END_DECLS
58
59 #endif // _LIBLOG_SYSTEMCONFIGURATION_INTERNAL_H