示例#1
0
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))}
}
示例#2
0
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))}
}
示例#3
0
文件: xpc.go 项目: vizidrixfork/goble
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))
}