Removed init/shutdown methods.
[ruby-ecore.git] / src / ecore / rb_ecore.c
index 00a5d1e51c4184dd1646e3a3dc0998c4270cf71a..9355e36280a404ca0417a9004b60f28d0bf46be5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id$
+ * $Id: rb_ecore.c 53 2004-08-07 11:22:00Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
 
 #include <Ecore.h>
 
+#define __RB_ECORE_C
 #include "rb_ecore.h"
 #include "rb_timer.h"
 #include "rb_idler.h"
 
-static VALUE m_init (VALUE self)
-{
-       return INT2FIX (ecore_init ());
-}
+VALUE mEcore;
 
 static VALUE m_main_loop_begin (VALUE self)
 {
@@ -52,27 +50,16 @@ static VALUE m_main_loop_quit (VALUE self)
        return Qnil;
 }
 
-static VALUE m_shutdown (VALUE self)
-{
-       rb_gc_start ();
-
-       return INT2FIX (ecore_shutdown ());
-}
-
 void Init_ecore (void)
 {
        mEcore = rb_define_module ("Ecore");
 
-       rb_define_module_function (mEcore, "init",
-                                  m_init, 0);
        rb_define_module_function (mEcore, "main_loop_begin",
                                   m_main_loop_begin, 0);
        rb_define_module_function (mEcore, "main_loop_iterate",
                                   m_main_loop_iterate, 0);
        rb_define_module_function (mEcore, "main_loop_quit",
                                   m_main_loop_quit, 0);
-       rb_define_module_function (mEcore, "shutdown",
-                                  m_shutdown, 0);
 
        Init_Timer ();
        Init_Idler ();