cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0abeacb8cec2b3339794edc6230531831d19a3cc

commit 0abeacb8cec2b3339794edc6230531831d19a3cc
Author: Jean Guyomarc'h <jean.guyoma...@gmail.com>
Date:   Wed Jan 6 00:03:57 2016 +0100

    ecore_cocoa: introduce Ecore_Cocoa_Object
    
    This type is used as a bridge between objective-c objects (which are
    ALWAYS pointed to) and the C interface.
    Ecore_Cocoa_Object* is a less ugly substitute for void*.
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/ecore_cocoa/Ecore_Cocoa.h        | 8 +++++++-
 src/lib/ecore_cocoa/ecore_cocoa_window.m | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h 
b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index 5e3ab87..a794495 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -61,6 +61,12 @@ typedef struct _Ecore_Cocoa_Screen Ecore_Cocoa_Screen;
 typedef void * Ecore_Cocoa_Window_Id;
 
 /**
+ * @typedef Ecore_Cocoa_Object
+ * Opaque handler to refer to an objective-c object (aka id)
+ */
+typedef void Ecore_Cocoa_Object;
+
+/**
  * @typedef Ecore_Cocoa_Event_Video_Resize
  * Type of event thrown when a window is resized
  */
@@ -252,7 +258,7 @@ EAPI void 
ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window *window,
                                             Eina_Bool           on);
 
 EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
-                                      void *view);
+                                      Ecore_Cocoa_Object *view);
 
 EAPI int ecore_cocoa_titlebar_height_get(void);
 
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m 
b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 38c167c..e50f7d1 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -568,7 +568,7 @@ ecore_cocoa_window_borderless_set(Ecore_Cocoa_Window 
*window,
 
 EAPI void
 ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
-                            void *view)
+                            Ecore_Cocoa_Object *view)
 {
    EINA_SAFETY_ON_NULL_RETURN(window);
    EINA_SAFETY_ON_NULL_RETURN(view);

-- 


Reply via email to