X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fecore%2Frb_ecore.c;h=3487662a5f446d1ae8edd6660891db7baab76a16;hb=041804188a058aa7bbc76c81e4a816255a635f00;hp=7cd8641ccd6456e2fe0f63d0a9f732ac3e20ac28;hpb=98ce45a70b8b219b738bb804297417aae0ae9baa;p=ruby-ecore.git diff --git a/src/ecore/rb_ecore.c b/src/ecore/rb_ecore.c index 7cd8641..3487662 100644 --- a/src/ecore/rb_ecore.c +++ b/src/ecore/rb_ecore.c @@ -1,5 +1,5 @@ /* - * $Id: rb_ecore.c 27 2004-07-08 18:25:05Z tilman $ + * $Id: rb_ecore.c 60 2004-08-10 14:12:36Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -22,22 +22,19 @@ #include +#define __RB_ECORE_C #include "rb_ecore.h" #include "rb_timer.h" #include "rb_idler.h" -#ifdef DEBUG -static VALUE m_init (VALUE self) -{ - return INT2FIX (ecore_init ()); -} - -static VALUE m_shutdown (VALUE self) -{ - return INT2FIX (ecore_shutdown ()); -} -#endif +VALUE mEcore; +/* + * call-seq: + * Ecore.main_loop_begin + * + * Starts the Ecore main loop. + */ static VALUE m_main_loop_begin (VALUE self) { ecore_main_loop_begin (); @@ -45,6 +42,12 @@ static VALUE m_main_loop_begin (VALUE self) return Qnil; } +/* + * call-seq: + * Ecore.main_loop_iterate + * + * Run one iteration of the Ecore main loop. + */ static VALUE m_main_loop_iterate (VALUE self) { ecore_main_loop_iterate (); @@ -52,6 +55,12 @@ static VALUE m_main_loop_iterate (VALUE self) return Qnil; } +/* + * call-seq: + * Ecore.main_loop_quit + * + * Stops the Ecore main loop. + */ static VALUE m_main_loop_quit (VALUE self) { ecore_main_loop_quit (); @@ -63,13 +72,6 @@ void Init_ecore (void) { mEcore = rb_define_module ("Ecore"); -#ifdef DEBUG - rb_define_module_function (mEcore, "init", - m_init, 0); - rb_define_module_function (mEcore, "shutdown", - m_shutdown, 0); -#endif - rb_define_module_function (mEcore, "main_loop_begin", m_main_loop_begin, 0); rb_define_module_function (mEcore, "main_loop_iterate",