Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: third_party/sqlite/src/src/os_unix.c

Issue 1310533005: [sqlite] Annotate Chromium-specific exposed functions with SQLITE_API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/src/src/os_unix.c
diff --git a/third_party/sqlite/src/src/os_unix.c b/third_party/sqlite/src/src/os_unix.c
index 1624f6a2ce220925271aab83826f0ed73219fa39..75b71dce780b1ed91fd055a6fb6b93bfc9090cb5 100644
--- a/third_party/sqlite/src/src/os_unix.c
+++ b/third_party/sqlite/src/src/os_unix.c
@@ -5623,10 +5623,12 @@ static int findCreateFileMode(
/*
** Initializes a unixFile structure with zeros.
*/
+CHROMIUM_SQLITE_API
void chromium_sqlite3_initialize_unix_sqlite3_file(sqlite3_file* file) {
memset(file, 0, sizeof(unixFile));
}
+CHROMIUM_SQLITE_API
int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs,
int fd,
int dirfd,
@@ -5645,6 +5647,7 @@ int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs,
** If a reusable file descriptor is not found, and a new UnixUnusedFd cannot
** be allocated, SQLITE_NOMEM is returned. Otherwise, SQLITE_OK is returned.
*/
+CHROMIUM_SQLITE_API
int chromium_sqlite3_get_reusable_file_handle(sqlite3_file* file,
const char* fileName,
int flags,
@@ -5669,6 +5672,7 @@ int chromium_sqlite3_get_reusable_file_handle(sqlite3_file* file,
/*
** Marks 'fd' as the unused file descriptor for 'pFile'.
*/
+CHROMIUM_SQLITE_API
void chromium_sqlite3_update_reusable_file_handle(sqlite3_file* file,
int fd,
int flags) {
@@ -5682,6 +5686,7 @@ void chromium_sqlite3_update_reusable_file_handle(sqlite3_file* file,
/*
** Destroys pFile's field that keeps track of the unused file descriptor.
*/
+CHROMIUM_SQLITE_API
void chromium_sqlite3_destroy_reusable_file_handle(sqlite3_file* file) {
unixFile* unixSQLite3File = (unixFile*)file;
sqlite3_free(unixSQLite3File->pUnused);
« no previous file with comments | « third_party/sqlite/patches/0018-backport-Fix-collation-dequoting.patch ('k') | third_party/sqlite/src/src/os_win.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698