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
3
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
Compare revisions
17a0569e1c1d73cc7c9a75d152eb38d4c3a93586 to 5f7f50045b26904da1cce15ab349c97d70e767bb
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
cellframe/python-cellframe
Select target project
No results found
5f7f50045b26904da1cce15ab349c97d70e767bb
Select Git revision
Swap
Target
cellframe/python-cellframe
Select target project
cellframe/python-cellframe
1 result
17a0569e1c1d73cc7c9a75d152eb38d4c3a93586
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
[-] Removed some useless logs
· 4556354b
Dmitriy A. Gerasimov
authored
4 years ago
4556354b
[*] Changed signature
· 5f7f5004
Dmitriy A. Gerasimov
authored
4 years ago
5f7f5004
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/cellframe-sdk/net/src/wrapping_dap_chain_net_node_client.c
+10
-4
10 additions, 4 deletions
...ellframe-sdk/net/src/wrapping_dap_chain_net_node_client.c
modules/plugins/src/dap_chain_plugins.c
+1
-2
1 addition, 2 deletions
modules/plugins/src/dap_chain_plugins.c
with
11 additions
and
6 deletions
modules/cellframe-sdk/net/src/wrapping_dap_chain_net_node_client.c
View file @
5f7f5004
...
@@ -8,25 +8,31 @@ void dap_chain_node_client_deinit_py(void){
...
@@ -8,25 +8,31 @@ void dap_chain_node_client_deinit_py(void){
}
}
PyObject
*
dap_chain_client_connect_py
(
PyObject
*
self
,
PyObject
*
args
){
PyObject
*
dap_chain_client_connect_py
(
PyObject
*
self
,
PyObject
*
args
){
PyObject
*
obj_net
;
PyObject
*
obj_node_info
;
PyObject
*
obj_node_info
;
const
char
*
active_channels
;
const
char
*
active_channels
;
if
(
!
PyArg_ParseTuple
(
args
,
"O|
s"
,
&
obj_node_info
,
&
active_channels
))
if
(
!
PyArg_ParseTuple
(
args
,
"O|
O|s"
,
&
obj_net
,
&
obj_node_info
,
&
active_channels
))
return
NULL
;
return
NULL
;
PyObject
*
obj_node_client
=
_PyObject_New
(
&
DapChainNodeClientObject_DapChainNodeClientObjectType
);
PyObject
*
obj_node_client
=
_PyObject_New
(
&
DapChainNodeClientObject_DapChainNodeClientObjectType
);
((
PyDapChainNodeClientObject
*
)
obj_node_client
)
->
node_client
=
dap_chain_client_connect
(
((
PyDapChainNodeClientObject
*
)
obj_node_client
)
->
node_client
=
dap_chain_node_client_connect_channels
(
((
PyDapChainNetObject
*
)
obj_net
)
->
chain_net
,
((
PyDapChainNodeInfoObject
*
)
obj_node_info
)
->
node_info
,
active_channels
);
((
PyDapChainNodeInfoObject
*
)
obj_node_info
)
->
node_info
,
active_channels
);
return
Py_BuildValue
(
"O"
,
obj_node_client
);
return
Py_BuildValue
(
"O"
,
obj_node_client
);
}
}
PyObject
*
dap_chain_node_client_connect_py
(
PyObject
*
self
,
PyObject
*
args
){
PyObject
*
dap_chain_node_client_connect_py
(
PyObject
*
self
,
PyObject
*
args
){
if
(
self
!=
NULL
){
if
(
self
!=
NULL
){
PyErr_SetString
(
PyExc_SyntaxWarning
,
"This is method called statically"
);
PyErr_SetString
(
PyExc_SyntaxWarning
,
"This is method called statically"
);
return
NULL
;
return
NULL
;
}
}
PyObject
*
obj_net
;
PyObject
*
obj_node_info
;
PyObject
*
obj_node_info
;
if
(
!
PyArg_ParseTuple
(
args
,
"O
"
,
&
obj_node_info
))
if
(
!
PyArg_ParseTuple
(
args
,
"O
|O"
,
&
obj_net
,
&
obj_node_info
))
return
NULL
;
return
NULL
;
PyObject
*
obj_node_client
=
_PyObject_New
(
&
DapChainNodeClientObject_DapChainNodeClientObjectType
);
PyObject
*
obj_node_client
=
_PyObject_New
(
&
DapChainNodeClientObject_DapChainNodeClientObjectType
);
((
PyDapChainNodeClientObject
*
)
obj_node_client
)
->
node_client
=
dap_chain_node_client_connect
(((
PyDapChainNodeInfoObject
*
)
obj_node_info
)
->
node_info
);
((
PyDapChainNodeClientObject
*
)
obj_node_client
)
->
node_client
=
dap_chain_node_client_connect
(
((
PyDapChainNetObject
*
)
obj_net
)
->
chain_net
,
((
PyDapChainNodeInfoObject
*
)
obj_node_info
)
->
node_info
);
return
Py_BuildValue
(
"O"
,
obj_node_client
);
return
Py_BuildValue
(
"O"
,
obj_node_client
);
}
}
PyObject
*
dap_chain_node_client_close_py
(
PyObject
*
self
,
PyObject
*
args
){
PyObject
*
dap_chain_node_client_close_py
(
PyObject
*
self
,
PyObject
*
args
){
...
...
This diff is collapsed.
Click to expand it.
modules/plugins/src/dap_chain_plugins.c
View file @
5f7f5004
...
@@ -51,8 +51,7 @@ int dap_chain_plugins_init(dap_config_t *a_config){
...
@@ -51,8 +51,7 @@ int dap_chain_plugins_init(dap_config_t *a_config){
dap_chain_plugins_command_create
();
dap_chain_plugins_command_create
();
PyThreadState
*
l_thread_state
=
PyEval_SaveThread
();
PyThreadState
*
l_thread_state
=
PyEval_SaveThread
();
}
else
{
}
else
{
log_it
(
L_NOTICE
,
"Permission to initialize python plugins has not been obtained."
);
return
0
;
return
-
2
;
}
}
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.