Skip to content
Snippets Groups Projects
Commit 91e56624 authored by alexey.stratulat's avatar alexey.stratulat Committed by Roman Khlopkov
Browse files

The wrapper from the wizard for working with orders has been moved. And...

The wrapper from the wizard for working with orders has been moved. And converted statics to globals
parent 05ce7d5e
1 merge request!95The wrapper from the wizard for working with orders has been moved. And converted statics to globals
Showing
with 8 additions and 57 deletions
...@@ -41,6 +41,8 @@ ...@@ -41,6 +41,8 @@
#include "wrapping_dap_chain_net_srv.h" #include "wrapping_dap_chain_net_srv.h"
#include "wrapping_dap_chain_net_srv_client.h" #include "wrapping_dap_chain_net_srv_client.h"
#include "wrapping_dap_chain_net_srv_datum.h" #include "wrapping_dap_chain_net_srv_datum.h"
#include "wrapping_dap_chain_net_srv_common.h"
#include "wrapping_dap_chain_net_srv_order.h"
// ============ // ============
......
...@@ -5,15 +5,20 @@ ...@@ -5,15 +5,20 @@
#include "dap_chain_mempool.h" #include "dap_chain_mempool.h"
#include "dap_server_python.h" #include "dap_server_python.h"
#include "dap_http.h" #include "dap_http.h"
#include "libdap-chain-python.h"
#include "wrapping_dap_pkey.h"
#include "wrapping_dap_chain_common.h"
typedef struct PyDapMempool{ typedef struct PyDapMempool{
PyObject_HEAD PyObject_HEAD
}PyDapMempoolObject; }PyDapMempoolObject;
PyObject *dap_chain_mempool_add_proc_py(PyObject *self, PyObject *args); PyObject *dap_chain_mempool_add_proc_py(PyObject *self, PyObject *args);
PyObject *dap_chain_mempool_tx_create_py(PyObject *self, PyObject *args);
static PyMethodDef DapMempoolMethods[] = { static PyMethodDef DapMempoolMethods[] = {
{"addProc", dap_chain_mempool_add_proc_py, METH_VARARGS | METH_STATIC, ""}, {"addProc", dap_chain_mempool_add_proc_py, METH_VARARGS | METH_STATIC, ""},
{"txCreate", dap_chain_mempool_tx_create_py, METH_VARARGS | METH_STATIC, ""},
{NULL,NULL,0,NULL} {NULL,NULL,0,NULL}
}; };
......
...@@ -14,60 +14,4 @@ typedef struct PyAppCli{ ...@@ -14,60 +14,4 @@ typedef struct PyAppCli{
PyObject* dap_app_cli_main_py(PyObject *self, PyObject *args); PyObject* dap_app_cli_main_py(PyObject *self, PyObject *args);
static PyMethodDef AppCliMethods[] = { extern PyTypeObject DapAppCli_dapAppCliType;
{"main", dap_app_cli_main_py, METH_VARARGS | METH_STATIC, "Main CLI function"},
{NULL, NULL, 0, NULL}
};
static PyTypeObject DapAppCli_dapAppCliType = {
PyVarObject_HEAD_INIT(NULL, 0)
"AppCli", /* tp_name */
sizeof(PyAppCliObject), /* tp_basicsize */
0, /* tp_itemsize */
0, /* tp_dealloc */
0, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
0, /* tp_as_mapping */
0, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT |
Py_TPFLAGS_BASETYPE, /* tp_flags */
"AppCli object", /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
AppCliMethods, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
PyType_GenericNew, /* tp_new */
0, /* tp_free */
0, /* tp_is_gc*/
0, /* tp_bases*/
0, /* tp_mro */
0, /* tp_cache */
0, /* tp_subclasses */
0, /* tp_weaklist */
0, /* tp_del */
0, /* tp_version_tag*/
0, /* tp_finalize*/
};
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