Use ecore_evas_data_set/get to store a pointer to self.
[ruby-ecore.git] / src / ecore_evas / rb_ecore_evas_main.c
index d3487dfa55cfe41278e895926867aee11f335dff..432f64a99b7e08f6ad92cb3d9affa42b9090131a 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * $Id: rb_ecore_evas_main.c 22 2004-06-26 16:43:41Z tilman $
+ * $Id: rb_ecore_evas_main.c 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
 #include "rb_gl_x11.h"
 #include "rb_fb.h"
 
-static VALUE m_init (VALUE self)
-{
-       return INT2FIX (ecore_evas_init ());
-}
-
-static VALUE m_shutdown (VALUE self)
-{
-       return INT2FIX (ecore_evas_shutdown ());
-}
-
 void Init_ecore_evas (void)
 {
        rb_require ("ecore");
@@ -46,12 +36,8 @@ void Init_ecore_evas (void)
 
        mEvas = rb_define_module_under (mEcore, "Evas");
 
-       rb_define_module_function (mEvas, "init", m_init, 0);
-       rb_define_module_function (mEvas, "shutdown", m_shutdown, 0);
-
        Init_EcoreEvas ();
        Init_SoftwareX11 ();
        Init_GlX11 ();
        Init_Fb ();
 }
-