Skip to content
Snippets Groups Projects
Commit e3af361b authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[+] Added functions PyDapChainCellIdObject_str.

parent 26974b1b
No related branches found
No related tags found
1 merge request!73Features-5386 to develop
...@@ -386,6 +386,8 @@ typedef struct PyDapChainCellID{ ...@@ -386,6 +386,8 @@ typedef struct PyDapChainCellID{
dap_chain_cell_id_t cell_id; dap_chain_cell_id_t cell_id;
}PyDapChainCellIDObject; }PyDapChainCellIDObject;
PyObject *PyDapChainCellIdObject_str(PyObject *self);
static PyTypeObject DapChainCellIDObject_DapChainCellIDType = { static PyTypeObject DapChainCellIDObject_DapChainCellIDType = {
PyVarObject_HEAD_INIT(NULL, 0) PyVarObject_HEAD_INIT(NULL, 0)
"CellFrame.ChainCellID" , /* tp_name */ "CellFrame.ChainCellID" , /* tp_name */
...@@ -402,7 +404,7 @@ static PyTypeObject DapChainCellIDObject_DapChainCellIDType = { ...@@ -402,7 +404,7 @@ static PyTypeObject DapChainCellIDObject_DapChainCellIDType = {
0, /* tp_as_mapping */ 0, /* tp_as_mapping */
0, /* tp_hash */ 0, /* tp_hash */
0, /* tp_call */ 0, /* tp_call */
0, /* tp_str */ PyDapChainCellIdObject_str, /* tp_str */
0, /* tp_getattro */ 0, /* tp_getattro */
0, /* tp_setattro */ 0, /* tp_setattro */
0, /* tp_as_buffer */ 0, /* tp_as_buffer */
......
...@@ -4,6 +4,10 @@ PyObject *DapChainIdObject_str(PyObject *self){ ...@@ -4,6 +4,10 @@ PyObject *DapChainIdObject_str(PyObject *self){
return Py_BuildValue("s", dap_strdup_printf("0x%016"DAP_UINT64_FORMAT_x, ((PyDapChainIDObject*)self)->chain_id->uint64)); return Py_BuildValue("s", dap_strdup_printf("0x%016"DAP_UINT64_FORMAT_x, ((PyDapChainIDObject*)self)->chain_id->uint64));
} }
PyObject *PyDapChainCellIdObject_str(PyObject *self){
return Py_BuildValue("s", dap_strdup_printf("0x%016"DAP_UINT64_FORMAT_x, ((PyDapChainCellIDObject*)self)->cell_id.uint64));
}
PyObject *dap_chain_hash_slow_to_str_py(PyObject *self, PyObject *args){ PyObject *dap_chain_hash_slow_to_str_py(PyObject *self, PyObject *args){
PyObject *obj_hash_slow; PyObject *obj_hash_slow;
char *str; char *str;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment