You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
707 B
34 lines
707 B
#include <Python.h>
|
|
#include <pEp/pEpEngine.h>
|
|
|
|
namespace pEp {
|
|
namespace PythonAdapter {
|
|
const char *version_string = "p≡p Python adapter version 0.1";
|
|
|
|
PyObject *about(PyObject *self, PyObject *args);
|
|
}
|
|
|
|
void module_free(void *);
|
|
|
|
struct PyMethodDef pEpMethods[] = {
|
|
{"about", pEp::PythonAdapter::about, METH_VARARGS, "about p≡p"},
|
|
{NULL, NULL, 0, NULL}
|
|
};
|
|
|
|
struct PyModuleDef pEpmodule = {
|
|
PyModuleDef_HEAD_INIT,
|
|
"pEp",
|
|
"p≡p Python adapter",
|
|
-1,
|
|
pEpMethods,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
pEp::module_free
|
|
};
|
|
|
|
extern PEP_SESSION session;
|
|
}
|
|
|
|
PyMODINIT_FUNC PyInit_pEp(void);
|
|
|
|
|