[libgda/LIBGDA_4.2] Import sqlite3_create_collation() when loading SQLite shared library
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] Import sqlite3_create_collation() when loading SQLite shared library
- Date: Mon, 30 May 2011 19:17:43 +0000 (UTC)
commit cb083614dafe61cd92d98bbd310483833fb9ed2f
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon May 30 21:16:09 2011 +0200
Import sqlite3_create_collation() when loading SQLite shared library
libgda/sqlite/gda-symbols-util.c | 5 ++++-
libgda/sqlite/gda-symbols-util.h | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libgda/sqlite/gda-symbols-util.c b/libgda/sqlite/gda-symbols-util.c
index 1de65df..f66ac7e 100644
--- a/libgda/sqlite/gda-symbols-util.c
+++ b/libgda/sqlite/gda-symbols-util.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 The GNOME Foundation.
+ * Copyright (C) 2010 - 2011 The GNOME Foundation.
*
* AUTHORS:
* Vivien Malerba <malerba gnome-db org>
@@ -284,6 +284,9 @@ load_symbols (GModule *module)
s3r->sqlite3_key = NULL;
if (! g_module_symbol (module, "sqlite3_rekey", (gpointer*) &(s3r->sqlite3_key)))
s3r->sqlite3_rekey = NULL;
+
+ if (! g_module_symbol (module, "sqlite3_create_collation", (gpointer*) &(s3r->sqlite3_create_collation)))
+ s3r->sqlite3_rekey = NULL;
return;
onerror:
diff --git a/libgda/sqlite/gda-symbols-util.h b/libgda/sqlite/gda-symbols-util.h
index f26b646..b22d4f2 100644
--- a/libgda/sqlite/gda-symbols-util.h
+++ b/libgda/sqlite/gda-symbols-util.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 The GNOME Foundation.
+ * Copyright (C) 2010 - 2011 The GNOME Foundation.
*
* AUTHORS:
* Vivien Malerba <malerba gnome-db org>
@@ -111,6 +111,8 @@ typedef struct {
int (*sqlite3_key)(sqlite3 *, const void *, int);
int (*sqlite3_rekey)(sqlite3 *, const void *, int);
+
+ int (*sqlite3_create_collation) (sqlite3*, const char *, int, void*, int(*xCompare)(void*,int,const void*,int,const void*));
} Sqlite3ApiRoutines;
extern Sqlite3ApiRoutines *s3r;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]