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.
9 int sqlite3_create_function_v2(
11 const char *zFunctionName
,
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
);
24 void *sqlite3_commit_hook(sqlite3
* db
, int(*func
)(void*), void* arg
) {
25 return ::sqlite3_commit_hook(db
, func
, arg
);