1 /*
2  * Copyright (C) 2009 - 2011 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 #ifndef __GDA_TOOLS_UTILS__
20 #define __GDA_TOOLS_UTILS__
21 
22 #include <libgda/libgda.h>
23 
24 const gchar *gda_tools_utils_fk_policy_to_string (GdaMetaForeignKeyPolicy policy);
25 
26 /*
27  * error reporting
28  */
29 extern GQuark gda_tools_error_quark (void);
30 #define GDA_TOOLS_ERROR gda_tools_error_quark ()
31 
32 typedef enum {
33 	GDA_TOOLS_NO_CONNECTION_ERROR,
34 	GDA_TOOLS_CONNECTION_CLOSED_ERROR,
35 	GDA_TOOLS_INTERNAL_COMMAND_ERROR,
36 	GDA_TOOLS_COMMAND_ARGUMENTS_ERROR,
37 	GDA_TOOLS_OBJECT_NOT_FOUND_ERROR,
38 	GDA_TOOLS_PROVIDER_NOT_FOUND_ERROR,
39 	GDA_TOOLS_DSN_NOT_FOUND_ERROR,
40 	GDA_TOOLS_STORED_DATA_ERROR,
41 	GDA_TOOLS_PURGE_ERROR
42 } ToolsError;
43 
44 #endif
45