Use ecore_evas_data_set/get to store a pointer to self.
[ruby-ecore.git] / src / ecore_evas / rb_ecore_evas.h
index b95c2dd585955a333d02e31cceb38316df775049..8e5849ac789e74c00bbe7ccade5b4cc5fdc8db3b 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * $Id: rb_ecore_evas.h 9 2004-06-19 19:53:47Z tilman $
+ * $Id: rb_ecore_evas.h 77 2004-08-19 17:39:29Z tilman $
  *
- * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
+ * Copyright (C) 2004 ruby-ecore team (see AUTHORS)
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #ifndef __RB_ECORE_EVAS_H
 #define __RB_ECORE_EVAS_H
 
-VALUE cEcoreEvas;
+#include <stdbool.h>
+
+typedef struct {
+       Ecore_Evas *real;
+       VALUE evas;
+       VALUE callbacks;
+} RbEcoreEvas;
 
 void Init_EcoreEvas (void);
 
-void c_ecore_evas_free (Ecore_Evas **ee);
+void c_ecore_evas_mark (RbEcoreEvas *ee);
+void c_ecore_evas_free (RbEcoreEvas *ee, bool free_mem);
+
+#ifndef __RB_ECORE_EVAS_C
+VALUE cEcoreEvas;
+#endif
 
 #endif