Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-cellframe
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
python-cellframe
Commits
8b3c67ce
Commit
8b3c67ce
authored
5 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
[+] Added initialize dap_chain_gdb and dap_chain_net
parent
2af835aa
No related branches found
No related tags found
1 merge request
!5
Urgently
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/python-cellframe.h
+3
-0
3 additions, 0 deletions
include/python-cellframe.h
src/python-cellframe.c
+19
-0
19 additions, 0 deletions
src/python-cellframe.c
with
22 additions
and
0 deletions
include/python-cellframe.h
+
3
−
0
View file @
8b3c67ce
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
src/python-cellframe.c
+
19
−
0
View file @
8b3c67ce
...
@@ -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())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment