]> git.saurik.com Git - apple/libdispatch.git/blob - src/swift/Private.swift
libdispatch-703.1.4.tar.gz
[apple/libdispatch.git] / src / swift / Private.swift
1 //===----------------------------------------------------------------------===//
2 //
3 // This source file is part of the Swift.org open source project
4 //
5 // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
6 // Licensed under Apache License v2.0 with Runtime Library Exception
7 //
8 // See http://swift.org/LICENSE.txt for license information
9 // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10 //
11 //===----------------------------------------------------------------------===//
12
13 // Redeclarations of all SwiftPrivate functions with appropriate markup.
14
15 import CDispatch
16
17 @available(*, unavailable, renamed:"DispatchQueue.init(label:attributes:target:)")
18 public func dispatch_queue_create(_ label: UnsafePointer<Int8>?, _ attr: dispatch_queue_attr_t?) -> DispatchQueue
19 {
20 fatalError()
21 }
22
23 @available(*, unavailable, renamed:"DispatchQueue.init(label:attributes:target:)")
24 public func dispatch_queue_create_with_target(_ label: UnsafePointer<Int8>?, _ attr: dispatch_queue_attr_t?, _ queue: DispatchQueue?) -> DispatchQueue
25 {
26 fatalError()
27 }
28
29 @available(*, unavailable, renamed:"DispatchIO.init(type:fileDescriptor:queue:cleanupHandler:)")
30 public func dispatch_io_create(_ type: UInt, _ fd: Int32, _ queue: DispatchQueue, _ cleanup_handler: (Int32) -> Void) -> DispatchIO
31 {
32 fatalError()
33 }
34
35 @available(*, unavailable, renamed:"DispatchIO.init(type:path:oflag:mode:queue:cleanupHandler:)")
36 public func dispatch_io_create_with_path(_ type: UInt, _ path: UnsafePointer<Int8>, _ oflag: Int32, _ mode: mode_t, _ queue: DispatchQueue, _ cleanup_handler: (Int32) -> Void) -> DispatchIO
37 {
38 fatalError()
39 }
40
41 @available(*, unavailable, renamed:"DispatchIO.init(type:io:queue:cleanupHandler:)")
42 public func dispatch_io_create_with_io(_ type: UInt, _ io: DispatchIO, _ queue: DispatchQueue, _ cleanup_handler: (Int32) -> Void) -> DispatchIO
43 {
44 fatalError()
45 }
46
47 @available(*, unavailable, renamed:"DispatchIO.read(fileDescriptor:length:queue:handler:)")
48 public func dispatch_read(_ fd: Int32, _ length: Int, _ queue: DispatchQueue, _ handler: (dispatch_data_t, Int32) -> Void)
49 {
50 fatalError()
51 }
52
53 @available(*, unavailable, renamed:"DispatchIO.read(self:offset:length:queue:ioHandler:)")
54 func dispatch_io_read(_ channel: DispatchIO, _ offset: off_t, _ length: Int, _ queue: DispatchQueue, _ io_handler: (Bool, dispatch_data_t?, Int32) -> Void)
55 {
56 fatalError()
57 }
58
59 @available(*, unavailable, renamed:"DispatchIO.write(self:offset:data:queue:ioHandler:)")
60 func dispatch_io_write(_ channel: DispatchIO, _ offset: off_t, _ data: dispatch_data_t, _ queue: DispatchQueue, _ io_handler: (Bool, dispatch_data_t?, Int32) -> Void)
61 {
62 fatalError()
63 }
64
65 @available(*, unavailable, renamed:"DispatchIO.write(fileDescriptor:data:queue:handler:)")
66 func dispatch_write(_ fd: Int32, _ data: dispatch_data_t, _ queue: DispatchQueue, _ handler: (dispatch_data_t?, Int32) -> Void)
67 {
68 fatalError()
69 }
70
71 @available(*, unavailable, renamed:"DispatchData.init(bytes:)")
72 public func dispatch_data_create(_ buffer: UnsafePointer<Void>, _ size: Int, _ queue: DispatchQueue?, _ destructor: (() -> Void)?) -> dispatch_data_t
73 {
74 fatalError()
75 }
76
77 @available(*, unavailable, renamed:"getter:DispatchData.count(self:)")
78 public func dispatch_data_get_size(_ data: dispatch_data_t) -> Int
79 {
80 fatalError()
81 }
82
83 @available(*, unavailable, renamed:"DispatchData.withUnsafeBytes(self:body:)")
84 public func dispatch_data_create_map(_ data: dispatch_data_t, _ buffer_ptr: UnsafeMutablePointer<UnsafePointer<Void>?>?, _ size_ptr: UnsafeMutablePointer<Int>?) -> dispatch_data_t
85 {
86 fatalError()
87 }
88
89 @available(*, unavailable, renamed:"DispatchData.append(self:_:)")
90 public func dispatch_data_create_concat(_ data1: dispatch_data_t, _ data2: dispatch_data_t) -> dispatch_data_t
91 {
92 fatalError()
93 }
94
95 @available(*, unavailable, renamed:"DispatchData.subdata(self:in:)")
96 public func dispatch_data_create_subrange(_ data: dispatch_data_t, _ offset: Int, _ length: Int) -> dispatch_data_t
97 {
98 fatalError()
99 }
100
101 @available(*, unavailable, renamed:"DispatchData.enumerateBytes(self:block:)")
102 public func dispatch_data_apply(_ data: dispatch_data_t, _ applier: (dispatch_data_t, Int, UnsafePointer<Void>, Int) -> Bool) -> Bool
103 {
104 fatalError()
105 }
106
107 @available(*, unavailable, renamed:"DispatchData.region(self:location:)")
108 public func dispatch_data_copy_region(_ data: dispatch_data_t, _ location: Int, _ offset_ptr: UnsafeMutablePointer<Int>) -> dispatch_data_t
109 {
110 fatalError()
111 }
112
113 @available(*, unavailable, renamed:"DispatchQueue.asynchronously(self:group:qos:flags:execute:)")
114 public func dispatch_group_async(_ group: DispatchGroup, _ queue: DispatchQueue, _ block: () -> Void)
115 {
116 fatalError()
117 }
118
119 @available(*, unavailable, renamed: "DispatchGroup.notify(self:qos:flags:queue:execute:)")
120 public func dispatch_group_notify(_ group: DispatchGroup, _ queue: DispatchQueue, _ block: () -> Void)
121 {
122 fatalError()
123 }
124
125 @available(*, unavailable, renamed:"DispatchGroup.wait(self:timeout:)")
126 public func dispatch_group_wait(_ group: DispatchGroup, _ timeout: dispatch_time_t) -> Int
127 {
128 fatalError()
129 }
130
131 @available(*, unavailable, renamed:"DispatchIO.close(self:flags:)")
132 public func dispatch_io_close(_ channel: DispatchIO, _ flags: UInt)
133 {
134 fatalError()
135 }
136
137 @available(*, unavailable, renamed:"DispatchIO.setInterval(self:interval:flags:)")
138 public func dispatch_io_set_interval(_ channel: DispatchIO, _ interval: UInt64, _ flags: UInt)
139 {
140 fatalError()
141 }
142
143 @available(*, unavailable, renamed:"DispatchQueue.apply(attributes:iterations:execute:)")
144 public func dispatch_apply(_ iterations: Int, _ queue: DispatchQueue, _ block: @noescape (Int) -> Void)
145 {
146 fatalError()
147 }
148
149 @available(*, unavailable, renamed:"DispatchQueue.asynchronously(self:execute:)")
150 public func dispatch_async(_ queue: DispatchQueue, _ block: () -> Void)
151 {
152 fatalError()
153 }
154
155 @available(*, unavailable, renamed:"DispatchQueue.global(attributes:)")
156 public func dispatch_get_global_queue(_ identifier: Int, _ flags: UInt) -> DispatchQueue
157 {
158 fatalError()
159 }
160
161 @available(*, unavailable, renamed: "DispatchQueue.main")
162 public func dispatch_get_main_queue() -> DispatchQueue
163 {
164 fatalError()
165 }
166
167 @available(*, unavailable, renamed:"DispatchQueueAttributes.initiallyInactive")
168 public func dispatch_queue_attr_make_initially_inactive(_ attr: dispatch_queue_attr_t?) -> dispatch_queue_attr_t
169 {
170 fatalError()
171 }
172
173 @available(*, unavailable, renamed:"DispatchQueueAttributes.autoreleaseWorkItem")
174 public func dispatch_queue_attr_make_with_autorelease_frequency(_ attr: dispatch_queue_attr_t?, _ frequency: dispatch_autorelease_frequency_t) -> dispatch_queue_attr_t
175 {
176 fatalError()
177 }
178
179 @available(*, unavailable, renamed:"DispatchQueueAttributes.qosUserInitiated")
180 public func dispatch_queue_attr_make_with_qos_class(_ attr: dispatch_queue_attr_t?, _ qos_class: dispatch_qos_class_t, _ relative_priority: Int32) -> dispatch_queue_attr_t
181 {
182 fatalError()
183 }
184
185 @available(*, unavailable, renamed:"getter:DispatchQueue.label(self:)")
186 public func dispatch_queue_get_label(_ queue: DispatchQueue?) -> UnsafePointer<Int8>
187 {
188 fatalError()
189 }
190
191 @available(*, unavailable, renamed:"getter:DispatchQueue.qos(self:)")
192 public func dispatch_queue_get_qos_class(_ queue: DispatchQueue, _ relative_priority_ptr: UnsafeMutablePointer<Int32>?) -> dispatch_qos_class_t
193 {
194 fatalError()
195 }
196
197 @available(*, unavailable, renamed:"DispatchQueue.after(self:when:execute:)")
198 public func dispatch_after(_ when: dispatch_time_t, _ queue: DispatchQueue, _ block: () -> Void)
199 {
200 fatalError()
201 }
202
203 @available(*, unavailable, renamed:"DispatchQueue.asynchronously(self:group:qos:flags:execute:)")
204 public func dispatch_barrier_async(_ queue: DispatchQueue, _ block: () -> Void)
205 {
206 fatalError()
207 }
208
209 @available(*, unavailable, renamed:"DispatchQueue.synchronously(self:flags:execute:)")
210 public func dispatch_barrier_sync(_ queue: DispatchQueue, _ block: @noescape () -> Void)
211 {
212 fatalError()
213 }
214
215 @available(*, unavailable, renamed:"DispatchQueue.setSpecific(self:key:value:)")
216 public func dispatch_queue_set_specific(_ queue: DispatchQueue, _ key: UnsafePointer<Void>, _ context: UnsafeMutablePointer<Void>?, _ destructor: (@convention(c) (UnsafeMutablePointer<Void>?) -> Void)?)
217 {
218 fatalError()
219 }
220
221 @available(*, unavailable, renamed:"DispatchQueue.getSpecific(self:key:)")
222 public func dispatch_queue_get_specific(_ queue: DispatchQueue, _ key: UnsafePointer<Void>) -> UnsafeMutablePointer<Void>?
223 {
224 fatalError()
225 }
226
227 @available(*, unavailable, renamed:"DispatchQueue.getSpecific(key:)")
228 public func dispatch_get_specific(_ key: UnsafePointer<Void>) -> UnsafeMutablePointer<Void>?
229 {
230 fatalError()
231 }
232
233 @available(*, unavailable, renamed:"dispatchPrecondition(_:)")
234 public func dispatch_assert_queue(_ queue: DispatchQueue)
235 {
236 fatalError()
237 }
238
239 @available(*, unavailable, renamed:"dispatchPrecondition(_:)")
240 public func dispatch_assert_queue_barrier(_ queue: DispatchQueue)
241 {
242 fatalError()
243 }
244
245 @available(*, unavailable, renamed:"dispatchPrecondition(_:)")
246 public func dispatch_assert_queue_not(_ queue: DispatchQueue)
247 {
248 fatalError()
249 }
250
251 @available(*, unavailable, renamed:"DispatchSemaphore.wait(self:timeout:)")
252 public func dispatch_semaphore_wait(_ dsema: DispatchSemaphore, _ timeout: dispatch_time_t) -> Int
253 {
254 fatalError()
255 }
256
257 @available(*, unavailable, renamed: "DispatchSemaphore.signal(self:)")
258 public func dispatch_semaphore_signal(_ dsema: DispatchSemaphore) -> Int
259 {
260 fatalError()
261 }
262
263 @available(*, unavailable, message:"Use DispatchSource class methods")
264 public func dispatch_source_create(_ type: dispatch_source_type_t, _ handle: UInt, _ mask: UInt, _ queue: DispatchQueue?) -> DispatchSource
265 {
266 fatalError()
267 }
268
269 @available(*, unavailable, renamed:"DispatchSource.setEventHandler(self:handler:)")
270 public func dispatch_source_set_event_handler(_ source: DispatchSource, _ handler: (() -> Void)?)
271 {
272 fatalError()
273 }
274
275 @available(*, unavailable, renamed:"DispatchSource.setCancelHandler(self:handler:)")
276 public func dispatch_source_set_cancel_handler(_ source: DispatchSource, _ handler: (() -> Void)?)
277 {
278 fatalError()
279 }
280
281 @available(*, unavailable, renamed:"DispatchSource.cancel(self:)")
282 public func dispatch_source_cancel(_ source: DispatchSource)
283 {
284 fatalError()
285 }
286
287 @available(*, unavailable, renamed:"getter:DispatchSource.isCancelled(self:)")
288 public func dispatch_source_testcancel(_ source: DispatchSource) -> Int
289 {
290 fatalError()
291 }
292
293 @available(*, unavailable, renamed:"getter:DispatchSource.handle(self:)")
294 public func dispatch_source_get_handle(_ source: DispatchSource) -> UInt
295 {
296 fatalError()
297 }
298
299 @available(*, unavailable, renamed:"getter:DispatchSource.mask(self:)")
300 public func dispatch_source_get_mask(_ source: DispatchSource) -> UInt
301 {
302 fatalError()
303 }
304
305 @available(*, unavailable, renamed:"getter:DispatchSource.data(self:)")
306 public func dispatch_source_get_data(_ source: DispatchSource) -> UInt
307 {
308 fatalError()
309 }
310
311 @available(*, unavailable, renamed:"DispatchUserDataAdd.mergeData(self:value:)")
312 public func dispatch_source_merge_data(_ source: DispatchSource, _ value: UInt)
313 {
314 fatalError()
315 }
316
317 @available(*, unavailable, renamed:"DispatchTimerSource.setTimer(self:start:interval:leeway:)")
318 public func dispatch_source_set_timer(_ source: DispatchSource, _ start: dispatch_time_t, _ interval: UInt64, _ leeway: UInt64)
319 {
320 fatalError()
321 }
322
323 @available(*, unavailable, renamed:"DispatchSource.setRegistrationHandler(self:handler:)")
324 public func dispatch_source_set_registration_handler(_ source: DispatchSource, _ handler: (() -> Void)?)
325 {
326 fatalError()
327 }
328
329 @available(*, unavailable, renamed:"DispatchTime.now()")
330 public func dispatch_time(_ when: dispatch_time_t, _ delta: Int64) -> dispatch_time_t
331 {
332 fatalError()
333 }
334
335 @available(*, unavailable, renamed:"DispatchWalltime.init(time:)")
336 public func dispatch_walltime(_ when: UnsafePointer<timespec>?, _ delta: Int64) -> dispatch_time_t
337 {
338 fatalError()
339 }
340
341 @available(*, unavailable, renamed: "DispatchQueue.GlobalAttributes.qosUserInitiated")
342 public var DISPATCH_QUEUE_PRIORITY_HIGH: Int {
343 fatalError()
344 }
345
346 @available(*, unavailable, renamed: "DispatchQueue.GlobalAttributes.qosDefault")
347 public var DISPATCH_QUEUE_PRIORITY_DEFAULT: Int {
348 fatalError()
349 }
350
351 @available(*, unavailable, renamed: "DispatchQueue.GlobalAttributes.qosUtility")
352 public var DISPATCH_QUEUE_PRIORITY_LOW: Int {
353 fatalError()
354 }
355
356 @available(*, unavailable, renamed: "DispatchQueue.GlobalAttributes.qosBackground")
357 public var DISPATCH_QUEUE_PRIORITY_BACKGROUND: Int {
358 fatalError()
359 }
360
361 @available(*, unavailable, renamed: "DispatchIO.StreamType.stream")
362 public var DISPATCH_IO_STREAM: Int {
363 fatalError()
364 }
365
366 @available(*, unavailable, renamed: "DispatchIO.StreamType.random")
367 public var DISPATCH_IO_RANDOM: Int {
368 fatalError()
369 }
370
371 @available(*, unavailable, renamed: "DispatchIO.CloseFlags.stop")
372 public var DISPATCH_IO_STOP: Int {
373 fatalError()
374 }
375
376 @available(*, unavailable, renamed: "DispatchIO.IntervalFlags.strictInterval")
377 public var DISPATCH_IO_STRICT_INTERVAL: Int {
378 fatalError()
379 }
380
381 @available(*, unavailable, renamed: "DispatchSource.MachSendEvent.dead")
382 public var DISPATCH_MACH_SEND_DEAD: Int {
383 fatalError()
384 }
385
386 @available(*, unavailable, renamed: "DispatchSource.MemoryPressureEvent.normal")
387 public var DISPATCH_MEMORYPRESSURE_NORMAL: Int {
388 fatalError()
389 }
390
391 @available(*, unavailable, renamed: "DispatchSource.MemoryPressureEvent.warning")
392 public var DISPATCH_MEMORYPRESSURE_WARN: Int {
393 fatalError()
394 }
395
396 @available(*, unavailable, renamed: "DispatchSource.MemoryPressureEvent.critical")
397 public var DISPATCH_MEMORYPRESSURE_CRITICAL: Int {
398 fatalError()
399 }
400
401 @available(*, unavailable, renamed: "DispatchSource.ProcessEvent.exit")
402 public var DISPATCH_PROC_EXIT: Int {
403 fatalError()
404 }
405
406 @available(*, unavailable, renamed: "DispatchSource.ProcessEvent.fork")
407 public var DISPATCH_PROC_FORK: Int {
408 fatalError()
409 }
410
411 @available(*, unavailable, renamed: "DispatchSource.ProcessEvent.exec")
412 public var DISPATCH_PROC_EXEC: Int {
413 fatalError()
414 }
415
416 @available(*, unavailable, renamed: "DispatchSource.ProcessEvent.signal")
417 public var DISPATCH_PROC_SIGNAL: Int {
418 fatalError()
419 }
420
421 @available(*, unavailable, renamed: "DispatchSource.TimerFlags.strict")
422 public var DISPATCH_TIMER_STRICT: Int {
423 fatalError()
424 }
425
426 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.delete")
427 public var DISPATCH_VNODE_DELETE: Int {
428 fatalError()
429 }
430
431 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.write")
432 public var DISPATCH_VNODE_WRITE: Int {
433 fatalError()
434 }
435
436 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.extend")
437 public var DISPATCH_VNODE_EXTEND: Int {
438 fatalError()
439 }
440
441 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.attrib")
442 public var DISPATCH_VNODE_ATTRIB: Int {
443 fatalError()
444 }
445
446 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.link")
447 public var DISPATCH_VNODE_LINK: Int {
448 fatalError()
449 }
450
451 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.rename")
452 public var DISPATCH_VNODE_RENAME: Int {
453 fatalError()
454 }
455
456 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.revoke")
457 public var DISPATCH_VNODE_REVOKE: Int {
458 fatalError()
459 }
460
461 @available(*, unavailable, renamed: "DispatchSource.FileSystemEvent.funlock")
462 public var DISPATCH_VNODE_FUNLOCK: Int {
463 fatalError()
464 }
465
466 @available(*, unavailable, renamed: "DispatchTime.now()")
467 public var DISPATCH_TIME_NOW: Int {
468 fatalError()
469 }
470
471 @available(*, unavailable, renamed: "DispatchTime.distantFuture")
472 public var DISPATCH_TIME_FOREVER: Int {
473 fatalError()
474 }