func XpcConnect(service string, eh XpcEventHandler) XPC { ctx := uintptr(unsafe.Pointer(&eh)) handlers[ctx] = eh cservice := C.CString(service) defer C.free(unsafe.Pointer(cservice)) return XPC{conn: C.XpcConnect(cservice, C.uintptr_t(ctx))} }
func XpcConnect(service string, eh XpcEventHandler) XPC { cservice := C.CString(service) defer C.free(unsafe.Pointer(cservice)) return XPC{conn: C.XpcConnect(cservice, unsafe.Pointer(&eh))} }
func XpcConnect(service string, eh XpcEventHandler) C.xpc_connection_t { cservice := C.CString(service) defer C.free(unsafe.Pointer(cservice)) return C.XpcConnect(cservice, unsafe.Pointer(&eh)) }