[libgda] gda-data-handler: ported to G_DECLARE/G_DEFINE



commit 58e0b983820bd27f6a4047f4b76b7e7f00c504a9
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Sep 19 10:42:55 2018 -0500

    gda-data-handler: ported to G_DECLARE/G_DEFINE

 libgda/Gda-6.0.metadata                       |  4 +-
 libgda/gda-data-handler.c                     | 88 ++++++++-------------------
 libgda/gda-data-handler.h                     | 10 +--
 libgda/gda-decl.h                             |  5 +-
 libgda/gda-holder.h                           |  1 +
 libgda/gda-provider.h                         |  1 +
 libgda/gda-server-provider-extra.h            |  1 +
 libgda/gda-server-provider-impl.h             |  1 +
 libgda/gda-server-provider.h                  |  1 +
 libgda/gda-sql-builder.h                      |  1 +
 libgda/handlers/gda-handler-bin.c             |  4 +-
 libgda/handlers/gda-handler-boolean.c         |  4 +-
 libgda/handlers/gda-handler-numerical.c       |  4 +-
 libgda/handlers/gda-handler-string.c          |  4 +-
 libgda/handlers/gda-handler-time.c            |  4 +-
 libgda/handlers/gda-handler-type.c            |  4 +-
 libgda/sqlite/gda-sqlite-handler-bin.c        |  4 +-
 libgda/sqlite/gda-sqlite-handler-boolean.c    |  4 +-
 providers/mysql/gda-mysql-handler-boolean.c   |  4 +-
 providers/postgres/gda-postgres-handler-bin.c |  4 +-
 20 files changed, 58 insertions(+), 95 deletions(-)
---
diff --git a/libgda/Gda-6.0.metadata b/libgda/Gda-6.0.metadata
index 2a29b2219..20ef63cf2 100644
--- a/libgda/Gda-6.0.metadata
+++ b/libgda/Gda-6.0.metadata
@@ -20,9 +20,6 @@ ServerOperation.get_value_at_path name="get_value_at"
 ServerOperation.op_type_to_string parent="Gda.ServerOperationType" name="to_string"
 ServerOperation.string_to_op_type parent="Gda.ServerOperationType" name="from_string"
 
-// Enable skiped objects
-ServerOperation.prepare_create_table_v skip=false
-
 // Set type
 ServerProvider.set_impl_functions skip=true // FIXME:
 
@@ -47,3 +44,4 @@ ServerProviderBase skip=true
 sql_statement_get_contents_infos skip=true
 SqlStatementContentsInfo skip=true
 
+
diff --git a/libgda/gda-data-handler.c b/libgda/gda-data-handler.c
index 4bce51f12..a50442edd 100644
--- a/libgda/gda-data-handler.c
+++ b/libgda/gda-data-handler.c
@@ -4,6 +4,7 @@
  * Copyright (C) 2009 Bas Driessen <bas driessen xobas com>
  * Copyright (C) 2010 David King <davidk openismus com>
  * Copyright (C) 2015 Corentin Noël <corentin elementary io>
+ * Copyright (C) 2018 Daniel Espinosa <esodan gmail com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -32,63 +33,30 @@
 static GRecMutex init_rmutex;
 #define MUTEX_LOCK() g_rec_mutex_lock(&init_rmutex)
 #define MUTEX_UNLOCK() g_rec_mutex_unlock(&init_rmutex)
-static void gda_data_handler_iface_init (gpointer g_class);
-
-GType
-gda_data_handler_get_type (void)
-{
-       static GType type = 0;
-
-       if (G_UNLIKELY (type == 0)) {
-               static const GTypeInfo info = {
-                       sizeof (GdaDataHandlerIface),
-                       (GBaseInitFunc) gda_data_handler_iface_init,
-                       (GBaseFinalizeFunc) NULL,
-                       (GClassInitFunc) NULL,
-                       NULL,
-                       NULL,
-                       0,
-                       0,
-                       (GInstanceInitFunc) NULL,
-                       0
-               };
-
-               MUTEX_LOCK();
-               if (type == 0) {
-                       type = g_type_register_static (G_TYPE_INTERFACE, "GdaDataHandler", &info, 0);
-                       g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
-               }
-               MUTEX_UNLOCK();
-       }
-       return type;
-}
+G_DEFINE_INTERFACE (GdaDataHandler, gda_data_handler, G_TYPE_OBJECT)
 
+char *gda_data_handler_get_sql_from_value_default (GdaDataHandler *dh, const GValue *value);
 
 static void
-gda_data_handler_iface_init (G_GNUC_UNUSED gpointer g_class)
-{
-       static gboolean initialized = FALSE;
-
-       MUTEX_LOCK();
-       if (! initialized) {
-               initialized = TRUE;
-       }
-       MUTEX_UNLOCK();
+gda_data_handler_default_init (GdaDataHandlerInterface *iface) {
+       iface->get_sql_from_value = gda_data_handler_get_sql_from_value_default;
 }
 
-static gboolean
-_accepts_g_type (GdaDataHandler *dh, GType type)
+char *
+gda_data_handler_get_sql_from_value_default (GdaDataHandler *dh, const GValue *value)
 {
-       if (GDA_DATA_HANDLER_GET_IFACE (dh)->accepts_g_type)
-               return (GDA_DATA_HANDLER_GET_IFACE (dh)->accepts_g_type) (dh, type);
-       else
-               return FALSE;
-}
+       g_return_val_if_fail (dh && GDA_IS_DATA_HANDLER (dh), NULL);
+
+       if (! value || gda_value_is_null (value))
+               return g_strdup ("NULL");
 
+       g_return_val_if_fail (gda_data_handler_accepts_g_type (dh, G_VALUE_TYPE (value)), NULL);
+       return NULL;
+}
 /**
  * gda_data_handler_get_sql_from_value:
  * @dh: an object which implements the #GdaDataHandler interface
- * @value: (allow-none): the value to be converted to a string, or %NULL
+ * @value: (nullable): the value to be converted to a string, or %NULL
  *
  * Creates a new string which is an SQL representation of the given value, the returned string
  * can be used directly in an SQL statement. For example if @value is a G_TYPE_STRING, then
@@ -106,22 +74,17 @@ gda_data_handler_get_sql_from_value (GdaDataHandler *dh, const GValue *value)
 {
        g_return_val_if_fail (dh && GDA_IS_DATA_HANDLER (dh), NULL);
 
-       if (! value || gda_value_is_null (value))
-               return g_strdup ("NULL");
-
-       g_return_val_if_fail (_accepts_g_type (dh, G_VALUE_TYPE (value)), NULL);
-
-       /* Calling the real function with value != NULL and not of type GDA_TYPE_NULL */
        if (GDA_DATA_HANDLER_GET_IFACE (dh)->get_sql_from_value)
                return (GDA_DATA_HANDLER_GET_IFACE (dh)->get_sql_from_value) (dh, value);
        
        return NULL;
 }
 
+
 /**
  * gda_data_handler_get_str_from_value:
  * @dh: an object which implements the #GdaDataHandler interface
- * @value: (allow-none): the value to be converted to a string, or %NULL
+ * @value: (nullable): the value to be converted to a string, or %NULL
  *
  * Creates a new string which is a "user friendly" representation of the given value
  * (in the user's locale, specially for the dates). If the value is 
@@ -139,7 +102,7 @@ gda_data_handler_get_str_from_value (GdaDataHandler *dh, const GValue *value)
        if (! value || gda_value_is_null (value))
                return g_strdup ("");
 
-       g_return_val_if_fail (_accepts_g_type (dh, G_VALUE_TYPE (value)), NULL);
+       g_return_val_if_fail (gda_data_handler_accepts_g_type (dh, G_VALUE_TYPE (value)), NULL);
 
        /* Calling the real function with value != NULL and not of type GDA_TYPE_NULL */
        if (GDA_DATA_HANDLER_GET_IFACE (dh)->get_str_from_value)
@@ -168,7 +131,7 @@ GValue *
 gda_data_handler_get_value_from_sql (GdaDataHandler *dh, const gchar *sql, GType type)
 {
        g_return_val_if_fail (dh && GDA_IS_DATA_HANDLER (dh), NULL);
-       g_return_val_if_fail (_accepts_g_type (dh, type), NULL);
+       g_return_val_if_fail (gda_data_handler_accepts_g_type (dh, type), NULL);
 
        if (!sql)
                return gda_value_new_null ();
@@ -183,7 +146,7 @@ gda_data_handler_get_value_from_sql (GdaDataHandler *dh, const gchar *sql, GType
 /**
  * gda_data_handler_get_value_from_str:
  * @dh: an object which implements the #GdaDataHandler interface
- * @str: (allow-none) (transfer none): a string or %NULL
+ * @str: (nullable) (transfer none): a string or %NULL
  * @type: a GType
  *
  * Creates a new GValue which represents the @str value given as argument. This is
@@ -202,7 +165,7 @@ GValue *
 gda_data_handler_get_value_from_str (GdaDataHandler *dh, const gchar *str, GType type)
 {
        g_return_val_if_fail (dh && GDA_IS_DATA_HANDLER (dh), NULL);
-       g_return_val_if_fail (_accepts_g_type (dh, type), NULL);
+       g_return_val_if_fail (gda_data_handler_accepts_g_type (dh, type), NULL);
 
        if (!str)
                return gda_value_new_null ();
@@ -228,13 +191,13 @@ gda_data_handler_get_value_from_str (GdaDataHandler *dh, const gchar *str, GType
  * Creates a new GValue which holds a sane initial value to be used if no value is specifically
  * provided. For example for a simple string, this would return a new value containing the "" string.
  *
- * Returns: (allow-none) (transfer full): the new #GValue, or %NULL if no such value can be created.
+ * Returns: (nullable) (transfer full): the new #GValue, or %NULL if no such value can be created.
  */
 GValue *
 gda_data_handler_get_sane_init_value (GdaDataHandler *dh, GType type)
 {
        g_return_val_if_fail (dh && GDA_IS_DATA_HANDLER (dh), NULL);
-       g_return_val_if_fail (_accepts_g_type (dh, type), NULL);
+       g_return_val_if_fail (gda_data_handler_accepts_g_type (dh, type), NULL);
 
        if (GDA_DATA_HANDLER_GET_IFACE (dh)->get_sane_init_value)
                return (GDA_DATA_HANDLER_GET_IFACE (dh)->get_sane_init_value) (dh, type);
@@ -255,7 +218,10 @@ gboolean
 gda_data_handler_accepts_g_type (GdaDataHandler *dh, GType type)
 {
        g_return_val_if_fail (GDA_IS_DATA_HANDLER (dh), FALSE);
-       return _accepts_g_type (dh, type);
+       if (GDA_DATA_HANDLER_GET_IFACE (dh)->accepts_g_type)
+               return (GDA_DATA_HANDLER_GET_IFACE (dh)->accepts_g_type) (dh, type);
+
+       return FALSE;
 }
 
 /**
diff --git a/libgda/gda-data-handler.h b/libgda/gda-data-handler.h
index 4cb0d1722..00583595c 100644
--- a/libgda/gda-data-handler.h
+++ b/libgda/gda-data-handler.h
@@ -2,6 +2,7 @@
  * Copyright (C) 2006 - 2013 Vivien Malerba <malerba gnome-db org>
  * Copyright (C) 2007 Murray Cumming <murrayc murrayc com>
  * Copyright (C) 2010 David King <davidk openismus com>
+ * Copyright (C) 2018 Daniel Espinosa <esodan gmail com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -30,13 +31,10 @@
 G_BEGIN_DECLS
 
 #define GDA_TYPE_DATA_HANDLER          (gda_data_handler_get_type())
-#define GDA_DATA_HANDLER(obj)          G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_DATA_HANDLER, 
GdaDataHandler)
-#define GDA_IS_DATA_HANDLER(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_DATA_HANDLER)
-#define GDA_DATA_HANDLER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GDA_TYPE_DATA_HANDLER, 
GdaDataHandlerIface))
-
+G_DECLARE_INTERFACE(GdaDataHandler, gda_data_handler, GDA, DATA_HANDLER, GObject)
 
 /* struct for the interface */
-struct _GdaDataHandlerIface
+struct _GdaDataHandlerInterface
 {
        GTypeInterface           g_iface;
 
@@ -76,8 +74,6 @@ struct _GdaDataHandlerIface
  */
 
 
-GType        gda_data_handler_get_type               (void) G_GNUC_CONST;
-
 /* Simple data manipulation */
 gchar         *gda_data_handler_get_sql_from_value     (GdaDataHandler *dh, const GValue *value);
 gchar         *gda_data_handler_get_str_from_value     (GdaDataHandler *dh, const GValue *value);
diff --git a/libgda/gda-decl.h b/libgda/gda-decl.h
index 9cfb2a965..d2fc5cc17 100644
--- a/libgda/gda-decl.h
+++ b/libgda/gda-decl.h
@@ -33,10 +33,7 @@ typedef struct _GdaConnectionClass   GdaConnectionClass;
 typedef struct _GdaConnectionEvent        GdaConnectionEvent;
 typedef struct _GdaConnectionEventClass   GdaConnectionEventClass;
 
-typedef struct _GdaDataHandler      GdaDataHandler;
-typedef struct _GdaDataHandlerIface GdaDataHandlerIface;
-
-typedef struct _GdaServerProvider        GdaServerProvider; 
+typedef struct _GdaServerProvider        GdaServerProvider;
 typedef struct _GdaServerProviderClass   GdaServerProviderClass;
 typedef struct _GdaServerProviderInfo    GdaServerProviderInfo;
 
diff --git a/libgda/gda-holder.h b/libgda/gda-holder.h
index c2ba2ce0e..636f92e4c 100644
--- a/libgda/gda-holder.h
+++ b/libgda/gda-holder.h
@@ -23,6 +23,7 @@
 #define __GDA_HOLDER_H_
 
 #include <libgda/gda-decl.h>
+#include <libgda/gda-data-handler.h>
 #include "gda-value.h"
 
 G_BEGIN_DECLS
diff --git a/libgda/gda-provider.h b/libgda/gda-provider.h
index cebec8ac9..e3d55d41d 100644
--- a/libgda/gda-provider.h
+++ b/libgda/gda-provider.h
@@ -20,6 +20,7 @@
 #include <glib-object.h>
 #include <libgda/gda-connection.h>
 #include <libgda/gda-quark-list.h>
+#include <libgda/gda-data-handler.h>
 
 #ifndef __GDA_PROVIDER_H__
 #define __GDA_PROVIDER_H__
diff --git a/libgda/gda-server-provider-extra.h b/libgda/gda-server-provider-extra.h
index fbf9d7e0d..936518735 100644
--- a/libgda/gda-server-provider-extra.h
+++ b/libgda/gda-server-provider-extra.h
@@ -27,6 +27,7 @@
 #include <libgda/gda-value.h>
 #include <libgda/gda-connection.h>
 #include <libgda/thread-wrapper/gda-worker.h>
+#include <libgda/gda-data-handler.h>
 
 G_BEGIN_DECLS
 
diff --git a/libgda/gda-server-provider-impl.h b/libgda/gda-server-provider-impl.h
index 7954931c0..efb6bf9e5 100644
--- a/libgda/gda-server-provider-impl.h
+++ b/libgda/gda-server-provider-impl.h
@@ -35,6 +35,7 @@
 #include <libgda/gda-meta-store.h>
 #include <libgda/gda-xa-transaction.h>
 #include <libgda/thread-wrapper/gda-worker.h>
+#include <libgda/gda-data-handler.h>
 
 G_BEGIN_DECLS
 
diff --git a/libgda/gda-server-provider.h b/libgda/gda-server-provider.h
index d182c4a99..e62e3f8fd 100644
--- a/libgda/gda-server-provider.h
+++ b/libgda/gda-server-provider.h
@@ -35,6 +35,7 @@
 #include <libgda/gda-meta-store.h>
 #include <libgda/gda-xa-transaction.h>
 #include <libgda/thread-wrapper/gda-worker.h>
+#include <libgda/gda-data-handler.h>
 
 G_BEGIN_DECLS
 
diff --git a/libgda/gda-sql-builder.h b/libgda/gda-sql-builder.h
index 91fcc77b5..536c21fb5 100644
--- a/libgda/gda-sql-builder.h
+++ b/libgda/gda-sql-builder.h
@@ -25,6 +25,7 @@
 
 #include <glib-object.h>
 #include <sql-parser/gda-sql-statement.h>
+#include <libgda/gda-data-handler.h>
 
 G_BEGIN_DECLS
 
diff --git a/libgda/handlers/gda-handler-bin.c b/libgda/handlers/gda-handler-bin.c
index 114568e3a..86f93632c 100644
--- a/libgda/handlers/gda-handler-bin.c
+++ b/libgda/handlers/gda-handler-bin.c
@@ -37,7 +37,7 @@ struct _GdaHandlerBin
        GType          *valid_g_types;
 };
 
-static void data_handler_iface_init (GdaDataHandlerIface *iface);
+static void data_handler_iface_init (GdaDataHandlerInterface *iface);
 
 G_DEFINE_TYPE_EXTENDED (GdaHandlerBin, gda_handler_bin, G_TYPE_OBJECT, 0,
                         G_IMPLEMENT_INTERFACE (GDA_TYPE_DATA_HANDLER, data_handler_iface_init))
@@ -219,7 +219,7 @@ gda_handler_bin_dispose (GObject   * object)
 }
 
 static void
-data_handler_iface_init (GdaDataHandlerIface *iface)
+data_handler_iface_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_handler_bin_get_sql_from_value;
        iface->get_str_from_value = gda_handler_bin_get_str_from_value;
diff --git a/libgda/handlers/gda-handler-boolean.c b/libgda/handlers/gda-handler-boolean.c
index cf3287d2a..748bf8199 100644
--- a/libgda/handlers/gda-handler-boolean.c
+++ b/libgda/handlers/gda-handler-boolean.c
@@ -31,7 +31,7 @@ struct _GdaHandlerBoolean
        GObject   parent_instance;
 };
 
-static void data_handler_iface_init (GdaDataHandlerIface *iface);
+static void data_handler_iface_init (GdaDataHandlerInterface *iface);
 
 G_DEFINE_TYPE_EXTENDED (GdaHandlerBoolean, gda_handler_boolean, G_TYPE_OBJECT, 0,
                         G_IMPLEMENT_INTERFACE (GDA_TYPE_DATA_HANDLER, data_handler_iface_init))
@@ -148,7 +148,7 @@ gda_handler_boolean_dispose (GObject *object)
 }
 
 static void
-data_handler_iface_init (GdaDataHandlerIface *iface)
+data_handler_iface_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_handler_boolean_get_sql_from_value;
        iface->get_str_from_value = gda_handler_boolean_get_str_from_value;
diff --git a/libgda/handlers/gda-handler-numerical.c b/libgda/handlers/gda-handler-numerical.c
index c5614abc1..476fdbe43 100644
--- a/libgda/handlers/gda-handler-numerical.c
+++ b/libgda/handlers/gda-handler-numerical.c
@@ -34,7 +34,7 @@ struct _GdaHandlerNumerical
        GType          *valid_g_types;
 };
 
-static void data_handler_iface_init (GdaDataHandlerIface *iface);
+static void data_handler_iface_init (GdaDataHandlerInterface *iface);
 
 G_DEFINE_TYPE_EXTENDED (GdaHandlerNumerical, gda_handler_numerical, G_TYPE_OBJECT, 0,
                         G_IMPLEMENT_INTERFACE (GDA_TYPE_DATA_HANDLER, data_handler_iface_init))
@@ -329,7 +329,7 @@ gda_handler_numerical_dispose (GObject *object)
 }
 
 static void
-data_handler_iface_init (GdaDataHandlerIface *iface)
+data_handler_iface_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_handler_numerical_get_sql_from_value;
        iface->get_str_from_value = gda_handler_numerical_get_str_from_value;
diff --git a/libgda/handlers/gda-handler-string.c b/libgda/handlers/gda-handler-string.c
index c8eb533e6..dea49ec49 100644
--- a/libgda/handlers/gda-handler-string.c
+++ b/libgda/handlers/gda-handler-string.c
@@ -36,7 +36,7 @@ struct _GdaHandlerString
   GdaConnection     *cnc;
 };
 
-static void data_handler_iface_init (GdaDataHandlerIface *iface);
+static void data_handler_iface_init (GdaDataHandlerInterface *iface);
 
 G_DEFINE_TYPE_EXTENDED (GdaHandlerString, gda_handler_string, G_TYPE_OBJECT, 0,
                         G_IMPLEMENT_INTERFACE (GDA_TYPE_DATA_HANDLER, data_handler_iface_init))
@@ -224,7 +224,7 @@ gda_handler_string_dispose (GObject   *object)
 }
 
 static void
-data_handler_iface_init (GdaDataHandlerIface *iface)
+data_handler_iface_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_handler_string_get_sql_from_value;
        iface->get_str_from_value = gda_handler_string_get_str_from_value;
diff --git a/libgda/handlers/gda-handler-time.c b/libgda/handlers/gda-handler-time.c
index f30b14d44..361726d67 100644
--- a/libgda/handlers/gda-handler-time.c
+++ b/libgda/handlers/gda-handler-time.c
@@ -61,7 +61,7 @@ struct _GdaHandlerTime
  * in file gdate.c
  */
 
-static void   data_handler_iface_init (GdaDataHandlerIface *iface);
+static void   data_handler_iface_init (GdaDataHandlerInterface *iface);
 static gchar *render_date_locale      (const GDate *date, LocaleSetting *locale);
 static void   handler_compute_locale  (GdaHandlerTime *hdl);
 
@@ -1147,7 +1147,7 @@ gda_handler_time_get_descr (GdaDataHandler *iface)
 }
 
 static void
-data_handler_iface_init (GdaDataHandlerIface *iface)
+data_handler_iface_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_handler_time_get_sql_from_value;
        iface->get_str_from_value = gda_handler_time_get_str_from_value;
diff --git a/libgda/handlers/gda-handler-type.c b/libgda/handlers/gda-handler-type.c
index 69fd37de6..21fbde238 100644
--- a/libgda/handlers/gda-handler-type.c
+++ b/libgda/handlers/gda-handler-type.c
@@ -31,7 +31,7 @@ struct _GdaHandlerType
        GObject   parent_instance;
 };
 
-static void data_handler_iface_init (GdaDataHandlerIface *iface);
+static void data_handler_iface_init (GdaDataHandlerInterface *iface);
 
 G_DEFINE_TYPE_EXTENDED (GdaHandlerType, gda_handler_type, G_TYPE_OBJECT, 0,
                         G_IMPLEMENT_INTERFACE (GDA_TYPE_DATA_HANDLER, data_handler_iface_init))
@@ -153,7 +153,7 @@ gda_handler_type_init (GdaHandlerType * hdl)
 }
 
 static void
-data_handler_iface_init (GdaDataHandlerIface *iface)
+data_handler_iface_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_handler_type_get_sql_from_value;
        iface->get_str_from_value = gda_handler_type_get_str_from_value;
diff --git a/libgda/sqlite/gda-sqlite-handler-bin.c b/libgda/sqlite/gda-sqlite-handler-bin.c
index d0282bb95..ed3c17a4f 100644
--- a/libgda/sqlite/gda-sqlite-handler-bin.c
+++ b/libgda/sqlite/gda-sqlite-handler-bin.c
@@ -33,7 +33,7 @@ static void gda_sqlite_handler_bin_dispose (GObject   * object);
 
 
 /* GdaDataHandler interface */
-static void         gda_sqlite_handler_bin_data_handler_init      (GdaDataHandlerIface *iface);
+static void         gda_sqlite_handler_bin_data_handler_init      (GdaDataHandlerInterface *iface);
 static gchar       *gda_sqlite_handler_bin_get_sql_from_value     (GdaDataHandler *dh, const GValue *value);
 static gchar       *gda_sqlite_handler_bin_get_str_from_value     (GdaDataHandler *dh, const GValue *value);
 static GValue      *gda_sqlite_handler_bin_get_value_from_sql     (GdaDataHandler *dh, const gchar *sql, 
@@ -88,7 +88,7 @@ _gda_sqlite_handler_bin_get_type (void)
 }
 
 static void
-gda_sqlite_handler_bin_data_handler_init (GdaDataHandlerIface *iface)
+gda_sqlite_handler_bin_data_handler_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_sqlite_handler_bin_get_sql_from_value;
        iface->get_str_from_value = gda_sqlite_handler_bin_get_str_from_value;
diff --git a/libgda/sqlite/gda-sqlite-handler-boolean.c b/libgda/sqlite/gda-sqlite-handler-boolean.c
index 6e86cd4f7..699fc4f91 100644
--- a/libgda/sqlite/gda-sqlite-handler-boolean.c
+++ b/libgda/sqlite/gda-sqlite-handler-boolean.c
@@ -28,7 +28,7 @@ static void gda_sqlite_handler_boolean_dispose (GObject   * object);
 
 
 /* GdaDataHandler interface */
-static void         gda_sqlite_handler_boolean_data_handler_init      (GdaDataHandlerIface *iface);
+static void         gda_sqlite_handler_boolean_data_handler_init      (GdaDataHandlerInterface *iface);
 static gchar       *gda_sqlite_handler_boolean_get_sql_from_value     (GdaDataHandler *dh, const GValue 
*value);
 static gchar       *gda_sqlite_handler_boolean_get_str_from_value     (GdaDataHandler *dh, const GValue 
*value);
 static GValue      *gda_sqlite_handler_boolean_get_value_from_sql     (GdaDataHandler *dh, const gchar *sql, 
@@ -86,7 +86,7 @@ _gda_sqlite_handler_boolean_get_type (void)
 }
 
 static void
-gda_sqlite_handler_boolean_data_handler_init (GdaDataHandlerIface *iface)
+gda_sqlite_handler_boolean_data_handler_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_sqlite_handler_boolean_get_sql_from_value;
        iface->get_str_from_value = gda_sqlite_handler_boolean_get_str_from_value;
diff --git a/providers/mysql/gda-mysql-handler-boolean.c b/providers/mysql/gda-mysql-handler-boolean.c
index da8c13d16..b8c2b7c90 100644
--- a/providers/mysql/gda-mysql-handler-boolean.c
+++ b/providers/mysql/gda-mysql-handler-boolean.c
@@ -28,7 +28,7 @@ static void gda_mysql_handler_boolean_dispose (GObject   * object);
 
 
 /* GdaDataHandler interface */
-static void         gda_mysql_handler_boolean_data_handler_init      (GdaDataHandlerIface *iface);
+static void         gda_mysql_handler_boolean_data_handler_init      (GdaDataHandlerInterface *iface);
 static gchar       *gda_mysql_handler_boolean_get_sql_from_value     (GdaDataHandler *dh, const GValue 
*value);
 static gchar       *gda_mysql_handler_boolean_get_str_from_value     (GdaDataHandler *dh, const GValue 
*value);
 static GValue      *gda_mysql_handler_boolean_get_value_from_sql     (GdaDataHandler *dh, const gchar *sql, 
@@ -86,7 +86,7 @@ gda_mysql_handler_boolean_get_type (void)
 }
 
 static void
-gda_mysql_handler_boolean_data_handler_init (GdaDataHandlerIface *iface)
+gda_mysql_handler_boolean_data_handler_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_mysql_handler_boolean_get_sql_from_value;
        iface->get_str_from_value = gda_mysql_handler_boolean_get_str_from_value;
diff --git a/providers/postgres/gda-postgres-handler-bin.c b/providers/postgres/gda-postgres-handler-bin.c
index 44a3f0e29..b8fd8091c 100644
--- a/providers/postgres/gda-postgres-handler-bin.c
+++ b/providers/postgres/gda-postgres-handler-bin.c
@@ -34,7 +34,7 @@ static void gda_postgres_handler_bin_dispose (GObject *object);
 
 
 /* GdaDataHandler interface */
-static void         gda_postgres_handler_bin_data_handler_init      (GdaDataHandlerIface *iface);
+static void         gda_postgres_handler_bin_data_handler_init      (GdaDataHandlerInterface *iface);
 static gchar       *gda_postgres_handler_bin_get_sql_from_value     (GdaDataHandler *dh, const GValue 
*value);
 static gchar       *gda_postgres_handler_bin_get_str_from_value     (GdaDataHandler *dh, const GValue 
*value);
 static GValue      *gda_postgres_handler_bin_get_value_from_sql     (GdaDataHandler *dh, const gchar *sql, 
@@ -89,7 +89,7 @@ gda_postgres_handler_bin_get_type (void)
 }
 
 static void
-gda_postgres_handler_bin_data_handler_init (GdaDataHandlerIface *iface)
+gda_postgres_handler_bin_data_handler_init (GdaDataHandlerInterface *iface)
 {
        iface->get_sql_from_value = gda_postgres_handler_bin_get_sql_from_value;
        iface->get_str_from_value = gda_postgres_handler_bin_get_str_from_value;


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