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
2
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
99c42597
Commit
99c42597
authored
3 years ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix_check_ChainNet' into 'master'
Hotfix See merge request
!80
parents
34e27880
68e22432
No related branches found
No related tags found
1 merge request
!80
Hotfix
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CellFrame/python-cellframe.c
+14
-1
14 additions, 1 deletion
CellFrame/python-cellframe.c
modules/cellframe-sdk/net/include/libdap_chain_net_python.h
+5
-1
5 additions, 1 deletion
modules/cellframe-sdk/net/include/libdap_chain_net_python.h
with
19 additions
and
2 deletions
CellFrame/python-cellframe.c
+
14
−
1
View file @
99c42597
...
@@ -423,8 +423,15 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
...
@@ -423,8 +423,15 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
PyType_Ready
(
&
DapChainNetNodeObject_DapChainNetNodeObjectType
)
<
0
||
PyType_Ready
(
&
DapChainNetNodeObject_DapChainNetNodeObjectType
)
<
0
||
PyType_Ready
(
&
DapChainNetStateObject_DapChainNetStateObjectType
)
<
0
||
PyType_Ready
(
&
DapChainNetStateObject_DapChainNetStateObjectType
)
<
0
||
// =============
// =============
// === Chain net srv ===
PyType_Ready
(
&
DapChainNetSrvObject_DapChainNetSrvObjectType
)
<
0
||
PyType_Ready
(
&
DapChainNetSrvClientObject_DapChainNetSrvClientObjectType
)
<
0
||
PyType_Ready
(
&
DapChainNetSrvUIDObject_DapChainNetSrvUIDObjectType
)
<
0
||
// =============
PyType_Ready
(
&
DapChainGDBObject_DapChainGDBType
)
<
0
||
PyType_Ready
(
&
DapChainGDBObject_DapChainGDBType
)
<
0
||
PyType_Ready
(
&
DapChainGlobalDBObject_DapChainDlobalDBType
)
<
0
||
PyType_Ready
(
&
DapHTTP_DapHTTPType
)
<
0
||
PyType_Ready
(
&
DapHTTP_DapHTTPType
)
<
0
||
PyType_Ready
(
&
DapEncServer_DapEncServerType
)
<
0
||
PyType_Ready
(
&
DapEncServer_DapEncServerType
)
<
0
||
...
@@ -526,12 +533,18 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
...
@@ -526,12 +533,18 @@ PyMODINIT_FUNC PyInit_libCellFrame(void){
PyModule_AddObject
(
module
,
"ChainNetNode"
,
(
PyObject
*
)
&
DapChainNetNodeObject_DapChainNetNodeObjectType
);
PyModule_AddObject
(
module
,
"ChainNetNode"
,
(
PyObject
*
)
&
DapChainNetNodeObject_DapChainNetNodeObjectType
);
PyModule_AddObject
(
module
,
"ChainNetState"
,
(
PyObject
*
)
&
DapChainNetStateObject_DapChainNetStateObjectType
);
PyModule_AddObject
(
module
,
"ChainNetState"
,
(
PyObject
*
)
&
DapChainNetStateObject_DapChainNetStateObjectType
);
// =============
// =============
// === Chain net srv ===
PyModule_AddObject
(
module
,
"ChainNetSrv"
,
(
PyObject
*
)
&
DapChainNetSrvObject_DapChainNetSrvObjectType
);
PyModule_AddObject
(
module
,
"ChainNetSrvClient"
,
(
PyObject
*
)
&
DapChainNetSrvClientObject_DapChainNetSrvClientObjectType
);
PyModule_AddObject
(
module
,
"ChainNetSrvUID"
,
(
PyObject
*
)
&
DapChainNetSrvUIDObject_DapChainNetSrvUIDObjectType
);
// =============
// === Chain type dag ===
// === Chain type dag ===
PyModule_AddObject
(
module
,
"ChainCsDag"
,
(
PyObject
*
)
&
DapChainCsDag_DapChainCsDagType
);
PyModule_AddObject
(
module
,
"ChainCsDag"
,
(
PyObject
*
)
&
DapChainCsDag_DapChainCsDagType
);
PyModule_AddObject
(
module
,
"ChainCsDagEvent"
,
(
PyObject
*
)
&
DapChainCsDagEvent_DapChainCsDagEventType
);
PyModule_AddObject
(
module
,
"ChainCsDagEvent"
,
(
PyObject
*
)
&
DapChainCsDagEvent_DapChainCsDagEventType
);
// ============
=
// ============
PyModule_AddObject
(
module
,
"ChainGDB"
,
(
PyObject
*
)
&
DapChainGDBObject_DapChainGDBType
);
PyModule_AddObject
(
module
,
"ChainGDB"
,
(
PyObject
*
)
&
DapChainGDBObject_DapChainGDBType
);
PyModule_AddObject
(
module
,
"ChainGlobalDB"
,
(
PyObject
*
)
&
DapChainGlobalDBObject_DapChainDlobalDBType
);
PyModule_AddObject
(
module
,
"ChainWallet"
,
(
PyObject
*
)
&
DapChainWallet_dapChainWalletType
);
PyModule_AddObject
(
module
,
"ChainWallet"
,
(
PyObject
*
)
&
DapChainWallet_dapChainWalletType
);
PyModule_AddObject
(
module
,
"Http"
,
(
PyObject
*
)
&
DapHTTP_DapHTTPType
);
PyModule_AddObject
(
module
,
"Http"
,
(
PyObject
*
)
&
DapHTTP_DapHTTPType
);
...
...
This diff is collapsed.
Click to expand it.
modules/cellframe-sdk/net/include/libdap_chain_net_python.h
+
5
−
1
View file @
99c42597
...
@@ -153,7 +153,11 @@ static PyTypeObject DapChainNetObject_DapChainNetObjectType = {
...
@@ -153,7 +153,11 @@ static PyTypeObject DapChainNetObject_DapChainNetObjectType = {
};
};
static
bool
PyDapChainNet_Check
(
PyObject
*
a_obj
){
static
bool
PyDapChainNet_Check
(
PyObject
*
a_obj
){
return
PyObject_TypeCheck
(
a_obj
,
&
DapChainNetObject_DapChainNetObjectType
);
int
res
=
PyObject_TypeCheck
(
a_obj
,
&
DapChainNetObject_DapChainNetObjectType
);
if
(
res
==
0
)
return
true
;
else
return
false
;
}
}
#ifdef __cplusplus
#ifdef __cplusplus
...
...
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