diff --git a/include/wrapping_dap_chain_common_objects.h b/include/wrapping_dap_chain_common_objects.h index 23e9df37d54a26aac9db693c34acbcdd20225d32..12bc3fae5059b96da90154053cdf898a4be11449 100644 --- a/include/wrapping_dap_chain_common_objects.h +++ b/include/wrapping_dap_chain_common_objects.h @@ -109,163 +109,12 @@ static PyTypeObject DapChainCellIdObject_DapChainCellIdObjectType = { /*-------------------------------*/ -/* DAP chain Addr */ - -typedef struct PyDapChainNodeAddr{ - PyObject_HEAD - dap_chain_node_addr_t *node_addr; -}PyDapChainNodeAddrObject; - -static PyTypeObject DapChainNodeAddrObject_DapChainNodeAddrObjectType = { - PyVarObject_HEAD_INIT(NULL, 0) - "CellFrame.Chain.NodeAddr", /* tp_name */ - sizeof(PyDapChainNodeAddrObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - 0, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_reserved */ - 0, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - 0, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | - Py_TPFLAGS_BASETYPE, /* tp_flags */ - "Chain node addr object", /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - PyType_GenericNew, /* tp_new */ -}; - -/*-------------------------------*/ typedef struct PyDapChainNodeRole{ PyObject_HEAD dap_chain_node_role_t *node_role; }PyDapChainNodeRoleObject; -/* DAP Chain Net ID */ - -typedef struct PyDapChainNetId{ - PyObject_HEAD - dap_chain_net_id_t net_id; -}PyDapChainNetIdObject; - -static PyTypeObject DapChainNetIdObject_DapChainNetIdObjectType = { - PyVarObject_HEAD_INIT(NULL, 0) - "CellFrame.Chain.NetID", /* tp_name */ - sizeof(PyDapChainNetIdObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - 0, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_reserved */ - 0, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - 0, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | - Py_TPFLAGS_BASETYPE, /* tp_flags */ - "Chain net id object", /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - PyType_GenericNew, /* tp_new */ -}; - -/* ------------------------------- */ - -/* DAP chain Hash Slow Object */ -typedef struct PyDapChainHashSlow{ - PyObject_HEAD - dap_chain_hash_slow_t *hash_slow; -}PyDapChainHashSlowObject; - -static PyTypeObject DapChainHashSlowObject_DapChainHashSlowObjectType = { - PyVarObject_HEAD_INIT(NULL, 0) - "CellFrame.Chain.HashSlow", /* tp_name */ - sizeof(PyDapChainHashSlowObject),/* tp_basicsize */ - 0, /* tp_itemsize */ - 0, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_reserved */ - 0, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - 0, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | - Py_TPFLAGS_BASETYPE, /* tp_flags */ - "Chain hash slow object", /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - PyType_GenericNew, /* tp_new */ -}; - - -/* ---------------------------------- */ /* DAP chain hash fast object */ typedef struct PyDapChainHashFast{