Fix up definition/declaration of xpc_pipe_create and add some flag definitions

This commit is contained in:
Ariel Abreu 2020-06-10 10:01:20 -04:00
parent 79a8161e63
commit 3416b3d19f
No known key found for this signature in database
GPG Key ID: F4D43CC7053EA2B3
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,7 @@ typedef struct _xpc_pipe_s* xpc_pipe_t;
void xpc_pipe_invalidate(xpc_pipe_t pipe);
xpc_pipe_t xpc_pipe_create(int name, int arg2);
xpc_pipe_t xpc_pipe_create(const char* name, int flags);
xpc_object_t _od_rpc_call(const char *procname, xpc_object_t payload, xpc_pipe_t (*get_pipe)(bool));
@ -33,7 +33,10 @@ void xpc_connection_set_instance(xpc_connection_t connection, uuid_t uid);
void xpc_dictionary_set_mach_send(xpc_object_t object, const char* key, mach_port_t port);
// Completely random. Not sure what the "actual" one is
#define XPC_PIPE_FLAG_PRIVILEGED 7
#define XPC_PIPE_PRIVILEGED 7
#define XPC_PIPE_USE_SYNC_IPC_OVERRIDE 8
#define XPC_PIPE_FLAG_PRIVILEGED XPC_PIPE_PRIVILEGED
#ifdef __cplusplus
}

View File

@ -7,7 +7,7 @@ void xpc_pipe_invalidate(xpc_pipe_t pipe)
}
xpc_pipe_t xpc_pipe_create(int name, int arg2)
xpc_pipe_t xpc_pipe_create(const char* name, int flags)
{
return NULL;
}