Add SQLITE_API qualifiers to public API functions in header file sqlite3rbu.h.
FossilOrigin-Name: d8637badf63b90b650e9d6dc970c7e1ce46669ce8272f46f01fac9bd97c1b0fc
This commit is contained in:
parent
0c2e5cfda5
commit
f48d4ef8bc
@ -308,7 +308,7 @@ typedef struct sqlite3rbu sqlite3rbu;
|
|||||||
** not work out of the box with zipvfs. Refer to the comment describing
|
** not work out of the box with zipvfs. Refer to the comment describing
|
||||||
** the zipvfs_create_vfs() API below for details on using RBU with zipvfs.
|
** the zipvfs_create_vfs() API below for details on using RBU with zipvfs.
|
||||||
*/
|
*/
|
||||||
sqlite3rbu *sqlite3rbu_open(
|
SQLITE_API sqlite3rbu *sqlite3rbu_open(
|
||||||
const char *zTarget,
|
const char *zTarget,
|
||||||
const char *zRbu,
|
const char *zRbu,
|
||||||
const char *zState
|
const char *zState
|
||||||
@ -347,7 +347,7 @@ sqlite3rbu *sqlite3rbu_open(
|
|||||||
** a description of the complications associated with using RBU with
|
** a description of the complications associated with using RBU with
|
||||||
** zipvfs databases.
|
** zipvfs databases.
|
||||||
*/
|
*/
|
||||||
sqlite3rbu *sqlite3rbu_vacuum(
|
SQLITE_API sqlite3rbu *sqlite3rbu_vacuum(
|
||||||
const char *zTarget,
|
const char *zTarget,
|
||||||
const char *zState
|
const char *zState
|
||||||
);
|
);
|
||||||
@ -383,7 +383,7 @@ sqlite3rbu *sqlite3rbu_vacuum(
|
|||||||
** Database handles returned by this function remain valid until the next
|
** Database handles returned by this function remain valid until the next
|
||||||
** call to any sqlite3rbu_xxx() function other than sqlite3rbu_db().
|
** call to any sqlite3rbu_xxx() function other than sqlite3rbu_db().
|
||||||
*/
|
*/
|
||||||
sqlite3 *sqlite3rbu_db(sqlite3rbu*, int bRbu);
|
SQLITE_API sqlite3 *sqlite3rbu_db(sqlite3rbu*, int bRbu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Do some work towards applying the RBU update to the target db.
|
** Do some work towards applying the RBU update to the target db.
|
||||||
@ -397,7 +397,7 @@ sqlite3 *sqlite3rbu_db(sqlite3rbu*, int bRbu);
|
|||||||
** SQLITE_OK, all subsequent calls on the same RBU handle are no-ops
|
** SQLITE_OK, all subsequent calls on the same RBU handle are no-ops
|
||||||
** that immediately return the same value.
|
** that immediately return the same value.
|
||||||
*/
|
*/
|
||||||
int sqlite3rbu_step(sqlite3rbu *pRbu);
|
SQLITE_API int sqlite3rbu_step(sqlite3rbu *pRbu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Force RBU to save its state to disk.
|
** Force RBU to save its state to disk.
|
||||||
@ -409,7 +409,7 @@ int sqlite3rbu_step(sqlite3rbu *pRbu);
|
|||||||
**
|
**
|
||||||
** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
|
** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
|
||||||
*/
|
*/
|
||||||
int sqlite3rbu_savestate(sqlite3rbu *pRbu);
|
SQLITE_API int sqlite3rbu_savestate(sqlite3rbu *pRbu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Close an RBU handle.
|
** Close an RBU handle.
|
||||||
@ -429,14 +429,14 @@ int sqlite3rbu_savestate(sqlite3rbu *pRbu);
|
|||||||
** update has been partially applied, or SQLITE_DONE if it has been
|
** update has been partially applied, or SQLITE_DONE if it has been
|
||||||
** completely applied.
|
** completely applied.
|
||||||
*/
|
*/
|
||||||
int sqlite3rbu_close(sqlite3rbu *pRbu, char **pzErrmsg);
|
SQLITE_API int sqlite3rbu_close(sqlite3rbu *pRbu, char **pzErrmsg);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Return the total number of key-value operations (inserts, deletes or
|
** Return the total number of key-value operations (inserts, deletes or
|
||||||
** updates) that have been performed on the target database since the
|
** updates) that have been performed on the target database since the
|
||||||
** current RBU update was started.
|
** current RBU update was started.
|
||||||
*/
|
*/
|
||||||
sqlite3_int64 sqlite3rbu_progress(sqlite3rbu *pRbu);
|
SQLITE_API sqlite3_int64 sqlite3rbu_progress(sqlite3rbu *pRbu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Obtain permyriadage (permyriadage is to 10000 as percentage is to 100)
|
** Obtain permyriadage (permyriadage is to 10000 as percentage is to 100)
|
||||||
@ -478,7 +478,7 @@ sqlite3_int64 sqlite3rbu_progress(sqlite3rbu *pRbu);
|
|||||||
** table exists but is not correctly populated, the value of the *pnOne
|
** table exists but is not correctly populated, the value of the *pnOne
|
||||||
** output variable during stage 1 is undefined.
|
** output variable during stage 1 is undefined.
|
||||||
*/
|
*/
|
||||||
void sqlite3rbu_bp_progress(sqlite3rbu *pRbu, int *pnOne, int *pnTwo);
|
SQLITE_API void sqlite3rbu_bp_progress(sqlite3rbu *pRbu, int *pnOne, int*pnTwo);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Obtain an indication as to the current stage of an RBU update or vacuum.
|
** Obtain an indication as to the current stage of an RBU update or vacuum.
|
||||||
@ -516,7 +516,7 @@ void sqlite3rbu_bp_progress(sqlite3rbu *pRbu, int *pnOne, int *pnTwo);
|
|||||||
#define SQLITE_RBU_STATE_DONE 4
|
#define SQLITE_RBU_STATE_DONE 4
|
||||||
#define SQLITE_RBU_STATE_ERROR 5
|
#define SQLITE_RBU_STATE_ERROR 5
|
||||||
|
|
||||||
int sqlite3rbu_state(sqlite3rbu *pRbu);
|
SQLITE_API int sqlite3rbu_state(sqlite3rbu *pRbu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Create an RBU VFS named zName that accesses the underlying file-system
|
** Create an RBU VFS named zName that accesses the underlying file-system
|
||||||
@ -560,7 +560,7 @@ int sqlite3rbu_state(sqlite3rbu *pRbu);
|
|||||||
** file-system via "rbu" all the time, even if it only uses RBU functionality
|
** file-system via "rbu" all the time, even if it only uses RBU functionality
|
||||||
** occasionally.
|
** occasionally.
|
||||||
*/
|
*/
|
||||||
int sqlite3rbu_create_vfs(const char *zName, const char *zParent);
|
SQLITE_API int sqlite3rbu_create_vfs(const char *zName, const char *zParent);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Deregister and destroy an RBU vfs created by an earlier call to
|
** Deregister and destroy an RBU vfs created by an earlier call to
|
||||||
@ -570,7 +570,7 @@ int sqlite3rbu_create_vfs(const char *zName, const char *zParent);
|
|||||||
** before all database handles that use it have been closed, the results
|
** before all database handles that use it have been closed, the results
|
||||||
** are undefined.
|
** are undefined.
|
||||||
*/
|
*/
|
||||||
void sqlite3rbu_destroy_vfs(const char *zName);
|
SQLITE_API void sqlite3rbu_destroy_vfs(const char *zName);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* end of the 'extern "C"' block */
|
} /* end of the 'extern "C"' block */
|
||||||
|
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
|||||||
C Fix\ssome\sproblems\sin\sRBU\stest\scases.\sAlso\supdate\sRBU\ssource\scode\sto\sbetter\nhandle\sthe\strivial\scase\swhere\san\sRBU\supdate\sis\sapplied\sto\sa\sdatabase\szero\npages\sin\ssize.
|
C Add\sSQLITE_API\squalifiers\sto\spublic\sAPI\sfunctions\sin\sheader\sfile\ssqlite3rbu.h.
|
||||||
D 2017-08-03T15:43:55.425
|
D 2017-08-03T15:50:10.483
|
||||||
F Makefile.in d9873c9925917cca9990ee24be17eb9613a668012c85a343aef7e5536ae266e8
|
F Makefile.in d9873c9925917cca9990ee24be17eb9613a668012c85a343aef7e5536ae266e8
|
||||||
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
|
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
|
||||||
F Makefile.msc 02b469e9dcd5b7ee63fc1fb05babc174260ee4cfa4e0ef2e48c3c6801567a016
|
F Makefile.msc 02b469e9dcd5b7ee63fc1fb05babc174260ee4cfa4e0ef2e48c3c6801567a016
|
||||||
@ -318,7 +318,7 @@ F ext/rbu/rbusave.test 0f43b6686084f426ddd040b878426452fd2c2f48
|
|||||||
F ext/rbu/rbuvacuum.test ff357e9b556ca7ad4673da0ff7f244def919ff858e0f9f350d3e30fdd83a62a8
|
F ext/rbu/rbuvacuum.test ff357e9b556ca7ad4673da0ff7f244def919ff858e0f9f350d3e30fdd83a62a8
|
||||||
F ext/rbu/rbuvacuum2.test 2074ab14fe66e1c7e7210c62562650dcd215bbaa
|
F ext/rbu/rbuvacuum2.test 2074ab14fe66e1c7e7210c62562650dcd215bbaa
|
||||||
F ext/rbu/sqlite3rbu.c 920941a6ff7dbbea0970717c43662878fda5c37e43752de329f0fdd76680ab75
|
F ext/rbu/sqlite3rbu.c 920941a6ff7dbbea0970717c43662878fda5c37e43752de329f0fdd76680ab75
|
||||||
F ext/rbu/sqlite3rbu.h fc25e1fcd99b5c6d32b1b5b1c73122632e873ac89bd0be9bf646db362b7ce02c
|
F ext/rbu/sqlite3rbu.h 82c102e5ae41025e3b245d3d5944315f82811da85e2cd363a75caa97cbd0cd3e
|
||||||
F ext/rbu/test_rbu.c ec18cfc69a104309df23c359e3c80306c9a6bdd1d2c53c8b70ae158e9832dcd6
|
F ext/rbu/test_rbu.c ec18cfc69a104309df23c359e3c80306c9a6bdd1d2c53c8b70ae158e9832dcd6
|
||||||
F ext/rtree/README 6315c0d73ebf0ec40dedb5aa0e942bc8b54e3761
|
F ext/rtree/README 6315c0d73ebf0ec40dedb5aa0e942bc8b54e3761
|
||||||
F ext/rtree/rtree.c 4f1804b80ae06ddf7ff69192aacdceee283646dc6a328acb951f116147445212
|
F ext/rtree/rtree.c 4f1804b80ae06ddf7ff69192aacdceee283646dc6a328acb951f116147445212
|
||||||
@ -1640,7 +1640,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
|
|||||||
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
||||||
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
||||||
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
||||||
P 654935c7737f1a9e08fde9b220c543e86ff6e05910e2f08973a2f93ab2b3e028
|
P 7676b39bc120ae23da0c6a14452eb99a58901ee45c3d43b8beae426f9e4dc0c3
|
||||||
R 6c59535d4227be5c37e4b8d6380e9436
|
R f5e70735ad4d3e8c4157fb574788df7d
|
||||||
U dan
|
U dan
|
||||||
Z e7e622931a024e16c08994823e2aa148
|
Z 2dec7f5d3b8e5fc73ccd605255779b6d
|
||||||
|
@ -1 +1 @@
|
|||||||
7676b39bc120ae23da0c6a14452eb99a58901ee45c3d43b8beae426f9e4dc0c3
|
d8637badf63b90b650e9d6dc970c7e1ce46669ce8272f46f01fac9bd97c1b0fc
|
Loading…
x
Reference in New Issue
Block a user