objc2_io_bluetooth/generated/objc2/
NSDictionaryOBEXExtensions.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-foundation")]
6use objc2_foundation::*;
7
8use crate::*;
9
10mod private_NSDictionaryOBEXExtensions {
11 pub trait Sealed {}
12}
13
14pub unsafe trait NSDictionaryOBEXExtensions:
16 ClassType + Sized + private_NSDictionaryOBEXExtensions::Sealed
17{
18 extern_methods!(
19 #[unsafe(method(dictionaryWithOBEXHeadersData:headersDataSize:))]
23 #[unsafe(method_family = none)]
24 unsafe fn dictionaryWithOBEXHeadersData_headersDataSize(
25 in_headers_data: *const c_void,
26 in_data_size: usize,
27 ) -> Option<Retained<Self>>;
28
29 #[cfg(feature = "objc2-foundation")]
30 #[unsafe(method(dictionaryWithOBEXHeadersData:))]
34 #[unsafe(method_family = none)]
35 unsafe fn dictionaryWithOBEXHeadersData(
36 in_headers_data: Option<&NSData>,
37 ) -> Option<Retained<Self>>;
38
39 #[cfg(feature = "objc2-foundation")]
40 #[unsafe(method(getHeaderBytes))]
41 #[unsafe(method_family = none)]
42 unsafe fn getHeaderBytes(&self) -> Option<Retained<NSMutableData>>;
43
44 #[cfg(feature = "OBEX")]
45 #[unsafe(method(addTargetHeader:length:))]
49 #[unsafe(method_family = none)]
50 unsafe fn addTargetHeader_length(
51 &self,
52 in_header_data: *const c_void,
53 in_header_data_length: u32,
54 ) -> OBEXError;
55
56 #[cfg(feature = "OBEX")]
57 #[unsafe(method(addHTTPHeader:length:))]
61 #[unsafe(method_family = none)]
62 unsafe fn addHTTPHeader_length(
63 &self,
64 in_header_data: *const c_void,
65 in_header_data_length: u32,
66 ) -> OBEXError;
67
68 #[cfg(feature = "OBEX")]
69 #[unsafe(method(addBodyHeader:length:endOfBody:))]
73 #[unsafe(method_family = none)]
74 unsafe fn addBodyHeader_length_endOfBody(
75 &self,
76 in_header_data: *const c_void,
77 in_header_data_length: u32,
78 is_end_of_body: bool,
79 ) -> OBEXError;
80
81 #[cfg(feature = "OBEX")]
82 #[unsafe(method(addWhoHeader:length:))]
86 #[unsafe(method_family = none)]
87 unsafe fn addWhoHeader_length(
88 &self,
89 in_header_data: *const c_void,
90 in_header_data_length: u32,
91 ) -> OBEXError;
92
93 #[cfg(feature = "OBEX")]
94 #[unsafe(method(addConnectionIDHeader:length:))]
98 #[unsafe(method_family = none)]
99 unsafe fn addConnectionIDHeader_length(
100 &self,
101 in_header_data: *const c_void,
102 in_header_data_length: u32,
103 ) -> OBEXError;
104
105 #[cfg(feature = "OBEX")]
106 #[unsafe(method(addApplicationParameterHeader:length:))]
110 #[unsafe(method_family = none)]
111 unsafe fn addApplicationParameterHeader_length(
112 &self,
113 in_header_data: *const c_void,
114 in_header_data_length: u32,
115 ) -> OBEXError;
116
117 #[cfg(feature = "OBEX")]
118 #[unsafe(method(addByteSequenceHeader:length:))]
122 #[unsafe(method_family = none)]
123 unsafe fn addByteSequenceHeader_length(
124 &self,
125 in_header_data: *const c_void,
126 in_header_data_length: u32,
127 ) -> OBEXError;
128
129 #[cfg(feature = "OBEX")]
130 #[unsafe(method(addObjectClassHeader:length:))]
134 #[unsafe(method_family = none)]
135 unsafe fn addObjectClassHeader_length(
136 &self,
137 in_header_data: *const c_void,
138 in_header_data_length: u32,
139 ) -> OBEXError;
140
141 #[cfg(feature = "OBEX")]
142 #[unsafe(method(addAuthorizationChallengeHeader:length:))]
146 #[unsafe(method_family = none)]
147 unsafe fn addAuthorizationChallengeHeader_length(
148 &self,
149 in_header_data: *const c_void,
150 in_header_data_length: u32,
151 ) -> OBEXError;
152
153 #[cfg(feature = "OBEX")]
154 #[unsafe(method(addAuthorizationResponseHeader:length:))]
158 #[unsafe(method_family = none)]
159 unsafe fn addAuthorizationResponseHeader_length(
160 &self,
161 in_header_data: *const c_void,
162 in_header_data_length: u32,
163 ) -> OBEXError;
164
165 #[cfg(feature = "OBEX")]
166 #[unsafe(method(addTimeISOHeader:length:))]
170 #[unsafe(method_family = none)]
171 unsafe fn addTimeISOHeader_length(
172 &self,
173 in_header_data: *const c_void,
174 in_header_data_length: u32,
175 ) -> OBEXError;
176
177 #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
178 #[unsafe(method(addTypeHeader:))]
182 #[unsafe(method_family = none)]
183 unsafe fn addTypeHeader(&self, r#type: Option<&NSString>) -> OBEXError;
184
185 #[cfg(feature = "OBEX")]
186 #[unsafe(method(addLengthHeader:))]
187 #[unsafe(method_family = none)]
188 unsafe fn addLengthHeader(&self, length: u32) -> OBEXError;
189
190 #[cfg(feature = "OBEX")]
191 #[unsafe(method(addTime4ByteHeader:))]
192 #[unsafe(method_family = none)]
193 unsafe fn addTime4ByteHeader(&self, time4_byte: u32) -> OBEXError;
194
195 #[cfg(feature = "OBEX")]
196 #[unsafe(method(addCountHeader:))]
197 #[unsafe(method_family = none)]
198 unsafe fn addCountHeader(&self, in_count: u32) -> OBEXError;
199
200 #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
201 #[unsafe(method(addDescriptionHeader:))]
205 #[unsafe(method_family = none)]
206 unsafe fn addDescriptionHeader(
207 &self,
208 in_description_string: Option<&NSString>,
209 ) -> OBEXError;
210
211 #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
212 #[unsafe(method(addNameHeader:))]
216 #[unsafe(method_family = none)]
217 unsafe fn addNameHeader(&self, in_name_string: Option<&NSString>) -> OBEXError;
218
219 #[cfg(feature = "OBEX")]
220 #[unsafe(method(addUserDefinedHeader:length:))]
224 #[unsafe(method_family = none)]
225 unsafe fn addUserDefinedHeader_length(
226 &self,
227 in_header_data: *const c_void,
228 in_header_data_length: u32,
229 ) -> OBEXError;
230
231 #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
232 #[unsafe(method(addImageHandleHeader:))]
236 #[unsafe(method_family = none)]
237 unsafe fn addImageHandleHeader(&self, r#type: Option<&NSString>) -> OBEXError;
238
239 #[cfg(feature = "OBEX")]
240 #[unsafe(method(addImageDescriptorHeader:length:))]
244 #[unsafe(method_family = none)]
245 unsafe fn addImageDescriptorHeader_length(
246 &self,
247 in_header_data: *const c_void,
248 in_header_data_length: u32,
249 ) -> OBEXError;
250
251 #[deprecated = "No longer supported"]
255 #[unsafe(method(withOBEXHeadersData:headersDataSize:))]
256 #[unsafe(method_family = none)]
257 unsafe fn withOBEXHeadersData_headersDataSize(
258 in_headers_data: *const c_void,
259 in_data_size: usize,
260 ) -> Option<Retained<Self>>;
261 );
262}
263
264#[cfg(feature = "objc2-foundation")]
265impl private_NSDictionaryOBEXExtensions::Sealed for NSMutableDictionary {}
266#[cfg(feature = "objc2-foundation")]
267unsafe impl NSDictionaryOBEXExtensions for NSMutableDictionary {}