[libgda/LIBGDA_5.0] Fixed issues on --enable-gda-gi and removed warnings on TYPELIB compilation



commit 1e8eb1079b816a44892553af9cefc2e760c36144
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu May 30 17:12:30 2013 -0500

    Fixed issues on --enable-gda-gi and removed warnings on TYPELIB compilation

 configure.ac                 |    6 +++++-
 libgda/Gda-5.0.gir           |    3 ++-
 libgda/gda-statement-extra.h |   18 +++++-------------
 libgda/gda-tree-mgr-ldap.c   |    2 +-
 libgda/gda-tree-mgr-tables.c |    2 +-
 libgda/gda-value.h           |   14 --------------
 6 files changed, 14 insertions(+), 31 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 687b086..c91c2eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -415,7 +415,6 @@ dnl *********************************
 dnl Check for GObject Introspection
 dnl *********************************
 GOBJECT_INTROSPECTION_CHECK([0.6.5])
-enable_gda_gi=no
 AC_ARG_ENABLE([gda-gi],
     AS_HELP_STRING([--enable-gda-gi], [Enable GObject Introspection for libgda [default=auto]]),
     [enable_gda_gi=$enableval],[enable_gda_gi=auto])
@@ -430,6 +429,11 @@ then
   enable_gda_gi=yes
 fi
 
+if test "x$found_introspection" = "xyes" -a "x$enable_gda_gi" = "xyes"
+then
+  enable_gda_gi=yes
+fi
+
 if test "x$enable_gda_gi" = "xyes" -a "x$found_introspection" != "xyes"
 then
        AC_MSG_ERROR([Introspection for Libgda is requested but not available])
diff --git a/libgda/Gda-5.0.gir b/libgda/Gda-5.0.gir
index 2abef52..01dc0f2 100644
--- a/libgda/Gda-5.0.gir
+++ b/libgda/Gda-5.0.gir
@@ -21760,6 +21760,7 @@ To include variables in the @sql string, see the
     <record name="SqlParserPrivate" c:type="GdaSqlParserPrivate" disguised="1">
     </record>
     <record name="SqlRenderingContext" c:type="GdaSqlRenderingContext">
+      <doc xml:whitespace="preserve">Specifies the context in which a #GdaSqlStatement is being converted to 
SQL.</doc>
       <field name="flags" writable="1">
         <type name="StatementSqlFlag" c:type="GdaStatementSqlFlag"/>
       </field>
@@ -21768,7 +21769,7 @@ To include variables in the @sql string, see the
       </field>
       <field name="params_used" writable="1">
         <type name="GLib.SList" c:type="GSList*">
-          <type name="gpointer" c:type="gpointer"/>
+          <type name="Holder"/>
         </type>
       </field>
       <field name="provider" introspectable="0" writable="1">
diff --git a/libgda/gda-statement-extra.h b/libgda/gda-statement-extra.h
index eafd8f4..6a6eba2 100644
--- a/libgda/gda-statement-extra.h
+++ b/libgda/gda-statement-extra.h
@@ -27,16 +27,6 @@ G_BEGIN_DECLS
 /* private information to implement custom 
  * SQL renderers for GdaStatement objects
  */
-/**
- * GdaSqlRenderingContext:
- * @flags:
- * @params:
- * @params_used: (element-type Gda.Holder):
- * @provider: (allow-none):
- * @cnc: (allow-none):
- *
- * Specifies the context in which a #GdaSqlStatement is being converted to SQL.
- */
 typedef struct _GdaSqlRenderingContext GdaSqlRenderingContext;
 
 /**
@@ -96,9 +86,9 @@ typedef gchar *(*GdaSqlRenderingValue)     (const GValue *value, GdaSqlRendering
  * GdaSqlRenderingContext:
  * @flags: Global rendering options
  * @params: Parameters to be used while doing the rendering
- * @params_used: When rendering is complete, contains the ordered list of parameters which have been used 
while doing the rendering
- * @provider: Pointer to the server provider to be used
- * @cnc: Pointer to the connection to be used
+ * @params_used: (element-type Gda.Holder): When rendering is complete, contains the ordered list of 
parameters which have been used while doing the rendering
+ * @provider: (allow-none): Pointer to the server provider to be used
+ * @cnc: (allow-none): Pointer to the connection to be used
  * @render_value: function to render a #GValue
  * @render_param_spec: function to render a #GdaSqlParamSpec
  * @render_expr: function to render a #GdaSqlExpr
@@ -125,6 +115,8 @@ typedef gchar *(*GdaSqlRenderingValue)     (const GValue *value, GdaSqlRendering
  * @render_select_from: function to render a #GdaSqlSelectFrom
  * @render_select_order: function to render a #GdaSqlSelectOrder
  * @render_distinct: function to render the DISTINCT clause in a SELECT
+ *
+ * Specifies the context in which a #GdaSqlStatement is being converted to SQL.
  */
 struct _GdaSqlRenderingContext {
        GdaStatementSqlFlag      flags;
diff --git a/libgda/gda-tree-mgr-ldap.c b/libgda/gda-tree-mgr-ldap.c
index eb8a25a..63b7025 100644
--- a/libgda/gda-tree-mgr-ldap.c
+++ b/libgda/gda-tree-mgr-ldap.c
@@ -120,7 +120,7 @@ gda_tree_mgr_ldap_dispose (GObject *object)
 }
 
 /**
- * gda_tree_mgr_select_get_type:
+ * gda_tree_mgr_ldap_get_type:
  *
  * Returns: the GType
  *
diff --git a/libgda/gda-tree-mgr-tables.c b/libgda/gda-tree-mgr-tables.c
index ec38e42..33278d0 100644
--- a/libgda/gda-tree-mgr-tables.c
+++ b/libgda/gda-tree-mgr-tables.c
@@ -155,7 +155,7 @@ gda_tree_mgr_tables_dispose (GObject *object)
 }
 
 /**
- * gda_tree_mgr_select_get_type:
+ * gda_tree_mgr_tables_get_type:
  *
  * Returns: the GType
  *
diff --git a/libgda/gda-value.h b/libgda/gda-value.h
index 81b3619..85dca04 100644
--- a/libgda/gda-value.h
+++ b/libgda/gda-value.h
@@ -78,20 +78,6 @@ typedef struct {
 typedef struct _GdaNumeric GdaNumeric;
 # ifdef GSEAL_ENABLE
 # else
-/**
- * GdaNumeric:
- * @number: a string representing a number
- * @precision: precision to use when @number is converted (not implemented jet)
- * @width: Not implemented jet
- *
- * Holds numbers represented as strings.
- *
- * This struct must be considered as opaque. Any access to its members must use its
- * accessors added since version 5.0.2.
- *
- * Set value func: gda_value_set_numeric
- * Get value func: gda_value_get_numeric
- */
 struct _GdaNumeric {
        gchar*   GSEAL(number);
        glong    GSEAL(precision);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]