version 1.7 | | version 1.8 |
---|
| | |
{"ReadyMap", readyMap, METH_VARARGS}, | | {"ReadyMap", readyMap, METH_VARARGS}, |
{"FindPlayer", findPlayer, METH_VARARGS}, | | {"FindPlayer", findPlayer, METH_VARARGS}, |
{"MatchString", matchString, METH_VARARGS}, | | {"MatchString", matchString, METH_VARARGS}, |
{"getReturnValue", getReturnValue, METH_VARARGS}, | | {"GetReturnValue", getReturnValue, METH_VARARGS}, |
{"setReturnValue", setReturnValue, METH_VARARGS}, | | {"SetReturnValue", setReturnValue, METH_VARARGS}, |
{"PluginVersion", getCFPythonVersion, METH_VARARGS}, | | {"PluginVersion", getCFPythonVersion, METH_VARARGS}, |
{"CreateObject", createCFObject, METH_VARARGS}, | | {"CreateObject", createCFObject, METH_VARARGS}, |
{"CreateObjectByName", createCFObjectByName, METH_VARARGS}, | | {"CreateObjectByName", createCFObjectByName, METH_VARARGS}, |
| | |
} | | } |
static PyObject* getScriptName(PyObject* self, PyObject* args) | | static PyObject* getScriptName(PyObject* self, PyObject* args) |
{ | | { |
char* buf; | | |
| | |
if (!PyArg_ParseTuple(args,"",NULL)) | | if (!PyArg_ParseTuple(args,"",NULL)) |
return NULL; | | return NULL; |
return Py_BuildValue("s", current_context->script); | | return Py_BuildValue("s", current_context->script); |
} | | } |
static PyObject* getScriptParameters(PyObject* self, PyObject* args) | | static PyObject* getScriptParameters(PyObject* self, PyObject* args) |
{ | | { |
char* buf; | | |
| | |
if (!PyArg_ParseTuple(args,"",NULL)) | | if (!PyArg_ParseTuple(args,"",NULL)) |
return NULL; | | return NULL; |
return Py_BuildValue("s", current_context->options); | | return Py_BuildValue("s", current_context->options); |