aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute.h
diff options
context:
space:
mode:
authorcomex2015-01-17 14:18:39 -0500
committercomex2015-01-17 14:18:39 -0500
commitd283f92c82d871bc26db88161cf6deca4ddf424d (patch)
treec5b1ea5ea9c5759c2d17451b5ce81c48915d4242 /lib/substitute.h
parentimp forwarding works (diff)
downloadsubstitute-d283f92c82d871bc26db88161cf6deca4ddf424d.tar.gz
fixes and test - both tests work on all archs
Diffstat (limited to '')
-rw-r--r--lib/substitute.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/substitute.h b/lib/substitute.h
index 4dbfc7c..398b7fd 100644
--- a/lib/substitute.h
+++ b/lib/substitute.h
@@ -187,7 +187,9 @@ int substitute_interpose_imports(const struct substitute_image *handle,
*
* @klass the class
* @selector the selector
- * @replacement the new implementation
+ * @replacement the new implementation (other APIs would call this an
+ * IMP, but that isn't in general the real type of the
+ * implementation, so declared as a void * here)
* @old_ptr optional - out pointer to the 'old implementation'.
* If there is no old implementation, a custom IMP is
* returned that delegates to the superclass. This IMP can
@@ -198,8 +200,8 @@ int substitute_interpose_imports(const struct substitute_image *handle,
* @return SUBSTITUTE_OK
* SUBSTITUTE_ERR_NO_SUCH_SELECTOR
*/
-int substitute_hook_objc_message(Class klass, SEL selector, IMP replacement,
- IMP *old_ptr, bool *created_imp_ptr);
+int substitute_hook_objc_message(Class klass, SEL selector, void *replacement,
+ void *old_ptr, bool *created_imp_ptr);
void substitute_free_created_imp(IMP imp);
#endif