Added README.
[irreco.git] / irreco / src / core / irreco_config.h
blob6132618954070de69d9aeba002967fc074c68a33
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
4 * Harri Vattulainen (t5vaha01@students.oamk.fi)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /**
22 * @addtogroup IrrecoConfig
23 * @{
26 /**
27 * @file
28 * Header file of @ref IrrecoConfig.
31 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
32 /* Typedef */
33 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
35 * Make sure that typedefs are available before we include anything elese.
37 * This makes sure that whatever other structures that depend on structures
38 * defined in this file will compile OK recardles of header inclusion order.
40 #ifndef __IRRECO_CONFIG_H_TYPEDEF__
41 #define __IRRECO_CONFIG_H_TYPEDEF__
43 #endif /* __IRRECO_CONFIG_H_TYPEDEF__ */
47 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
48 /* Include */
49 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
50 #ifndef __IRRECO_CONFIG_H__
51 #define __IRRECO_CONFIG_H__
52 #include "irreco.h"
53 #include "irreco_data.h"
54 extern gchar* irreco_config_layout_file;
55 extern gchar* irreco_config_active_layout_file;
56 extern gchar* irreco_config_backend_file;
57 extern gchar* irreco_config_cmd_chain_file;
60 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
61 /* Datatypes */
62 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
66 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
67 /* Macro */
68 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
72 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
73 /* Prototypes */
74 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 gboolean irreco_config_read_layouts_from_files(IrrecoData *irreco_data);
76 void irreco_config_read_layouts(IrrecoDirForeachData *dir_data);
77 gboolean irreco_config_save_layouts(IrrecoData * irreco_data);
78 gboolean irreco_config_save_active_layout(IrrecoButtonLayout * irreco_layout);
79 IrrecoButtonLayout *irreco_config_read_active_layout(IrrecoData * irreco_data);
80 gboolean irreco_config_save_backends(IrrecoBackendManager * backend_manager);
81 gboolean irreco_config_read_backends(IrrecoBackendManager * backend_manager);
82 gboolean irreco_layout_get_themes(IrrecoData *data,
83 gchar *layoutname,
84 IrrecoStringTable **list);
85 gboolean irreco_layout_get_backends(IrrecoData *data,
86 gchar *layoutname,
87 IrrecoStringTable **list);
89 #endif /* __IRRECO_CONFIG_H__ */
91 /** @} */