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

[+] Added initialize dap_chain_gdb and dap_chain_net

parent 2af835aa
No related branches found
No related tags found
1 merge request!5Urgently
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "wrapping_dap_chain_net_state.h" #include "wrapping_dap_chain_net_state.h"
// ============ // ============
#include "wrapping_http.h" #include "wrapping_http.h"
#include "wrapping_dap_enc_http.h" #include "wrapping_dap_enc_http.h"
#include "wrapping_dap_stream.h" #include "wrapping_dap_stream.h"
...@@ -46,6 +47,8 @@ ...@@ -46,6 +47,8 @@
#include "dap_stream_ch_chain_net.h" #include "dap_stream_ch_chain_net.h"
#include "dap_stream_ch_chain_net_srv.h" #include "dap_stream_ch_chain_net_srv.h"
#include "dap_enc_ks.h" #include "dap_enc_ks.h"
#include "dap_chain_gdb.h"
#include "libdap_chain_net_python.h"
#include "dap_common.h" #include "dap_common.h"
......
...@@ -251,6 +251,25 @@ static PyObject *python_cellframe_init(PyObject *self, PyObject *args){ ...@@ -251,6 +251,25 @@ static PyObject *python_cellframe_init(PyObject *self, PyObject *args){
return NULL; return NULL;
} }
} }
if (strcmp(c_value, "Client") == 0){
if (dap_client_init() != 0){
PyErr_SetString(CellFrame_error, "Failed to initialize Client module. ");
return NULL;
}
}
if (strcmp(c_value, "GDB") == 0){
if (dap_chain_gdb_init() != 0){
PyErr_SetString(CellFrame_error, "Failed to initialize GDB module. ");
return NULL;
}
}
if (strcmp(c_value, "Net") == 0){
if (dap_chain_net_init_py() != 0 ){
PyErr_SetString(CellFrame_error, "Failed to initialize chain net module. ");
return NULL;
}
}
// if (strcmp(c_value, "ENC") == 0){ // if (strcmp(c_value, "ENC") == 0){
// if (dap_enc_init()) // if (dap_enc_init())
......
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