mpack1.h 501 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "mpack.h"
  3. #include "pocketpy.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef bool (*is_mpack_ext_t)(py_Type type);
  8. typedef bool (*py_to_mpack_ext_t)(py_Ref object, mpack_writer_t* writer);
  9. typedef bool (*mpack_to_py_ext_t)(py_StackRef tmp, mpack_node_t node);
  10. void mpack_config_exttype_callbacks(is_mpack_ext_t is_ext,
  11. py_to_mpack_ext_t to_mpack,
  12. mpack_to_py_ext_t to_py);
  13. #ifdef __cplusplus
  14. }
  15. #endif