From e910f0d9ddbd2f2a6b774ca364ac838c717ebc9f Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 10 Jan 2015 16:31:00 -0500 Subject: substrate --- lib/substitute.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/substitute.h') 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 #include -// 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 -- cgit v1.2.3