20 #ifndef BITZ_MODPY_INTERFACE_H
21 #define BITZ_MODPY_INTERFACE_H
27 PyObject * bitz_get_request( PyObject *
self, PyObject * pyrequest );
28 PyObject * bitz_get_response( PyObject *
self, PyObject * args );
29 PyObject * bitz_get_response_from_status( PyObject *
self, PyObject * args);
31 static PyMethodDef bitz_methods[] = {
32 {
"get_request", bitz_get_request, METH_O,
"Convert a capsule request into a python dictionary" },
33 {
"get_response", bitz_get_response, METH_VARARGS,
"Get a response capsule (takes in status and payload dictionary as args)" },
34 {
"get_response_from_status", bitz_get_response_from_status, METH_VARARGS,
"Get a response capsule from a response status" },
35 { NULL, NULL, 0, NULL }