From ef5abd92fdcf9337e512de1ec541ca310eaaea06 Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 25 Jan 2015 21:09:10 -0500 Subject: this is dumb --- lib/substitute-internal.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'lib/substitute-internal.h') diff --git a/lib/substitute-internal.h b/lib/substitute-internal.h index 0bfff95..3fd35bc 100644 --- a/lib/substitute-internal.h +++ b/lib/substitute-internal.h @@ -67,5 +67,22 @@ enum { SUBSTITUTE_ERR_MISC, }; -int substitute_dlopen_in_pid(int pid, const char *filename, int options, char **error); +enum shuttle_type { + SUBSTITUTE_SHUTTLE_MACH_PORT, + /* ... */ +}; + +struct shuttle { + int type; + union { + struct { + mach_port_t port; + mach_msg_type_name_t right_type; + } mach; + } u; +}; + +int substitute_dlopen_in_pid(int pid, const char *filename, int options, + const struct shuttle *shuttle, size_t nshuttle, + char **error); #endif -- cgit v1.2.3