Debian Codegraph @

xpc/xpc_wrapper_darwin.h

raw symbols SCIP
1 #ifndef _XPC_WRAPPER_H_
2 #define _XPC_WRAPPER_H_
3
4 #include <stdlib.h>
5 #include <stdio.h>
6 #include <xpc/xpc.h>
7
8 extern xpc_type_t TYPE_ERROR;
9
10 extern xpc_type_t TYPE_ARRAY;
11 extern xpc_type_t TYPE_DATA;
12 extern xpc_type_t TYPE_DICT;
13 extern xpc_type_t TYPE_INT64;
14 extern xpc_type_t TYPE_STRING;
15 extern xpc_type_t TYPE_UUID;
16
17 extern xpc_object_t ERROR_CONNECTION_INVALID;
18 extern xpc_object_t ERROR_CONNECTION_INTERRUPTED;
19 extern xpc_object_t ERROR_CONNECTION_TERMINATED;
20
21 extern xpc_connection_t XpcConnect(char *, uintptr_t);
22 extern void XpcSendMessage(xpc_connection_t, xpc_object_t, bool, bool);
23 extern void XpcArrayApply(uintptr_t, xpc_object_t);
24 extern void XpcDictApply(uintptr_t, xpc_object_t);
25 extern void XpcUUIDGetBytes(void *, xpc_object_t);
26
27 // the input type for xpc_uuid_create should be uuid_t but CGO instists on unsigned char *
28 // typedef uuid_t * ptr_to_uuid_t;
29 typedef unsigned char * ptr_to_uuid_t;
30 extern const ptr_to_uuid_t ptr_to_uuid(void *p);
31
32 #endif