Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-net-python
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-net-python
Merge requests
!6
Bugs 3359
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bugs 3359
bugs-3359
into
master
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
alexey.stratulat
requested to merge
bugs-3359
into
master
5 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
Fixed callbacks for working with added commands.
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b73dcee5
2 commits,
5 years ago
2 files
+
155
−
40
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
include/wrapping_dap_app_cli_server.h
+
34
−
2
Options
@@ -6,12 +6,43 @@
#include
"dap_chain_node_cli_cmd.h"
#include
"wrapping_dap_chain_common.h"
#include
"wrapping_dap_chain_net_node.h"
#include
"utlist.h"
typedef
struct
PyDapAppCliServer
{
PyObject_HEAD
cmdfunc_t
*
func
;
}
PyDapAppCliServerObject
;
static
PyObject
*
binded_object_cmdfunc
=
NULL
;
typedef
struct
element_str_reply
{
char
**
str_reply
;
size_t
id
;
struct
element_str_reply
*
next
;
}
element_str_reply_t
;
static
element_str_reply_t
*
l_str_reply_list
;
size_t
elements_str_reply_add
(
char
**
str_reply
);
int
elements_str_reply_cmp_by_id
(
element_str_reply_t
*
e1
,
element_str_reply_t
*
e2
);
char
**
elements_str_reply_get_by_id
(
size_t
id
);
void
elements_str_reply_delete
(
size_t
id
);
void
elements_str_reply_delete_all
();
typedef
struct
element_py_func
{
char
*
name
;
PyObject
*
func
;
struct
element_py_func
*
next
;
}
element_py_func_t
;
static
element_py_func_t
*
l_element_py_func_list
;
void
element_py_func_add
(
const
char
*
name
,
PyObject
*
func
);
int
element_py_func_cmp_by_name
(
element_py_func_t
*
e1
,
element_py_func_t
*
e2
);
PyObject
*
element_py_func_get
(
char
*
name
);
void
element_py_func_del_by_name
(
char
*
name
);
void
element_py_func_del_all
();
//static PyObject *binded_object_cmdfunc = NULL;
//static char** l_str_reply = NULL;
int
dap_chain_node_cli_init_py
(
dap_config_t
*
g_config
);
void
dap_chain_node_cli_delete_py
(
void
);
@@ -73,4 +104,5 @@ static PyTypeObject DapChainNodeCliObject_DapChainNodeCliObjectType = {
};
char
**
PyListToString
(
PyObject
*
list
);
PyObject
*
stringToPyList
(
char
**
list
);
//PyObject *stringToPyList(char **list);
PyObject
*
stringToPyList
(
int
argc
,
char
**
list
);
Loading