Replaced the autotools setup with a Rakefile.
[ruby-ecore.git] / src / ecore / rb_ecore.c
index 52b7e7a4915156673fe7da6d6e00ae7ef2392088..5cefa3a07377268fdceaf01c5637443b531c9366 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_ecore.c 83 2004-08-21 19:55:35Z tilman $
+ * $Id: rb_ecore.c 155 2004-12-09 18:50:20Z tilman $
  *
  * Copyright (C) 2004 ruby-ecore team (see AUTHORS)
  *
 #define __RB_ECORE_C
 #include "rb_ecore.h"
 #include "rb_timer.h"
+#include "rb_animator.h"
 #include "rb_idler.h"
+#include "rb_idle_enterer.h"
 #include "rb_event_handler.h"
+#include "rb_fd_handler.h"
 
 VALUE mEcore;
 
@@ -69,6 +72,11 @@ static VALUE m_main_loop_quit (VALUE self)
        return Qnil;
 }
 
+static VALUE m_time_get (VALUE self)
+{
+       return rb_float_new (ecore_time_get ());
+}
+
 static VALUE c_ev_exe_exit_init (VALUE self, VALUE event)
 {
        VALUE c = CLASS_OF (self);
@@ -139,10 +147,14 @@ void Init_ecore (void)
                                   m_main_loop_iterate, 0);
        rb_define_module_function (mEcore, "main_loop_quit",
                                   m_main_loop_quit, 0);
+       rb_define_module_function (mEcore, "time", m_time_get, 0);
 
        Init_Timer ();
+       Init_Animator ();
        Init_Idler ();
+       Init_IdleEnterer ();
        Init_EventHandler ();
+       Init_FdHandler ();
 
        /* SIGNAL_HUP */
        ADD_EVENT (mEcore, ECORE_EVENT_, SIGNAL_HUP,