~ubuntu-branches/ubuntu/wily/mupen64plus/wily-proposed

« back to all changes in this revision

Viewing changes to .pc/correct_security_printf.patch/main/gui.h

  • Committer: Bazaar Package Importer
  • Author(s): Sven Eckelmann
  • Date: 2011-02-06 11:57:54 UTC
  • mfrom: (10.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110206115754-t3abbdfr1q3brszp
Tags: 1.5+dfsg1-15
* Upload to unstable
* Updated my maintainer e-mail address
* debian/patches:
  - Add inline_header.patch, Move inline list_empty to header to make it
    inlineable
* Keep dependencies on separate lines in debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
2
 *   Mupen64plus - gui.h                                                   *
 
3
 *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
 
4
 *   Copyright (C) 2008 Tillin9                                            *
 
5
 *                                                                         *
 
6
 *   This program is free software; you can redistribute it and/or modify  *
 
7
 *   it under the terms of the GNU General Public License as published by  *
 
8
 *   the Free Software Foundation; either version 2 of the License, or     *
 
9
 *   (at your option) any later version.                                   *
 
10
 *                                                                         *
 
11
 *   This program 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         *
 
14
 *   GNU General Public License for more details.                          *
 
15
 *                                                                         *
 
16
 *   You should have received a copy of the GNU General Public License     *
 
17
 *   along with this program; if not, write to the                         *
 
18
 *   Free Software Foundation, Inc.,                                       *
 
19
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
 
20
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
21
 
 
22
#ifndef __GUI_H__
 
23
#define __GUI_H__
 
24
 
 
25
/* The functons which all GUIs must implement. */
 
26
 
 
27
/* Build the GUI and allocate necessary dependenices, but don't display
 
28
 * anything to the screen.
 
29
 */
 
30
void gui_init(int* argc, char*** argv);
 
31
 
 
32
/* Display the newly built GUI. */
 
33
void gui_display(void);
 
34
 
 
35
/* Take control of the application and wait for user input. */
 
36
void gui_main_loop(void);
 
37
 
 
38
typedef enum gui_message
 
39
{
 
40
    GUI_MESSAGE_INFO,
 
41
    GUI_MESSAGE_CONFIRM,
 
42
    GUI_MESSAGE_ERROR
 
43
} gui_message_t;
 
44
 
 
45
/* Interface for sending text messages to the GUI. messagetype can be
 
46
 * GUI_MESSAGE_INFO    - An informational message.
 
47
 * GUI_MESSAGE_CONFIRM - A yes / no confirmation dialog.
 
48
 * GUI_MESSAGE_ERROR   - An error messagee.
 
49
 * Returns true / false (1 / 0) when messagetype specifies confirm.
 
50
 * On other messagetypes return may be undefined.
 
51
 */
 
52
int gui_message(gui_message_t messagetype, const char *format, ...);
 
53
 
 
54
/* gui_update_rombrowser() accesses g_romcahce.length and adds upto roms to the
 
55
 * GUI's rombrowser widget. The clear flag tells the GUI whether to clear the
 
56
 * rombrowser first.
 
57
 */
 
58
void gui_update_rombrowser(unsigned int roms, unsigned short clear);
 
59
 
 
60
typedef enum gui_state
 
61
{
 
62
    GUI_STATE_STOPPED,
 
63
    GUI_STATE_PAUSED,
 
64
    GUI_STATE_RUNNING
 
65
} gui_state_t;
 
66
 
 
67
/* Allow the core to send hints to the GUI as to the state of the emulator. */
 
68
void gui_set_state(gui_state_t state);
 
69
 
 
70
/* TODO: Add debugger GUI APIs here. */
 
71
 
 
72
#endif /* __GUI_H__ */
 
73