]>
git.saurik.com Git - apple/configd.git/blob - Plugins/IPMonitor/ip_plugin.h
2 * Copyright (c) 2012, 2013 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@
26 * - header for IPMonitor.bundle
32 #include <SystemConfiguration/SCPrivate.h>
34 #define kIsNULL CFSTR("IsNULL") /* CFBoolean */
36 #if ((__MAC_OS_X_VERSION_MIN_REQUIRED >= 1080) || (__IPHONE_OS_VERSION_MIN_REQUIRED >= 60000))
38 #define my_log(__level, fmt, ...) SCLoggerLog(my_log_get_logger(), __level, CFSTR(fmt), ## __VA_ARGS__)
39 SCLoggerRef
my_log_get_logger();
42 * IPv4 Service Dict keys: IPv4DictRoutes, IPv4DictService
44 * The IPv4 service dictionary contains two sub-dictionaries:
45 * Routes IPv4RouteList
46 * Service dictionary containing kSCEntNetIPv4 keys
48 #define kIPv4DictRoutes CFSTR("Routes")
49 #define kIPv4DictService CFSTR("Service")
52 cfstring_to_ip(CFStringRef str
, struct in_addr
* ip_p
);
55 cfstring_to_ip6(CFStringRef str
, struct in6_addr
* ip6_p
);
57 #else // ((__MAC_OS_X_VERSION_MIN_REQUIRED >= 1080) || (__IPHONE_OS_VERSION_MIN_REQUIRED >= 60000))
59 #define my_log(__level, fmt, ...) SCLog(TRUE, __level, CFSTR(fmt), ## __VA_ARGS__)
61 #endif // ((__MAC_OS_X_VERSION_MIN_REQUIRED >= 1080) || (__IPHONE_OS_VERSION_MIN_REQUIRED >= 60000))
63 #endif // _IP_PLUGIN_H