aboutsummaryrefslogtreecommitdiff
path: root/sqlite3ext.h
diff options
context:
space:
mode:
authorSteffen <steffen.butzer@outlook.com>2016-05-14 11:53:28 +0200
committerSteffen <steffen.butzer@outlook.com>2016-05-14 11:53:28 +0200
commit5505c7c92e7621c80224ae7f11b480d6d5d6b415 (patch)
tree9b6a2586a9bec593fad1cadc2e71252eff7d76d6 /sqlite3ext.h
parentMerge pull request #302 from shaxbee/master (diff)
downloadgolite-5505c7c92e7621c80224ae7f11b480d6d5d6b415.tar.gz
golite-5505c7c92e7621c80224ae7f11b480d6d5d6b415.tar.xz
upgrade sqlite amalgamation to 3.12.2
Diffstat (limited to 'sqlite3ext.h')
-rw-r--r--sqlite3ext.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sqlite3ext.h b/sqlite3ext.h
index afb689a..f02f2c2 100644
--- a/sqlite3ext.h
+++ b/sqlite3ext.h
@@ -12,7 +12,7 @@
** This header file defines the SQLite interface for use by
** shared libraries that want to be imported as extensions into
** an SQLite instance. Shared libraries that intend to be loaded
-** as extensions by SQLite should #include this file instead of
+** as extensions by SQLite should #include this file instead of
** sqlite3.h.
*/
#ifndef _SQLITE3EXT_H_
@@ -279,6 +279,8 @@ struct sqlite3_api_routines {
int (*status64)(int,sqlite3_int64*,sqlite3_int64*,int);
int (*strlike)(const char*,const char*,unsigned int);
int (*db_cacheflush)(sqlite3*);
+ /* Version 3.12.0 and later */
+ int (*system_errno)(sqlite3*);
};
/*
@@ -522,17 +524,19 @@ struct sqlite3_api_routines {
#define sqlite3_status64 sqlite3_api->status64
#define sqlite3_strlike sqlite3_api->strlike
#define sqlite3_db_cacheflush sqlite3_api->db_cacheflush
+/* Version 3.12.0 and later */
+#define sqlite3_system_errno sqlite3_api->system_errno
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
- /* This case when the file really is being compiled as a loadable
+ /* This case when the file really is being compiled as a loadable
** extension */
# define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0;
# define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v;
# define SQLITE_EXTENSION_INIT3 \
extern const sqlite3_api_routines *sqlite3_api;
#else
- /* This case when the file is being statically linked into the
+ /* This case when the file is being statically linked into the
** application */
# define SQLITE_EXTENSION_INIT1 /*no-op*/
# define SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */