wrappers.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. Copyright (c) 2020 David Crawshaw <david@zentus.com>
  3. Permission to use, copy, modify, and distribute this software for any
  4. purpose with or without fee is hereby granted, provided that the above
  5. copyright notice and this permission notice appear in all copies.
  6. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  7. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  8. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  9. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  10. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  11. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  12. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  13. */
  14. #ifndef WRAPPERS_H
  15. #define WRAPPERS_H
  16. /* cfree wraps free to fix https://github.com/crawshaw/sqlite/issues/60 */
  17. void cfree(void *p);
  18. int c_strm_w_tramp(void*, const void*, int);
  19. int c_strm_r_tramp(void*, const void*, int*);
  20. int c_xapply_conflict_tramp(void*, int, sqlite3_changeset_iter*);
  21. int c_xapply_filter_tramp(void*, const char*);
  22. void c_log_fn(void*, int, char*);
  23. int c_auth_tramp(void*, int, const char*, const char*, const char*, const char*);
  24. void c_func_tramp(sqlite3_context*, int, sqlite3_value**);
  25. void c_step_tramp(sqlite3_context*, int, sqlite3_value**);
  26. void c_final_tramp(sqlite3_context*);
  27. void c_destroy_tramp(void*);
  28. int c_goBusyHandlerCallback(void*, int);
  29. #endif // WRAPPERS_H