version 1.35 | | version 1.36 |
---|
| | |
static PyObject* unregisterGEvent(PyObject* self, PyObject* args); | | static PyObject* unregisterGEvent(PyObject* self, PyObject* args); |
static PyObject* CFPythonError; | | static PyObject* CFPythonError; |
static PyObject* getTime(PyObject* self, PyObject* args); | | static PyObject* getTime(PyObject* self, PyObject* args); |
| | static PyObject* destroyTimer(PyObject* self, PyObject* args); |
| | |
/** Set up an Python exception object. */ | | /** Set up an Python exception object. */ |
static void set_exception(const char *fmt, ...) | | static void set_exception(const char *fmt, ...) |
| | |
{"RegisterGlobalEvent", registerGEvent, METH_VARARGS}, | | {"RegisterGlobalEvent", registerGEvent, METH_VARARGS}, |
{"UnregisterGlobalEvent",unregisterGEvent, METH_VARARGS}, | | {"UnregisterGlobalEvent",unregisterGEvent, METH_VARARGS}, |
{"GetTime", getTime, METH_VARARGS}, | | {"GetTime", getTime, METH_VARARGS}, |
| | {"DestroyTimer", destroyTimer, METH_VARARGS}, |
{NULL, NULL, 0} | | {NULL, NULL, 0} |
}; | | }; |
| | |
| | |
return list; | | return list; |
} | | } |
| | |
| | static PyObject* destroyTimer(PyObject* self, PyObject* args) |
| | { |
| | int id; |
| | if (!PyArg_ParseTuple(args, "i", &id)) |
| | return NULL; |
| | return Py_BuildValue("i", cf_timer_destroy(id)); |
| | } |
| | |
void initContextStack() | | void initContextStack() |
{ | | { |
current_context = NULL; | | current_context = NULL; |