diff options
author | comex | 2015-01-10 16:31:00 -0500 |
---|---|---|
committer | comex | 2015-01-10 16:31:00 -0500 |
commit | e910f0d9ddbd2f2a6b774ca364ac838c717ebc9f (patch) | |
tree | d9d5ebc9cfa7564c76eac91109607be08fd37fc0 /lib/substitute.h | |
parent | private syms starting to look good (diff) | |
download | substitute-e910f0d9ddbd2f2a6b774ca364ac838c717ebc9f.tar.gz |
substrate
Diffstat (limited to 'lib/substitute.h')
-rw-r--r-- | lib/substitute.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/substitute.h b/lib/substitute.h index 20dc020..a7fdd31 100644 --- a/lib/substitute.h +++ b/lib/substitute.h @@ -8,7 +8,11 @@ #include <stdlib.h> #include <stdint.h> -// TODO add numbers +#ifdef __cplusplus +extern "C" { +#endif + +/* TODO add numbers */ enum { SUBSTITUTE_OK = 0, }; @@ -42,7 +46,6 @@ struct substitute_image { * @filename the executable/library path (c.f. dyld(3) on Darwin) * @return a handle, or NULL if the image wasn't found */ - struct substitute_image *substitute_open_image(const char *filename); /* Release a handle opened with substitute_open_image. @@ -76,3 +79,7 @@ int substitute_find_private_syms(struct substitute_image *handle, void *substitute_sym_to_ptr(struct substitute_image *handle, substitute_sym *sym); #endif /* 1 */ + +#ifdef __cplusplus +} /* extern */ +#endif |