mirror of
https://github.com/pocketpy/pocketpy
synced 2026-08-05 05:37:10 +08:00
20 lines
501 B
C
20 lines
501 B
C
#pragma once
|
|
|
|
#include "mpack.h"
|
|
#include "pocketpy.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef bool (*is_mpack_ext_t)(py_Type type);
|
|
typedef bool (*py_to_mpack_ext_t)(py_Ref object, mpack_writer_t* writer);
|
|
typedef bool (*mpack_to_py_ext_t)(py_StackRef tmp, mpack_node_t node);
|
|
|
|
void mpack_config_exttype_callbacks(is_mpack_ext_t is_ext,
|
|
py_to_mpack_ext_t to_mpack,
|
|
mpack_to_py_ext_t to_py);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |