From 020592344c70c1b287e52729086a493211daea5a Mon Sep 17 00:00:00 2001 From: Jeff Armstrong Date: Mon, 11 Jul 2011 22:47:19 -0400 Subject: Starting logical reorg of the native GEM calls. --- lib/py_aes.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/py_aes.c (limited to 'lib/py_aes.c') diff --git a/lib/py_aes.c b/lib/py_aes.c new file mode 100644 index 0000000..e97f4d5 --- /dev/null +++ b/lib/py_aes.c @@ -0,0 +1,32 @@ +#include "ldg_Python.h" +#include + +/* --- Application Library --- */ +static PyObject* __CDECL py_appl_init(PyObject *self, PyObject *args) +{ +int ret; + + ret = appl_init(); + return Py_BuildValue("i",ret); +} + +static PyObject* __CDECL py_appl_exit(PyObject *self, PyObject *args) +{ +int ret; + + ret = appl_exit(); + return Py_BuildValue("i",ret); +} + +/* --- Forms Library --- */ +static PyObject* __CDECL py_form_alert(PyObject *self, PyObject *args) +{ +char *text; +int x; + + if(!PyArg_ParseTuple(args,"is",&x,&text)) + return NULL; + + x = form_alert(x,text); + return Py_BuildValue("i",x); +} -- cgit v1.2.3