OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "sql/proxy.h" |
| 6 |
| 7 namespace sql { |
| 8 |
| 9 int sqlite3_create_function_v2( |
| 10 sqlite3 *db, |
| 11 const char *zFunctionName, |
| 12 int nArg, |
| 13 int eTextRep, |
| 14 void *pApp, |
| 15 void (*xFunc)(sqlite3_context*,int,sqlite3_value**), |
| 16 void (*xStep)(sqlite3_context*,int,sqlite3_value**), |
| 17 void (*xFinal)(sqlite3_context*), |
| 18 void (*xDestroy)(void*)) { |
| 19 return ::sqlite3_create_function_v2( |
| 20 db, zFunctionName, nArg, eTextRep, pApp, |
| 21 xFunc, xStep, xFinal, xDestroy); |
| 22 } |
| 23 |
| 24 void *sqlite3_commit_hook(sqlite3* db, int(*func)(void*), void* arg) { |
| 25 return ::sqlite3_commit_hook(db, func, arg); |
| 26 } |
| 27 |
| 28 } // namespace sql |
OLD | NEW |