blob: e97f4d522230b47b6cec5c6b5f62e78fd63361b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
}
|