]> git.saurik.com Git - apple/configd.git/blob - logging/liblog_SystemConfiguration_internal.h
configd-963.260.1.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 extern const unsigned char * liblog_SystemConfigurationVersionString;
34 extern const double liblog_SystemConfigurationVersionNumber;
35
36 // <os/log_private.h>
37 #ifdef __OBJC__
38 #import <Foundation/NSObjCRuntime.h>
39 #import <Foundation/NSAttributedString.h>
40 typedef NSAttributedString *(*os_log_copy_formatted_fn_t)(const char *type,
41 id value, os_log_type_info_t info);
42 OS_EXPORT NS_RETURNS_RETAINED
43 NSAttributedString *
44 OSLogCopyFormattedString(const char *type, id value, os_log_type_info_t info);
45 #endif
46
47 // <os/state_private.h>
48 #ifdef __OBJC__
49 #import <Foundation/NSString.h>
50 typedef NSString *
51 (*os_state_create_string_fn_t)(const char *data_type,
52 uint32_t data_size, void *data);
53 OS_EXPORT NS_RETURNS_RETAINED
54 NSString *
55 OSStateCreateStringWithData(const char *data_type, uint32_t data_size, void *data);
56 #endif
57
58 __BEGIN_DECLS
59
60 __END_DECLS
61
62 #endif // _LIBLOG_SYSTEMCONFIGURATION_INTERNAL_H