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.
21 lines
436 B
21 lines
436 B
#include "pEpmodule.hh"
|
|
#include <pEp/pEpEngine.h>
|
|
|
|
namespace pEp {
|
|
namespace PythonAdapter {
|
|
PyObject *about(PyObject *self, PyObject *args)
|
|
{
|
|
return PyUnicode_FromString(version_string);
|
|
}
|
|
}
|
|
}
|
|
|
|
PyMODINIT_FUNC PyInit_pEp(void)
|
|
{
|
|
PEP_SESSION session;
|
|
PEP_STATUS status = init(&session);
|
|
if (status != PEP_STATUS_OK)
|
|
return NULL;
|
|
|
|
return PyModule_Create(&pEpmodule);
|
|
}
|
|
|