Skip to content

Network tvOS xcode13.3 beta1

Alex Soto edited this page Jan 27, 2022 · 1 revision

#Network.framework

diff -ruN /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Network.framework/Headers/framer_options.h /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Network.framework/Headers/framer_options.h
--- /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Network.framework/Headers/framer_options.h	2021-11-19 10:23:06.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Network.framework/Headers/framer_options.h	2022-01-25 13:16:30.000000000 -0500
@@ -314,6 +314,53 @@
 NW_RETURNS_RETAINED nw_protocol_options_t
 nw_framer_create_options(nw_protocol_definition_t framer_definition);
 
+#ifdef __OBJC__
+
+/*!
+ * @function nw_framer_options_set_object_value
+ *
+ * @abstract
+ *		Set a key-value pair on framer options, where the
+ *		value is a reference-counted object.
+ *
+ * @param options
+ *		The framer options object.
+ *
+ * @param key
+ *		The string key to identify the value.
+ *
+ * @param value
+ *		A reference counted object to store.
+ */
+API_AVAILABLE(macos(12.3), ios(15.4), watchos(8.4), tvos(15.4))
+void
+nw_framer_options_set_object_value(nw_protocol_options_t options,
+								   const char *key,
+								   _Nullable id value);
+
+/*!
+ * @function nw_framer_options_copy_object_value
+ *
+ * @abstract
+ *		Copy the stored object value using a key on framer options.
+ *
+ * @param options
+ *		The framer options object.
+ *
+ * @param key
+ *		The string key to identify the value.
+ *
+ * @return
+ *		Returns a reference counted object with a +1 reference count,
+ *		or NULL if no value was found for the specified key.
+ */
+API_AVAILABLE(macos(12.3), ios(15.4), watchos(8.4), tvos(15.4))
+NW_RETURNS_RETAINED _Nullable id
+nw_framer_options_copy_object_value(nw_protocol_options_t options,
+									const char *key);
+
+#endif // __OBJC__
+
 #pragma mark - Framer Implementation Callbacks
 
 /*!
@@ -1115,6 +1162,24 @@
 NW_RETURNS_RETAINED nw_parameters_t
 nw_framer_copy_parameters(nw_framer_t framer);
 
+
+/*!
+ * @function nw_framer_copy_options
+ *
+ * @abstract
+ *		Access the protocol options being used for a given
+ *		instance of a framer.
+ *
+ * @param framer
+ *		The framer instance.
+ *
+ * @return
+ *		Returns a retained protocol options object.
+ */
+API_AVAILABLE(macos(12.3), ios(15.4), watchos(8.4), tvos(15.4))
+NW_RETURNS_RETAINED nw_protocol_options_t
+nw_framer_copy_options(nw_framer_t framer);
+
 NW_ASSUME_NONNULL_END
 
 __END_DECLS
Clone this wiki locally