[libgda] data-select: add gda-data-select-private.h header
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] data-select: add gda-data-select-private.h header
- Date: Sun, 17 Feb 2019 22:47:13 +0000 (UTC)
commit e9a881f36d7a8cd4c8340029c89c664a932d0d24
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Sun Feb 17 16:45:58 2019 -0600
data-select: add gda-data-select-private.h header
libgda/Makefile.am | 1 +
libgda/gda-data-select-extra.h | 5 ----
libgda/gda-data-select-private.h | 32 ++++++++++++++++++++++
libgda/meson.build | 3 +-
libgda/sqlite/gda-sqlite-recordset.c | 2 +-
providers/mysql/gda-mysql-recordset.c | 2 +-
providers/postgres/gda-postgres-recordset.c | 2 +-
.../skel-implementation/capi/gda-capi-recordset.c | 2 +-
providers/web/gda-web-recordset.c | 2 +-
9 files changed, 40 insertions(+), 11 deletions(-)
---
diff --git a/libgda/Makefile.am b/libgda/Makefile.am
index 9458c5605..a9c61488f 100644
--- a/libgda/Makefile.am
+++ b/libgda/Makefile.am
@@ -77,6 +77,7 @@ gda_headers = \
gda-data-access-wrapper.h \
gda-data-proxy.h \
gda-data-select.h \
+ gda-data-select-private.h \
gda-decl.h \
gda-enums.h \
gda-holder.h \
diff --git a/libgda/gda-data-select-extra.h b/libgda/gda-data-select-extra.h
index 12a25d04d..a4fea2194 100644
--- a/libgda/gda-data-select-extra.h
+++ b/libgda/gda-data-select-extra.h
@@ -60,11 +60,6 @@ GdaDataSelectInternals *_gda_data_select_internals_steal (GdaDataSelect *model);
void _gda_data_select_internals_paste (GdaDataSelect *model, GdaDataSelectInternals
*inter);
void _gda_data_select_internals_free (GdaDataSelectInternals *inter);
-GdaPStmt *_gda_data_select_get_prep_stmt (GdaDataSelect *model);
-gint _gda_data_select_get_nb_stored_rows (GdaDataSelect *model);
-gint _gda_data_select_get_advertized_nrows (GdaDataSelect *model);
-void _gda_data_select_set_advertized_nrows (GdaDataSelect *model, gint n);
-
G_END_DECLS
#endif
diff --git a/libgda/gda-data-select-private.h b/libgda/gda-data-select-private.h
new file mode 100644
index 000000000..85430af81
--- /dev/null
+++ b/libgda/gda-data-select-private.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2019 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
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GDA_DATA_SELECT_PRIVATE_H__
+#define __GDA_DATA_SELECT_PRIVATE_H__
+
+
+GdaPStmt *_gda_data_select_get_prep_stmt (GdaDataSelect *model);
+gint _gda_data_select_get_nb_stored_rows (GdaDataSelect *model);
+gint _gda_data_select_get_advertized_nrows (GdaDataSelect *model);
+void _gda_data_select_set_advertized_nrows (GdaDataSelect *model, gint n);
+
+
+G_END_DECLS
+
+#endif
diff --git a/libgda/meson.build b/libgda/meson.build
index f311d9edc..57db9387d 100644
--- a/libgda/meson.build
+++ b/libgda/meson.build
@@ -84,6 +84,7 @@ libgda_headers = files([
'gda-data-access-wrapper.h',
'gda-data-proxy.h',
'gda-data-select.h',
+ 'gda-data-select-private.h',
'gda-db-catalog.h',
'gda-db-table.h',
'gda-db-view.h',
@@ -547,4 +548,4 @@ ttwd = executable('test-connect',
],
install: false
)
-test('WorkerConnect', ttwd)
+test('WorkerConnect', ttwd)
\ No newline at end of file
diff --git a/libgda/sqlite/gda-sqlite-recordset.c b/libgda/sqlite/gda-sqlite-recordset.c
index 025640d08..fd18a2b84 100644
--- a/libgda/sqlite/gda-sqlite-recordset.c
+++ b/libgda/sqlite/gda-sqlite-recordset.c
@@ -36,7 +36,7 @@
#include "gda-sqlite-recordset.h"
#include "gda-sqlite-provider.h"
#include "gda-sqlite-blob-op.h"
-#include "gda-data-select-extra.h"
+#include <gda-data-select-private.h>
#include <libgda/gda-util.h>
#include <libgda/gda-connection-private.h>
diff --git a/providers/mysql/gda-mysql-recordset.c b/providers/mysql/gda-mysql-recordset.c
index 5fb6f1269..7d4e6bf3b 100644
--- a/providers/mysql/gda-mysql-recordset.c
+++ b/providers/mysql/gda-mysql-recordset.c
@@ -40,7 +40,7 @@
#include "gda-mysql-recordset.h"
#include "gda-mysql-provider.h"
#include "gda-mysql-util.h"
-#include "gda-data-select-extra.h"
+#include <gda-data-select-private.h>
#include <libgda/libgda-global-variables.h>
#ifdef HAVE_LOCALE_H
#include <locale.h>
diff --git a/providers/postgres/gda-postgres-recordset.c b/providers/postgres/gda-postgres-recordset.c
index 9030f49bb..7024b565c 100644
--- a/providers/postgres/gda-postgres-recordset.c
+++ b/providers/postgres/gda-postgres-recordset.c
@@ -41,7 +41,7 @@
#include "gda-postgres-provider.h"
#include "gda-postgres-blob-op.h"
#include "gda-postgres-util.h"
-#include "gda-data-select-extra.h"
+#include <gda-data-select-private.h>
#include <libgda/libgda-global-variables.h>
#ifdef HAVE_LOCALE_H
#include <locale.h>
diff --git a/providers/skel-implementation/capi/gda-capi-recordset.c
b/providers/skel-implementation/capi/gda-capi-recordset.c
index d811f8068..e1e05afc4 100644
--- a/providers/skel-implementation/capi/gda-capi-recordset.c
+++ b/providers/skel-implementation/capi/gda-capi-recordset.c
@@ -29,7 +29,7 @@
#include "gda-capi.h"
#include "gda-capi-recordset.h"
#include "gda-capi-provider.h"
-#include "gda-data-select-extra.h"
+#include <gda-data-select-private.h>
#include <libgda/gda-debug-macros.h>
#define _GDA_PSTMT(x) ((GdaPStmt*)(x))
diff --git a/providers/web/gda-web-recordset.c b/providers/web/gda-web-recordset.c
index 55a840d42..f54dc6d54 100644
--- a/providers/web/gda-web-recordset.c
+++ b/providers/web/gda-web-recordset.c
@@ -25,7 +25,7 @@
#include <libgda/gda-util.h>
#include <libgda/sql-parser/gda-sql-parser.h>
#include <libgda/gda-connection-private.h>
-#include <gda-data-select-extra.h>
+#include <gda-data-select-private.h>
#include "gda-web.h"
#include "gda-web-recordset.h"
#include "gda-web-provider.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]