Newer
Older
Alexey Stratulat
committed
#pragma once
#include "Python.h"
#include "dap_events.h"
Alexey Stratulat
committed
#include "dap_events_socket_python.h"
Alexey Stratulat
committed
#ifdef __cplusplus
extern "C" {
#endif
typedef struct PyDapEvents{
PyObject_HEAD
dap_events_t *t_events;
}PyDapEventsObject;

alexey.stratulat
committed
void PyDapEventsObject_dealloc(PyDapEventsObject *eventsObject);
PyObject *PyDapEventsObject_new(PyTypeObject *type_object, PyObject *args, PyObject *kwds);
PyObject *dap_events_socket_remove_and_delete_py(PyDapEventsObject *self, PyObject *args);

alexey.stratulat
committed

alexey.stratulat
committed
PyObject *dap_events_socket_kill_socket_py(PyDapEventsObject *self, PyObject *args);

alexey.stratulat
committed
PyObject *dap_events_start_py(PyDapEventsObject *self);
PyObject *dap_events_wait_py(PyDapEventsObject *self);

alexey.stratulat
committed
static PyMethodDef PyDapEventsObject_methods[] = {
{"start", (PyCFunction)dap_events_start_py, METH_NOARGS, ""},
{"wait", (PyCFunction)dap_events_wait_py, METH_NOARGS, ""},

alexey.stratulat
committed
{"killSocket", (PyCFunction)dap_events_socket_kill_socket_py, METH_VARARGS, ""},

alexey.stratulat
committed
{"removeAndDeleteSocket", (PyCFunction)dap_events_socket_remove_and_delete_py, METH_VARARGS, ""},
{NULL, NULL, 0, NULL} /* Sentinel */
};
static PyTypeObject dapEvents_dapEventsType = {
PyVarObject_HEAD_INIT(NULL, 0)
"CellFrame.ServerCore.DapEvents", /* tp_name */
sizeof(PyDapEventsObject), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)PyDapEventsObject_dealloc, /* 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 */

alexey.stratulat
committed
Py_TPFLAGS_DEFAULT |
Py_TPFLAGS_BASETYPE, /* tp_flags */
"DapEvents objects", /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
PyDapEventsObject_methods, /* 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 */
PyDapEventsObject_new, /* tp_new */
};
Alexey Stratulat
committed
#ifdef __cplusplus
}
#endif