191ad9d8eSopenharmony_ci/* 291ad9d8eSopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd. 391ad9d8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 491ad9d8eSopenharmony_ci * you may not use this file except in compliance with the License. 591ad9d8eSopenharmony_ci * You may obtain a copy of the License at 691ad9d8eSopenharmony_ci * 791ad9d8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 891ad9d8eSopenharmony_ci * 991ad9d8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1091ad9d8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1191ad9d8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1291ad9d8eSopenharmony_ci * See the License for the specific language governing permissions and 1391ad9d8eSopenharmony_ci * limitations under the License. 1491ad9d8eSopenharmony_ci */ 1591ad9d8eSopenharmony_ci 1691ad9d8eSopenharmony_ci#ifndef SQLITE3SYM_H 1791ad9d8eSopenharmony_ci#define SQLITE3SYM_H 1891ad9d8eSopenharmony_ci 1991ad9d8eSopenharmony_ci#define SQLITE3_EXPORT_SYMBOLS 2091ad9d8eSopenharmony_ci#define SQLITE_OMIT_LOAD_EXTENSION 2191ad9d8eSopenharmony_ci 2291ad9d8eSopenharmony_ci// We extend the original purpose of the "sqlite3ext.h". 2391ad9d8eSopenharmony_ci#include "sqlite3ext.h" 2491ad9d8eSopenharmony_ci 2591ad9d8eSopenharmony_cistruct sqlite3_api_routines_hw { 2691ad9d8eSopenharmony_ci int (*initialize)(); 2791ad9d8eSopenharmony_ci int (*config)(int,...); 2891ad9d8eSopenharmony_ci int (*key)(sqlite3*,const void*,int); 2991ad9d8eSopenharmony_ci int (*key_v2)(sqlite3*,const char*,const void*,int); 3091ad9d8eSopenharmony_ci int (*rekey)(sqlite3*,const void*,int); 3191ad9d8eSopenharmony_ci int (*rekey_v2)(sqlite3*,const char*,const void*,int); 3291ad9d8eSopenharmony_ci}; 3391ad9d8eSopenharmony_ci 3491ad9d8eSopenharmony_ciextern const struct sqlite3_api_routines_hw *sqlite3_export_hw_symbols; 3591ad9d8eSopenharmony_ci#define sqlite3_initialize sqlite3_export_hw_symbols->initialize 3691ad9d8eSopenharmony_ci#define sqlite3_config sqlite3_export_hw_symbols->config 3791ad9d8eSopenharmony_ci#define sqlite3_key sqlite3_export_hw_symbols->key 3891ad9d8eSopenharmony_ci#define sqlite3_key_v2 sqlite3_export_hw_symbols->key_v2 3991ad9d8eSopenharmony_ci#define sqlite3_rekey sqlite3_export_hw_symbols->rekey 4091ad9d8eSopenharmony_ci#define sqlite3_rekey_v2 sqlite3_export_hw_symbols->rekey_v2 4191ad9d8eSopenharmony_ci 4291ad9d8eSopenharmony_ci#endif 43