[libgda] Maintain API/ABI regarding gda_sql_error_type_get_type()
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Maintain API/ABI regarding gda_sql_error_type_get_type()
- Date: Wed, 24 Mar 2010 14:36:28 +0000 (UTC)
commit 1d93f5ddd74765b18a0d510eca822aad460ff671
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Mar 24 15:35:45 2010 +0100
Maintain API/ABI regarding gda_sql_error_type_get_type()
which has been replaced by gda_sql_error_get_type()
in commit cf068a1eb3611eea89014514fcfec1267f74d2b0
libgda/libgda.symbols | 1 +
libgda/sql-parser/Makefile.am | 5 ++++-
.../sql-parser/gda-sql-parser-enum-types.c.KEEPAPI | 7 +++++++
.../sql-parser/gda-sql-parser-enum-types.h.KEEPAPI | 9 +++++++++
4 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/libgda/libgda.symbols b/libgda/libgda.symbols
index 65c919d..fb3f4c6 100644
--- a/libgda/libgda.symbols
+++ b/libgda/libgda.symbols
@@ -612,6 +612,7 @@
gda_sql_delimiterAlloc
gda_sql_delimiterFree
gda_sql_delimiterTrace
+ gda_sql_error_get_type
gda_sql_error_quark
gda_sql_error_type_get_type
gda_sql_expr_copy
diff --git a/libgda/sql-parser/Makefile.am b/libgda/sql-parser/Makefile.am
index f6055d1..95a3ae2 100644
--- a/libgda/sql-parser/Makefile.am
+++ b/libgda/sql-parser/Makefile.am
@@ -49,6 +49,7 @@ s-enum-types-h: @REBUILD@ $(libgda_sql_parser_headers) Makefile
$(libgda_sql_parser_headers)) > tmp-gda-enum-types.h \
&& (cmp -s tmp-gda-enum-types.h gda-sql-parser-enum-types.h || cp tmp-gda-enum-types.h gda-sql-parser-enum-types.h ) \
&& rm -f tmp-gda-enum-types.h \
+ && cat gda-sql-parser-enum-types.h.KEEPAPI >> gda-sql-parser-enum-types.h \
&& echo timestamp > $(@F)
gda-sql-parser-enum-types.c: s-enum-types-c
@@ -66,6 +67,7 @@ s-enum-types-c: @REBUILD@ $(libgda_sql_parser_headers) Makefile
$(libgda_sql_parser_headers)) > tmp-gda-enum-types.c \
&& (cmp -s tmp-gda-enum-types.c gda-sql-parser-enum-types.c || cp tmp-gda-enum-types.c gda-sql-parser-enum-types.c ) \
&& rm -f tmp-gda-enum-types.c \
+ && cat gda-sql-parser-enum-types.c.KEEPAPI >> gda-sql-parser-enum-types.c \
&& echo timestamp > $(@F)
# Generate the enums source code, with glib-mkenums:
@@ -100,7 +102,8 @@ libgda_sql_parser_4_0_la_SOURCES = \
gda-statement-struct-unknown.c \
gda-statement-struct-util.c
-EXTRA_DIST= parser.y delimiter.y lemon.c lempar.c gen_def.c parser_tokens.h
+EXTRA_DIST= parser.y delimiter.y lemon.c lempar.c gen_def.c parser_tokens.h \
+ gda-sql-parser-enum-types.c.KEEPAPI gda-sql-parser-enum-types.h.KEEPAPI
CLEANFILES = parser.h parser.c parser.out delimiter.h delimiter.c delimiter.out token_types.h \
lemon$(EXEEXT_FOR_BUILD) gen_def$(EXEEXT_FOR_BUILD) \
diff --git a/libgda/sql-parser/gda-sql-parser-enum-types.c.KEEPAPI b/libgda/sql-parser/gda-sql-parser-enum-types.c.KEEPAPI
new file mode 100644
index 0000000..3af12a2
--- /dev/null
+++ b/libgda/sql-parser/gda-sql-parser-enum-types.c.KEEPAPI
@@ -0,0 +1,7 @@
+/* Content designed to maitain API/ABI */
+
+GType
+gda_sql_error_type_get_type (void)
+{
+ return gda_sql_error_get_type ();
+}
\ No newline at end of file
diff --git a/libgda/sql-parser/gda-sql-parser-enum-types.h.KEEPAPI b/libgda/sql-parser/gda-sql-parser-enum-types.h.KEEPAPI
new file mode 100644
index 0000000..51ca494
--- /dev/null
+++ b/libgda/sql-parser/gda-sql-parser-enum-types.h.KEEPAPI
@@ -0,0 +1,9 @@
+/* Content designed to maitain API/ABI */
+
+#ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__
+#define __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__
+
+GType gda_sql_error_type_get_type (void);
+#define GDA_SQL_PARSER_TYPE_SQL_ERROR_TYPE (gda_sql_error_type_get_type())
+
+#endif
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]