diff options
author | comex | 2015-07-13 17:08:55 -0400 |
---|---|---|
committer | comex | 2015-07-13 17:08:55 -0400 |
commit | d52241cfc8b1e1a5ed602fedfe9d11b4653c96cf (patch) | |
tree | fedd5df8cc9dfdd35b22114e737a24939c3c2027 /lib | |
parent | be beta (diff) | |
download | substitute-d52241cfc8b1e1a5ed602fedfe9d11b4653c96cf.tar.gz |
hook up the list of dylibs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/darwin/xxpc.h | 2 | ||||
-rw-r--r-- | lib/substitute-internal.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/darwin/xxpc.h b/lib/darwin/xxpc.h index 7df28f6..d1bcb9d 100644 --- a/lib/darwin/xxpc.h +++ b/lib/darwin/xxpc.h @@ -80,6 +80,8 @@ void WRAP(xpc_connection_resume, (xxpc_connection_t)); void WRAP(xpc_connection_set_event_handler, (xxpc_connection_t, xxpc_handler_t)); void WRAP(xpc_connection_send_message_with_reply, (xxpc_connection_t, xxpc_object_t, dispatch_queue_t, xxpc_handler_t)); +xxpc_object_t WRAP(xpc_connection_send_message_with_reply_sync, + (xxpc_connection_t, xxpc_object_t)); void WRAP(xpc_connection_send_message, (xxpc_connection_t, xxpc_object_t)); void WRAP(xpc_connection_cancel, (xxpc_connection_t)); int WRAP(xpc_pipe_routine_reply, (xxpc_object_t)); diff --git a/lib/substitute-internal.h b/lib/substitute-internal.h index 80c8b22..675f6eb 100644 --- a/lib/substitute-internal.h +++ b/lib/substitute-internal.h @@ -1,6 +1,8 @@ #pragma once #include <stdio.h> +#include <string.h> + #define substitute_panic(...) do { \ fprintf(stderr, __VA_ARGS__); \ abort(); \ @@ -100,3 +102,8 @@ int substitute_dlopen_in_pid(int pid, const char *filename, int options, int substitute_ios_unrestrict(task_t task, char **error); #endif +static const char *xbasename(const char *path) { + const char *slash = strrchr(path, '/'); + return slash ? slash + 1 : path; +} + |