~ubuntu-branches/ubuntu/trusty/gcompris/trusty

« back to all changes in this revision

Viewing changes to src/gcompris/plugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2006-12-15 23:08:17 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061215230817-exr5ks1hd73s3tlk
Tags: 8.2.2-1
* New upstream bugfix release, fixes among other things the support for
  the version of gnucap shipped in etch.
* Add missing dependency on python-gtk2 (Closes: #396523).
* Removed reference to non-existent sound file from memory.c (upstream
  fix - impacts 8.2 as well).  
* Now suggests gnuchess, gnucap, and tuxpaint.
* Updated extended description for the main package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* gcompris - plugin.h
2
2
 *
3
 
 * Time-stamp: <2002/01/13 17:50:04 bruno>
 
3
 * Time-stamp: <2005/09/14 23:30:48 yves>
4
4
 *
5
5
 * Copyright (C) 2000 Bruno Coudoin
6
 
 * 
 
6
 *
7
7
 *   This program is free software; you can redistribute it and/or modify
8
8
 *   it under the terms of the GNU General Public License as published by
9
9
 *   the Free Software Foundation; either version 2 of the License, or
21
21
#ifndef PLUGIN_H
22
22
#define PLUGIN_H
23
23
 
 
24
#include "profile.h"
 
25
 
24
26
/* Forward declaration of GcomprisBoard */
25
27
typedef struct _GcomprisBoard         GcomprisBoard;
26
28
 
27
29
/* Return 1 if the board plugin can handle this board */
28
30
typedef gboolean      (*GcomprisIsOurBoard)   (GcomprisBoard *gcomprisBoard);
29
31
 
 
32
typedef void          (*GcomprisInitBoard)    (GcomprisBoard *gcomprisBoard);
30
33
typedef void          (*GcomprisStartBoard)   (GcomprisBoard *gcomprisBoard);
31
34
typedef void          (*GcomprisPauseBoard)   (gboolean pause);
32
35
typedef void          (*GcomprisEndBoard)     (void);
33
 
typedef gint          (*GcomprisKeyPress)     (guint keyval);
 
36
typedef gint          (*GcomprisKeyPress)     (guint keyval,
 
37
                                               gchar *commited_str,
 
38
                                               gchar *preedit_str);
34
39
typedef void          (*GcomprisOK)           (void);
35
40
typedef void          (*GcomprisSetLevel)     (guint level);
36
41
typedef void          (*GcomprisConfig)       ();
37
42
typedef void          (*GcomprisRepeat)       ();
 
43
typedef void          (*GcomprisConfigStart)  (GcomprisBoard *gcomprisBoard,
 
44
                                               GcomprisProfile *profile);
 
45
typedef void          (*GcomprisConfigStop)    (void);
38
46
 
39
47
typedef struct
40
48
{
44
52
  char *description;            /* The description that describes this board */
45
53
  char *author;                 /* The author of this board */
46
54
 
47
 
  void (*init) (void);          /* Called when the plugin is loaded */
 
55
  GcomprisInitBoard    init;    /* Called when the plugin is loaded */
 
56
 
48
57
  void (*cleanup) (void);       /* Called when gcompris exit */
49
58
  void (*about) (void);         /* Show the about box */
50
59
  void (*configure) (void);     /* Show the configuration dialog */
51
 
  
 
60
 
52
61
  GcomprisStartBoard   start_board;
53
62
  GcomprisPauseBoard   pause_board;
54
63
  GcomprisEndBoard     end_board;
61
70
  GcomprisConfig       config;
62
71
  GcomprisRepeat       repeat;
63
72
 
 
73
  GcomprisConfigStart  config_start;
 
74
  GcomprisConfigStop   config_stop;
 
75
 
64
76
}
65
77
BoardPlugin;
66
78