-static PyObject *_wrap_python_init(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- char *arg1 ;
-
- if(!PyArg_ParseTuple(args,(char *)"s:python_init",&arg1)) goto fail;
- ob::python_init(arg1);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_python_exec(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- char *arg1 ;
- bool result;
-
- if(!PyArg_ParseTuple(args,(char *)"s:python_exec",&arg1)) goto fail;
- result = (bool)ob::python_exec((char const *)arg1);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_python_get_string(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- char *arg1 ;
- std::string *arg2 = (std::string *) 0 ;
- bool result;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"sO:python_get_string",&arg1,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- result = (bool)ob::python_get_string((char const *)arg1,arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_register(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- PyObject *arg2 = (PyObject *) 0 ;
- bool result;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"iO:register",&arg1,&obj1)) goto fail;
- arg2 = obj1;
- result = (bool)ob::python_register(arg1,arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_preregister(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- PyObject *arg2 = (PyObject *) 0 ;
- bool result;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"iO:preregister",&arg1,&obj1)) goto fail;
- arg2 = obj1;
- result = (bool)ob::python_preregister(arg1,arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_unregister(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- PyObject *arg2 = (PyObject *) 0 ;
- bool result;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"iO:unregister",&arg1,&obj1)) goto fail;
- arg2 = obj1;
- result = (bool)ob::python_unregister(arg1,arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_unregister_all(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- bool result;
-
- if(!PyArg_ParseTuple(args,(char *)"i:unregister_all",&arg1)) goto fail;
- result = (bool)ob::python_unregister_all(arg1);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_bind(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- PyObject *arg1 = (PyObject *) 0 ;
- PyObject *arg2 = (PyObject *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:bind",&obj0,&obj1)) goto fail;
- arg1 = obj0;
- arg2 = obj1;
- result = (bool)ob::python_bind(arg1,arg2);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_unbind(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- PyObject *arg1 = (PyObject *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:unbind",&obj0)) goto fail;
- arg1 = obj0;
- result = (bool)ob::python_unbind(arg1);
-
- resultobj = PyInt_FromLong((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- std::string *arg1 = 0 ;
- std::string temp1 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
- {
- if (PyString_Check(obj0)) {
- temp1 = std::string(PyString_AsString(obj0));
- arg1 = &temp1;
- }else {
- SWIG_exception(SWIG_TypeError, "string expected");
- }
- }
- ob::python_set_reset_key((std::string const &)*arg1);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_unbind_all(PyObject *self, PyObject *args) {
- PyObject *resultobj;
-
- if(!PyArg_ParseTuple(args,(char *)":unbind_all")) goto fail;
- ob::python_unbind_all();
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_python_callback_binding(PyObject *self, PyObject *args) {
- PyObject *resultobj;
- int arg1 ;
- Window arg2 ;
- unsigned int arg3 ;
- unsigned int arg4 ;
- Time arg5 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"iOOOO:python_callback_binding",&arg1,&obj1,&obj2,&obj3,&obj4)) goto fail;
- arg2 = (Window) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (unsigned int) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- arg4 = (unsigned int) PyInt_AsLong(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- arg5 = (Time) PyInt_AsLong(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- ob::python_callback_binding(arg1,arg2,arg3,arg4,arg5);
-
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-