00001 /* 00002 Copyright Remco Bras 2007,2008 00003 This file is part of RPGE. 00004 00005 RPGE is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 RPGE is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program. If not, see <http://www.gnu.org/licenses/> 00017 */ 00018 00019 #ifndef GUILE_H 00020 #define GUILE_H 00021 00022 #include "event.h" 00023 #include "tile.h" 00024 #include "text.h" 00025 #include <libguile.h> 00026 #include <SDL/SDL.h> 00027 #include "guile_mob.h" 00028 #include "guile_camera.h" 00029 #include "guile_window.h" 00030 #include "guile_tile.h" 00031 #include "guile_text.h" 00032 #include "guile_global_event.h" 00033 #include "guile_load.h" 00034 #include "guile_config_file.h" 00035 00036 00037 extern SCM global_userdata; 00038 00039 /*Actually a SDL_USEREVENT code, but.. put here to decrease warnings*/ 00040 #define RELEASE_REPL_MUTEX 0 00041 #define ACQUIRE_REPL_MUTEX 1 00042 00043 void argvs_init(); 00044 SCM guile_get_global_userdata(void); 00045 SCM guile_set_global_userdata(SCM newdata); 00046 SCM guile_run_repl(); 00047 SCM guile_stop_repl(); 00048 00049 #endif