Back to index

gcompris  8.2.2
board.h
Go to the documentation of this file.
00001 /*  GCompris -- This files comes from XMMS
00002  *
00003  *  XMMS - Cross-platform multimedia player
00004  *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 #ifndef BOARD_H
00021 #define BOARD_H
00022 
00028 #if defined WIN32
00029 #define GET_BPLUGIN_INFO(pluginname) \
00030   BoardPlugin \
00031   *get_##pluginname##_bplugin_info(void) \
00032   { \
00033     return &menu_bp; \
00034   } \
00035   BoardPlugin * _##pluginname##_menu_bp = &menu_bp;
00036 #else
00037 #define GET_BPLUGIN_INFO(pluginname) \
00038   BoardPlugin                    \
00039   *get_bplugin_info(void) \
00040   { \
00041     return &menu_bp; \
00042   }
00043 #endif
00044 
00045 struct BoardPluginData
00046 {
00047   GcomprisBoard      *current_gcompris_board;
00048   gboolean     playing;
00049 };
00050 
00051 void           gc_board_init(void);
00052 BoardPlugin   *gc_board_get_current_board_plugin(void);
00053 GcomprisBoard *gc_board_get_current(void);
00054 void           gc_board_set_current(GcomprisBoard * gcomprisBoard);
00055 gboolean       gc_board_check_file(GcomprisBoard *gcomprisBoard);
00056 void           gc_board_play(GcomprisBoard *gcomprisBoard);
00057 void           gc_board_stop(void);
00058 void           gc_board_pause(int pause);
00059 
00060 void             gc_board_run_next(GcomprisBoard *board);
00061 
00062 #endif