Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
3.6 kB · 125 lines
C
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126/* * Copyright (c) 2012, 2013, 2015-2018 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, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * 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 <os/availability.h>#include <TargetConditionals.h>#include <sys/cdefs.h>#include <dispatch/dispatch.h>#include <xpc/xpc.h>
// ------------------------------------------------------------
#pragma mark -#pragma mark [XPC] DNS configuration server
#define DNSINFO_SERVER_VERSION 20130408
#if !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC#define DNSINFO_SERVICE_NAME "com.apple.SystemConfiguration.DNSConfiguration"#else // !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC#define DNSINFO_SERVICE_NAME "com.apple.SystemConfiguration.DNSConfiguration_sim"#endif // !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC
#define DNSINFO_PROC_NAME "proc_name" // string
#define DNSINFO_REQUEST "request_op" // int64
enum { DNSINFO_REQUEST_COPY = 0x10001, DNSINFO_REQUEST_ACKNOWLEDGE,};
#define DNSINFO_CONFIGURATION "configuration" // data#define DNSINFO_GENERATION "generation" // uint64
// ------------------------------------------------------------
#pragma mark -#pragma mark [XPC] Network information (nwi) server
#define NWI_SERVER_VERSION 20130408
#if !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC#define NWI_SERVICE_NAME "com.apple.SystemConfiguration.NetworkInformation"#else // !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC#define NWI_SERVICE_NAME "com.apple.SystemConfiguration.NetworkInformation_sim"#endif // !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC
#define NWI_PROC_NAME "proc_name" // string
#define NWI_REQUEST "request_op" // int64
enum { /* NWI state requests */ NWI_STATE_REQUEST_COPY = 0x20001, NWI_STATE_REQUEST_ACKNOWLEDGE,
#if !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC /* NWI config agent requests */ NWI_CONFIG_AGENT_REQUEST_COPY#endif // !TARGET_OS_SIMULATOR || TARGET_OS_IOSMAC};
#define NWI_CONFIGURATION "configuration" // data#define NWI_GENERATION "generation" // uint64
// ------------------------------------------------------------
typedef struct { _Bool active; xpc_connection_t connection; char *service_description; char *service_name;} libSC_info_client_t;
// ------------------------------------------------------------
__BEGIN_DECLS
_BoollibSC_info_available (void);
libSC_info_client_t *libSC_info_client_create ( dispatch_queue_t q, const char *service_name, const char *service_description );
voidlibSC_info_client_release ( libSC_info_client_t *client );
xpc_object_tlibSC_send_message_with_reply_sync ( libSC_info_client_t *client, xpc_object_t message );
__END_DECLS
#endif // _LIBSYSTEMCONFIGURATION_CLIENT_H