1 /*
2  * Copyright (C) 2009 - 2012 Vivien Malerba <malerba@gnome-db.org>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 
20 #ifndef __FAVORITES_H_
21 #define __FAVORITES_H_
22 
23 #include <libgda/libgda.h>
24 #include "../decl.h"
25 #include "../../tools-favorites.h"
26 
27 G_BEGIN_DECLS
28 
29 typedef struct {
30 	gint                  id;
31 	gchar                *name;
32 	GdaStatement         *stmt;
33 	GdaSet               *params;
34 	gint                  nb_bound; /* number of GdaHolders in @params which are bound
35 					 * to another GdaHolder */
36 } ToolsFavoriteAction;
37 
38 GSList             *gda_tools_favorites_get_actions  (ToolsFavorites *bfav, BrowserConnection *bcnc, GdaSet *set);
39 void                gda_tools_favorites_free_action  (ToolsFavoriteAction *action);
40 void                gda_tools_favorites_free_actions_list (GSList *actions_list);
41 
42 G_END_DECLS
43 
44 #endif
45