diff options
| author | Jeff Armstrong <jeffrey.armstrong@approximatrix.com> | 2011-07-11 22:47:19 -0400 |
|---|---|---|
| committer | Jeff Armstrong <jeffrey.armstrong@approximatrix.com> | 2011-07-11 22:47:19 -0400 |
| commit | 020592344c70c1b287e52729086a493211daea5a (patch) | |
| tree | f787f919f6aadba044f93030718e6827f21e76c1 /lib/py_aes.c | |
| parent | d89bc67baf8e8f77de9240a4c991a6a98ff950c4 (diff) | |
| download | gempy-020592344c70c1b287e52729086a493211daea5a.tar.gz gempy-020592344c70c1b287e52729086a493211daea5a.zip | |
Starting logical reorg of the native GEM calls.
Diffstat (limited to 'lib/py_aes.c')
| -rw-r--r-- | lib/py_aes.c | 32 |
1 files changed, 32 insertions, 0 deletions
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 <gem.h> + +/* --- 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); +} |
