]> git.saurik.com Git - apple/configd.git/blobdiff - SystemConfiguration.fproj/SCDynamicStoreCopySpecific.h
configd-1061.40.2.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / SCDynamicStoreCopySpecific.h
index 5b102b00a652ebbd112583c400dd2a26c7c27fd0..886e7315a0f33262329aac04f125ba1e8356c4b1 100644 (file)
@@ -1,15 +1,15 @@
 /*
- * Copyright (c) 2000-2005, 2008 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2005, 2008, 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,
  * 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 _SCDYNAMICSTORECOPYSPECIFIC_H
-#ifdef USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS
-#include <SystemConfiguration/_SCDynamicStoreCopySpecific.h>
-#else  /* USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS */
 #define _SCDYNAMICSTORECOPYSPECIFIC_H
 
-#include <Availability.h>
+#include <os/availability.h>
 #include <sys/cdefs.h>
 #include <sys/types.h>
 #include <CoreFoundation/CoreFoundation.h>
 #include <SystemConfiguration/SCDynamicStore.h>
 
+CF_IMPLICIT_BRIDGING_ENABLED
+CF_ASSUME_NONNULL_BEGIN
 
 /*!
        @header SCDynamicStoreCopySpecific
@@ -58,11 +57,11 @@ __BEGIN_DECLS
                NULL if the name has not been set or if an error was encountered.
                You must release the returned value.
  */
-CFStringRef
+CFStringRef __nullable
 SCDynamicStoreCopyComputerName         (
-                                       SCDynamicStoreRef       store,
-                                       CFStringEncoding        *nameEncoding
-                                       )                       __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_2_0/*SPI*/);
+                                       SCDynamicStoreRef       __nullable      store,
+                                       CFStringEncoding        * __nullable    nameEncoding
+                                       )                       API_AVAILABLE(macos(10.1)) SPI_AVAILABLE(ios(2.0), tvos(9.0), watchos(1.0), bridgeos(1.0));
 
 /*!
        @function SCDynamicStoreCopyConsoleUser
@@ -86,12 +85,12 @@ SCDynamicStoreCopyComputerName              (
                NULL if no user is logged in or if an error was encountered.
                You must release the returned value.
  */
-CFStringRef
+CFStringRef __nullable
 SCDynamicStoreCopyConsoleUser          (
-                                       SCDynamicStoreRef       store,
-                                       uid_t                   *uid,
-                                       gid_t                   *gid
-                                       )                       __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_NA);
+                                       SCDynamicStoreRef       __nullable      store,
+                                       uid_t                   * __nullable    uid,
+                                       gid_t                   * __nullable    gid
+                                       )                       API_AVAILABLE(macos(10.1)) API_UNAVAILABLE(ios, tvos, watchos, bridgeos);
 
 /*!
        @function SCDynamicStoreCopyLocalHostName
@@ -103,10 +102,10 @@ SCDynamicStoreCopyConsoleUser             (
                NULL if the name has not been set or if an error was encountered.
                You must release the returned value.
  */
-CFStringRef
+CFStringRef __nullable
 SCDynamicStoreCopyLocalHostName                (
-                                       SCDynamicStoreRef       store
-                                       )                       __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_2_0/*SPI*/);
+                                       SCDynamicStoreRef       __nullable      store
+                                       )                       API_AVAILABLE(macos(10.1)) SPI_AVAILABLE(ios(2.0), tvos(9.0), watchos(1.0), bridgeos(1.0));
 
 /*!
        @function SCDynamicStoreCopyLocation
@@ -119,10 +118,10 @@ SCDynamicStoreCopyLocalHostName           (
                was encountered.
                You must release the returned value.
  */
-CFStringRef
+CFStringRef __nullable
 SCDynamicStoreCopyLocation             (
-                                       SCDynamicStoreRef       store
-                                       )                       __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_NA);
+                                       SCDynamicStoreRef       __nullable      store
+                                       )                       API_AVAILABLE(macos(10.1)) API_UNAVAILABLE(ios, tvos, watchos, bridgeos);
 
 /*!
        @function SCDynamicStoreCopyProxies
@@ -204,12 +203,14 @@ SCDynamicStoreCopyLocation                (
                was encountered.
                You must release the returned value.
  */
-CFDictionaryRef
+CFDictionaryRef __nullable
 SCDynamicStoreCopyProxies              (
-                                       SCDynamicStoreRef       store
-                                       )                       __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_2_0/*SPI*/);
+                                       SCDynamicStoreRef       __nullable      store
+                                       )                       API_AVAILABLE(macos(10.1)) SPI_AVAILABLE(ios(2.0), tvos(9.0), watchos(1.0), bridgeos(1.0));
 
 __END_DECLS
 
-#endif /* USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS */
+CF_ASSUME_NONNULL_END
+CF_IMPLICIT_BRIDGING_DISABLED
+
 #endif /* _SCDYNAMICSTORECOPYSPECIFIC_H */