X-Git-Url: https://git.saurik.com/apple/configd.git/blobdiff_plain/5e9ce69ef59d7d98ff13748ce18266968031faaf..refs/heads/master:/libSystemConfiguration/libSystemConfiguration_client.h?ds=inline diff --git a/libSystemConfiguration/libSystemConfiguration_client.h b/libSystemConfiguration/libSystemConfiguration_client.h index c93d477..63d46cb 100644 --- a/libSystemConfiguration/libSystemConfiguration_client.h +++ b/libSystemConfiguration/libSystemConfiguration_client.h @@ -1,15 +1,15 @@ /* - * Copyright (c) 2012, 2013 Apple Inc. All rights reserved. + * Copyright (c) 2012, 2013, 2015-2019 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ - * + * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this * file. - * + * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, @@ -17,14 +17,14 @@ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. - * + * * @APPLE_LICENSE_HEADER_END@ */ #ifndef _LIBSYSTEMCONFIGURATION_CLIENT_H #define _LIBSYSTEMCONFIGURATION_CLIENT_H -#include +#include #include #include #include @@ -37,11 +37,11 @@ #define DNSINFO_SERVER_VERSION 20130408 -#if !TARGET_IPHONE_SIMULATOR +#if !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST #define DNSINFO_SERVICE_NAME "com.apple.SystemConfiguration.DNSConfiguration" -#else // !TARGET_IPHONE_SIMULATOR +#else // !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST #define DNSINFO_SERVICE_NAME "com.apple.SystemConfiguration.DNSConfiguration_sim" -#endif // !TARGET_IPHONE_SIMULATOR +#endif // !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST #define DNSINFO_PROC_NAME "proc_name" // string @@ -62,19 +62,25 @@ enum { #define NWI_SERVER_VERSION 20130408 -#if !TARGET_IPHONE_SIMULATOR +#if !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST #define NWI_SERVICE_NAME "com.apple.SystemConfiguration.NetworkInformation" -#else // !TARGET_IPHONE_SIMULATOR +#else // !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST #define NWI_SERVICE_NAME "com.apple.SystemConfiguration.NetworkInformation_sim" -#endif // !TARGET_IPHONE_SIMULATOR +#endif // !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST #define NWI_PROC_NAME "proc_name" // string #define NWI_REQUEST "request_op" // int64 enum { - NWI_REQUEST_COPY = 0x20001, - NWI_REQUEST_ACKNOWLEDGE, + /* NWI state requests */ + NWI_STATE_REQUEST_COPY = 0x20001, + NWI_STATE_REQUEST_ACKNOWLEDGE, + +#if !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST + /* NWI config agent requests */ + NWI_CONFIG_AGENT_REQUEST_COPY +#endif // !TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST }; #define NWI_CONFIGURATION "configuration" // data @@ -93,6 +99,9 @@ typedef struct { __BEGIN_DECLS +_Bool +libSC_info_available (void); + libSC_info_client_t * libSC_info_client_create ( dispatch_queue_t q, @@ -113,4 +122,4 @@ libSC_send_message_with_reply_sync ( __END_DECLS -#endif // _LIBSYSTEMCONFIGURATION_CLIENT_H +#endif // _LIBSYSTEMCONFIGURATION_CLIENT_H