2 * $Id: rb_ecore.c 45 2004-07-26 11:00:14Z tilman $
4 * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 static VALUE m_init (VALUE self)
35 return INT2FIX (ecore_init ());
38 static VALUE m_shutdown (VALUE self)
40 return INT2FIX (ecore_shutdown ());
44 static VALUE m_main_loop_begin (VALUE self)
46 ecore_main_loop_begin ();
51 static VALUE m_main_loop_iterate (VALUE self)
53 ecore_main_loop_iterate ();
58 static VALUE m_main_loop_quit (VALUE self)
60 ecore_main_loop_quit ();
65 void Init_ecore (void)
67 mEcore = rb_define_module ("Ecore");
70 rb_define_module_function (mEcore, "init",
72 rb_define_module_function (mEcore, "shutdown",
76 rb_define_module_function (mEcore, "main_loop_begin",
77 m_main_loop_begin, 0);
78 rb_define_module_function (mEcore, "main_loop_iterate",
79 m_main_loop_iterate, 0);
80 rb_define_module_function (mEcore, "main_loop_quit",