2 * $Id: rb_ecore.c 60 2004-08-10 14:12:36Z 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
34 * Ecore.main_loop_begin
36 * Starts the Ecore main loop.
38 static VALUE m_main_loop_begin (VALUE self)
40 ecore_main_loop_begin ();
47 * Ecore.main_loop_iterate
49 * Run one iteration of the Ecore main loop.
51 static VALUE m_main_loop_iterate (VALUE self)
53 ecore_main_loop_iterate ();
60 * Ecore.main_loop_quit
62 * Stops the Ecore main loop.
64 static VALUE m_main_loop_quit (VALUE self)
66 ecore_main_loop_quit ();
71 void Init_ecore (void)
73 mEcore = rb_define_module ("Ecore");
75 rb_define_module_function (mEcore, "main_loop_begin",
76 m_main_loop_begin, 0);
77 rb_define_module_function (mEcore, "main_loop_iterate",
78 m_main_loop_iterate, 0);
79 rb_define_module_function (mEcore, "main_loop_quit",