func attemptFullDiskAccess()

in deployment/macos/diagnostic/SystemExtensionTester/TestSystemExtension/IPCConnection.swift [146:161]


    func attemptFullDiskAccess(_ completionHandler: @escaping (Bool) -> Void) {
        
        var client: OpaquePointer?

        guard (es_new_client(&client) { (client, message) in
            
            os_log("ES Message received")
            
        }) == ES_NEW_CLIENT_RESULT_SUCCESS else {
            completionHandler(false)
            return
        }
        
        es_delete_client(client!)
        completionHandler(true)
    }