*** empty log message ***
[m17n/m17n-im-config.git] / src / m17n-im-config.h
1 /* m17n-im-config.c -- M17N input method configuration header file
2    Copyright (C) 2007
3      National Institute of Advanced Industrial Science and Technology (AIST)
4      Registration Number H15PRO112
5
6    This file is part of the m17n-im-config package; a sub-part of the
7    m17n library.
8
9    The m17n library is free software; you can redistribute it and/or
10    modify it under the terms of the GNU Lesser General Public License
11    as published by the Free Software Foundation; either version 2.1 of
12    the License, or (at your option) any later version.
13
14    The m17n library is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17    Lesser General Public License for more details.
18
19    You should have received a copy of the GNU Lesser General Public
20    License along with the m17n library; if not, write to the Free
21    Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22    02111-1307, USA.  */
23
24 #ifndef _M17N_IM_CONFIG_H_
25 #define _M17N_IM_CONFIG_H_
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31
32
33 extern int mim_config_init (void);
34 extern int mim_config_fini (void);
35
36 typedef struct _MimConfigCallback
37 {
38   void (*func) (gboolean modified, gpointer arg);
39   gpointer arg;
40 } MimConfigCallback;
41
42 extern GtkWidget *mim_config_widget (MimConfigCallback *callback);
43 extern gboolean mim_config_modified (GtkWidget *config);
44 extern gboolean mim_config_revert (GtkWidget *config);
45 extern gboolean mim_config_save (GtkWidget *config);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* _M17N_IM_CONFIG_H_ */