]> git.saurik.com Git - cycript.git/blob - Baton.hpp
Finished implementing array ffi.
[cycript.git] / Baton.hpp
1 #include <dlfcn.h>
2 #include <mach/mach.h>
3 #include <sys/types.h>
4
5 struct Baton {
6 void (*_pthread_set_self)(pthread_t);
7
8 int (*pthread_create)(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *);
9 int (*pthread_join)(pthread_t, void **);
10
11 void *(*dlopen)(const char *, int);
12 void *(*dlsym)(void *, const char *);
13
14 mach_port_t (*mach_thread_self)();
15 kern_return_t (*thread_terminate)(thread_act_t);
16
17 pid_t pid;
18 char library[];
19 };