sqliterk.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Tencent is pleased to support the open source community by making
  3. * WCDB available.
  4. *
  5. * Copyright (C) 2017 THL A29 Limited, a Tencent company.
  6. * All rights reserved.
  7. *
  8. * Licensed under the BSD 3-Clause License (the "License"); you may not use
  9. * this file except in compliance with the License. You may obtain a copy of
  10. * the License at
  11. *
  12. * https://opensource.org/licenses/BSD-3-Clause
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS,
  16. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. */
  20. #ifndef sqliterk_h
  21. #define sqliterk_h
  22. typedef struct sqliterk sqliterk;
  23. typedef struct sqliterk_cipher_conf sqliterk_cipher_conf;
  24. typedef struct sqliterk_notify sqliterk_notify;
  25. int sqliterkOpen(const char *path,
  26. const sqliterk_cipher_conf *cipher,
  27. sqliterk **rk);
  28. int sqliterkParse(sqliterk *rk);
  29. int sqliterkParsePage(sqliterk *rk, int pageno);
  30. int sqliterkParseMaster(sqliterk *rk);
  31. int sqliterkClose(sqliterk *rk);
  32. int sqliterkSetNotify(sqliterk *rk, sqliterk_notify notify);
  33. int sqliterkSetUserInfo(sqliterk *rk, void *userInfo);
  34. void *sqliterkGetUserInfo(sqliterk *rk);
  35. int sqliterkGetParsedPageCount(sqliterk *rk);
  36. int sqliterkGetValidPageCount(sqliterk *rk);
  37. int sqliterkGetPageCount(sqliterk *rk);
  38. unsigned int sqliterkGetIntegrity(sqliterk *rk);
  39. #endif /* sqliterk_h */