Function

IOSurfaceLookupFromXPCObject(_:)

Declaration

func IOSurfaceLookupFromXPCObject(_ xobj: xpc_object_t) -> IOSurfaceRef?

Discussion

This call takes an XPC object created via IOSurfaceCreateXPCObject() and recreates an IOSurfaceRef from it. Note: This call does NOT destroy the port.