[libgda] Corrections to help GObject introspection
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Corrections to help GObject introspection
- Date: Wed, 10 Mar 2010 18:17:45 +0000 (UTC)
commit 70009d1bcaa75740c2958aebc3a0b74dcdd2c10d
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Mar 10 19:15:40 2010 +0100
Corrections to help GObject introspection
thanks to Daniel Espinosa
doc/C/libgda-sections.txt | 2 ++
doc/C/tmpl/gda-batch.sgml | 7 +++++++
doc/C/tmpl/gda-data-select.sgml | 12 ++++++++++++
libgda/gda-batch.c | 2 +-
libgda/gda-batch.h | 4 ++++
libgda/gda-data-select.h | 4 ++--
6 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/doc/C/libgda-sections.txt b/doc/C/libgda-sections.txt
index 7bcc174..e209976 100644
--- a/doc/C/libgda-sections.txt
+++ b/doc/C/libgda-sections.txt
@@ -1090,6 +1090,7 @@ gda_statement_get_type
<FILE>gda-batch</FILE>
<TITLE>GdaBatch</TITLE>
GdaBatch
+GdaBatchError
gda_batch_new
gda_batch_copy
gda_batch_add_statement
@@ -1361,6 +1362,7 @@ gda_meta_struct_dump_as_graph
<FILE>gda-data-select</FILE>
<TITLE>GdaDataSelect</TITLE>
GdaDataSelect
+GdaDataSelectError
gda_data_select_set_row_selection_condition_sql
gda_data_select_set_row_selection_condition
gda_data_select_compute_row_selection_condition
diff --git a/doc/C/tmpl/gda-batch.sgml b/doc/C/tmpl/gda-batch.sgml
index 1444e5b..dd262ad 100644
--- a/doc/C/tmpl/gda-batch.sgml
+++ b/doc/C/tmpl/gda-batch.sgml
@@ -35,6 +35,13 @@ a #GdaSqlParser object.
@gdabatch: the object which received the signal.
@arg1:
+<!-- ##### ENUM GdaBatchError ##### -->
+<para>
+
+</para>
+
+ GDA_BATCH_CONFLICTING_PARAMETER_ERROR:
+
<!-- ##### FUNCTION gda_batch_new ##### -->
<para>
diff --git a/doc/C/tmpl/gda-data-select.sgml b/doc/C/tmpl/gda-data-select.sgml
index 429a8f3..384d76a 100644
--- a/doc/C/tmpl/gda-data-select.sgml
+++ b/doc/C/tmpl/gda-data-select.sgml
@@ -98,6 +98,18 @@ Data models returned by the execution of a SELECT statement
</para>
+<!-- ##### ENUM GdaDataSelectError ##### -->
+<para>
+
+</para>
+
+ GDA_DATA_SELECT_MODIFICATION_STATEMENT_ERROR:
+ GDA_DATA_SELECT_MISSING_MODIFICATION_STATEMENT_ERROR:
+ GDA_DATA_SELECT_CONNECTION_ERROR:
+ GDA_DATA_SELECT_ACCESS_ERROR:
+ GDA_DATA_SELECT_SQL_ERROR:
+ GDA_DATA_SELECT_SAFETY_LOCKED_ERROR:
+
<!-- ##### FUNCTION gda_data_select_set_row_selection_condition_sql ##### -->
<para>
diff --git a/libgda/gda-batch.c b/libgda/gda-batch.c
index c26f82f..d6a9bca 100644
--- a/libgda/gda-batch.c
+++ b/libgda/gda-batch.c
@@ -437,7 +437,7 @@ gda_batch_get_parameters (GdaBatch *batch, GdaSet **out_params, GError **error)
if (!eholder ||
(gda_holder_get_g_type (eholder) != (gda_holder_get_g_type (holder)))) {
/* error */
- g_set_error (error, GDA_BATCH_ERROR, 0,
+ g_set_error (error, GDA_BATCH_ERROR, GDA_BATCH_CONFLICTING_PARAMETER_ERROR,
_("Conflicting parameter '%s'"), gda_holder_get_id (holder));
g_object_unref (tmpset);
g_object_unref (set);
diff --git a/libgda/gda-batch.h b/libgda/gda-batch.h
index 3bca875..8462336 100644
--- a/libgda/gda-batch.h
+++ b/libgda/gda-batch.h
@@ -36,6 +36,10 @@ G_BEGIN_DECLS
extern GQuark gda_batch_error_quark (void);
#define GDA_BATCH_ERROR gda_batch_error_quark ()
+typedef enum {
+ GDA_BATCH_CONFLICTING_PARAMETER_ERROR
+} GdaBatchError;
+
/* struct for the object's data */
struct _GdaBatch
{
diff --git a/libgda/gda-data-select.h b/libgda/gda-data-select.h
index 85cb733..a25f65a 100644
--- a/libgda/gda-data-select.h
+++ b/libgda/gda-data-select.h
@@ -44,14 +44,14 @@ typedef struct _GdaDataSelectPrivate GdaDataSelectPrivate;
extern GQuark gda_data_select_error_quark (void);
#define GDA_DATA_SELECT_ERROR gda_data_select_error_quark ()
-enum {
+typedef enum {
GDA_DATA_SELECT_MODIFICATION_STATEMENT_ERROR,
GDA_DATA_SELECT_MISSING_MODIFICATION_STATEMENT_ERROR,
GDA_DATA_SELECT_CONNECTION_ERROR,
GDA_DATA_SELECT_ACCESS_ERROR,
GDA_DATA_SELECT_SQL_ERROR,
GDA_DATA_SELECT_SAFETY_LOCKED_ERROR
-};
+} GdaDataSelectError;
struct _GdaDataSelect {
GObject object;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]