1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 Copyright (C) 2008 Sébastien Granjoux
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.
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
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef CONFIGURATION_LIST_H
22 #define CONFIGURATION_LIST_H
26 typedef struct _BuildConfiguration BuildConfiguration
;
27 typedef struct _BuildConfigurationList BuildConfigurationList
;
29 BuildConfigurationList
* build_configuration_list_new (void);
30 void build_configuration_list_free (BuildConfigurationList
*list
);
32 void build_configuration_list_from_string_list (BuildConfigurationList
*list
, GList
*str_list
);
33 GList
*build_configuration_list_to_string_list (BuildConfigurationList
*list
);
35 BuildConfiguration
*build_configuration_list_get_first (BuildConfigurationList
*list
);
36 BuildConfiguration
*build_configuration_list_get_selected (BuildConfigurationList
*list
);
37 gint
build_configuration_list_get_position (BuildConfigurationList
*list
, BuildConfiguration
*cfg
);
38 BuildConfiguration
*build_configuration_next (BuildConfiguration
*cfg
);
39 BuildConfiguration
*build_configuration_list_get (BuildConfigurationList
*list
, const gchar
*name
);
40 BuildConfiguration
*build_configuration_list_select (BuildConfigurationList
*list
, const gchar
*name
);
41 BuildConfiguration
*build_configuration_list_create (BuildConfigurationList
*list
, const gchar
*name
);
43 void build_configuration_list_set_project_uri (BuildConfigurationList
*list
, const gchar
*uri
);
44 const gchar
*build_configuration_get_translated_name (BuildConfiguration
*cfg
);
45 const gchar
*build_configuration_get_name (BuildConfiguration
*cfg
);
46 gboolean
build_configuration_list_set_build_uri (BuildConfigurationList
*list
, BuildConfiguration
*cfg
, const gchar
*build_uri
);
47 gchar
*build_configuration_list_get_build_uri (BuildConfigurationList
*list
, BuildConfiguration
*cfg
);
48 const gchar
*build_configuration_get_relative_build_uri (BuildConfiguration
*cfg
);
49 void build_configuration_set_args (BuildConfiguration
*cfg
, const gchar
*args
);
50 const gchar
*build_configuration_get_args (BuildConfiguration
*cfg
);
51 void build_configuration_set_variable (BuildConfiguration
*cfg
, const gchar
*var
);
52 GList
*build_configuration_get_variables (BuildConfiguration
*cfg
);
55 #endif /* CONFIGURATION_LIST_H */