eo2: pass the object id and data to function call
authorTom Hacohen <tom@stosb.com>
Tue, 9 Jul 2013 14:49:45 +0000 (15:49 +0100)
committerTom Hacohen <tom@stosb.com>
Thu, 10 Apr 2014 03:20:15 +0000 (04:20 +0100)
src/lib/eo/Eo.h

index d6b8d6a..816ac67 100644 (file)
@@ -594,14 +594,14 @@ EAPI Eina_Bool eo_shutdown(void);
 
 typedef struct _Eo_Internal _Eo;
 
-#define EO_FUNC_CALL(...) func(obj_data, __VA_ARGS__)
+#define EO_FUNC_CALL(...) func(objid, obj_data, __VA_ARGS__)
 
 /* XXX: Essential, because we need to adjust objid for comp objects. */
 #define EO_FUNC_BODY(Name, Ret, Id, Func, DefRet, ...) \
 EAPI Ret \
 Name(_Eo *obj, Eo *objid, __VA_ARGS__) \
 { \
-   Ret (*func)(Eo *, __VA_ARGS__) = eo2_func_get(obj, Id(Name)); \
+   Ret (*func)(Eo *, void *obj_data, __VA_ARGS__) = eo2_func_get(obj, Id(Name)); \
    if (!func) return DefRet; \
    void *obj_data = eo2_data_scope_get(obj); \
    return Func; \