ext/cs__common/cs__common.h in contrast-agent-6.0.0 vs ext/cs__common/cs__common.h in contrast-agent-6.1.0
- old
+ new
@@ -55,17 +55,41 @@
VALUE contrast_register_singleton_patch(const char *module_name,
const char *method_name,
VALUE(c_fn)(const int, VALUE *,
const VALUE));
-VALUE contrast_register_singleton_prepend_patch(
- const char *module_name, const char *method_name,
- VALUE(c_fn)(const int, VALUE *, const VALUE));
+VALUE contrast_register_prepend_patch(const char *module_name,
+ const char *method_name,
+ VALUE(c_fn)(const int, VALUE *,
+ const VALUE));
-static VALUE
-_contrast_register_patch(const char *module_name, const char *method_name,
+
+VALUE contrast_register_singleton_prepend_patch(const char *module_name,
+ const char *method_name,
+ VALUE(c_fn)(const int, VALUE *,
+ const VALUE));
+
+VALUE contrast_register_prepend_patch(const char *module_name,
+ const char *method_name,
+ VALUE(c_fn)(const int, VALUE *,
+ const VALUE));
+
+static VALUE _contrast_register_patch(const char *module_name, const char *method_name,
VALUE(c_fn)(const int, VALUE *, const VALUE),
patch_impl patch_impl);
+
+static VALUE _contrast_check_prepended(VALUE self, VALUE method_name, VALUE is_instance);
+
+extern VALUE contrast_check_prepended(VALUE self, VALUE method_name, VALUE is_instance);
+
+extern VALUE contrast_lookout_prepended(VALUE self, VALUE object_name, VALUE method_name,
+ VALUE is_instance);
+
+/* check if method is prepended and register instance alias or prepend patch */
+VALUE contrast_check_and_register_instance_patch(const char *module_name,
+ const char *method_name,
+ VALUE(c_fn)(const int, VALUE *,
+ const VALUE));
VALUE contrast_patcher();
void Init_cs__common(void);