diff options
Diffstat (limited to 'sql/proxy.cc')
-rw-r--r-- | sql/proxy.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sql/proxy.cc b/sql/proxy.cc new file mode 100644 index 0000000..5104812 --- /dev/null +++ b/sql/proxy.cc @@ -0,0 +1,28 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "sql/proxy.h" + +namespace sql { + +int sqlite3_create_function_v2( + sqlite3 *db, + const char *zFunctionName, + int nArg, + int eTextRep, + void *pApp, + void (*xFunc)(sqlite3_context*,int,sqlite3_value**), + void (*xStep)(sqlite3_context*,int,sqlite3_value**), + void (*xFinal)(sqlite3_context*), + void (*xDestroy)(void*)) { + return ::sqlite3_create_function_v2( + db, zFunctionName, nArg, eTextRep, pApp, + xFunc, xStep, xFinal, xDestroy); +} + +void *sqlite3_commit_hook(sqlite3* db, int(*func)(void*), void* arg) { + return ::sqlite3_commit_hook(db, func, arg); +} + +} // namespace sql |