[libgda] Revert "sqilte-provider: using G_DECLARE for g_autoptr()"



commit 48dc676dc293ce3e3500f56f1b90fdfe83d3395a
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Sep 2 09:31:26 2018 -0500

    Revert "sqilte-provider: using G_DECLARE for g_autoptr()"
    
    This reverts commit 3825b01eab97eec972e26be2f0094f84ae3e8a26.

 libgda/sqlite/gda-sqlite-provider.h | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-provider.h b/libgda/sqlite/gda-sqlite-provider.h
index 820944e3c..24fb250e6 100644
--- a/libgda/sqlite/gda-sqlite-provider.h
+++ b/libgda/sqlite/gda-sqlite-provider.h
@@ -25,12 +25,18 @@
 
 #include <libgda/gda-server-provider.h>
 
-G_BEGIN_DECLS
-
 #define GDA_TYPE_SQLITE_PROVIDER            (gda_sqlite_provider_get_type())
+#define GDA_SQLITE_PROVIDER(obj)            (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_SQLITE_PROVIDER, 
GdaSqliteProvider))
+#define GDA_SQLITE_PROVIDER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_SQLITE_PROVIDER, 
GdaSqliteProviderClass))
+#define GDA_IS_SQLITE_PROVIDER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_SQLITE_PROVIDER))
+#define GDA_IS_SQLITE_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE_SQLITE_PROVIDER))
 
-G_DECLARE_DERIVABLE_TYPE(GdaSqliteProvider, gda_sqlite_provider, GDA, SQLITE_PROVIDER, GdaServerProvider)
+typedef struct _GdaSqliteProvider      GdaSqliteProvider;
+typedef struct _GdaSqliteProviderClass GdaSqliteProviderClass;
 
+struct _GdaSqliteProvider {
+       GdaServerProvider provider;
+};
 struct _GdaSqliteProviderClass {
        GdaServerProviderClass parent_class;
 
@@ -39,6 +45,10 @@ struct _GdaSqliteProviderClass {
        void (*_gda_reserved2) (void);
 };
 
+
+G_BEGIN_DECLS
+
+GType              gda_sqlite_provider_get_type (void) G_GNUC_CONST;
 G_END_DECLS
 
 #endif


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