Documentation Archive Developer
Search

DirectoryService Changes for Swift

DirectoryService

Removed tDataList.init(fDataNodeCount: UInt32, fDataListHead: tDataNodePtr)
Added tDataList.init(fDataNodeCount: UInt32, fDataListHead: tDataNodePtr!)
Modified tDataList [struct]
Declaration
From
struct tDataList {
    var fDataNodeCount: UInt32
    var fDataListHead: tDataNodePtr
    init()
    init(fDataNodeCount fDataNodeCount: UInt32, fDataListHead fDataListHead: tDataNodePtr)
}
To
struct tDataList {
    var fDataNodeCount: UInt32
    var fDataListHead: tDataNodePtr!
    init()
    init(fDataNodeCount fDataNodeCount: UInt32, fDataListHead fDataListHead: tDataNodePtr!)
}

Modified tDataList.fDataListHead
Declaration
From
var fDataListHead: tDataNodePtr
To
var fDataListHead: tDataNodePtr!

Modified dsGetDataLength(_: UnsafePointer<tDataList>!) -> UInt32
Declaration
From
func dsGetDataLength(_ inDataList: UnsafePointer<tDataList>) -> UInt32
To
func dsGetDataLength(_ inDataList: UnsafePointer<tDataList>!) -> UInt32

Modified fpCustomAllocate
Declaration
From
typealias fpCustomAllocate = (tDirReference, tClientData, UInt32, UnsafeMutablePointer<tBuffer>) -> tDirStatus
To
typealias fpCustomAllocate = (tDirReference, tClientData?, UInt32, UnsafeMutablePointer<tBuffer?>?) -> tDirStatus

Modified fpCustomDeAllocate
Declaration
From
typealias fpCustomDeAllocate = (tDirReference, tClientData, tBuffer) -> tDirStatus
To
typealias fpCustomDeAllocate = (tDirReference, tClientData?, tBuffer?) -> tDirStatus

Modified fpCustomThreadBlock
Declaration
From
typealias fpCustomThreadBlock = (tDirReference, tClientData) -> tDirStatus
To
typealias fpCustomThreadBlock = (tDirReference, tClientData?) -> tDirStatus

Modified fpCustomThreadUnBlock
Declaration
From
typealias fpCustomThreadUnBlock = (tDirReference, tClientData) -> tDirStatus
To
typealias fpCustomThreadUnBlock = (tDirReference, tClientData?) -> tDirStatus

Modified fpCustomThreadYield
Declaration
From
typealias fpCustomThreadYield = (tDirReference, tClientData) -> tDirStatus
To
typealias fpCustomThreadYield = (tDirReference, tClientData?) -> tDirStatus

Modified tBuffer
Declaration
From
typealias tBuffer = UnsafeMutablePointer<Void>
To
typealias tBuffer = UnsafeMutableRawPointer

Modified tClientData
Declaration
From
typealias tClientData = UnsafeMutablePointer<Void>
To
typealias tClientData = UnsafeMutableRawPointer