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

[+] Added wrapping for function dap_chain_cell_load.

parent ddbdc4af
No related branches found
No related tags found
1 merge request!26Support 3689
......@@ -2,6 +2,7 @@
#define _WRAPPING_DAP_CHAIN_CELL_
#include "Python.h"
#include "dap_chain_cell.h"
#include "libdap-chain-python.h"
#ifdef __cplusplus
extern "C" {
......
......@@ -11,8 +11,12 @@ PyObject *DapChainCellObject_create(PyTypeObject *type_object, PyObject *args, P
}
PyObject *dap_chain_cell_load_py(PyObject *self, PyObject *args){
//TODO
return NULL;
PyObject *obj_chain;
const char *cell_file_path;
if (!PyArg_ParseTuple(args, "O|s", &obj_chain, &cell_file_path))
return NULL;
int res = dap_chain_cell_load(((PyDapChainObject*)obj_chain)->chain_t, cell_file_path);
return PyLong_FromLong(res);
}
PyObject *dap_chain_cell_file_update_py(PyObject *self, PyObject *args){
int res = dap_chain_cell_file_update(((PyDapChainCellObject*)self)->cell);
......
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