From: Dana Jansens Date: Sat, 11 Jan 2003 11:25:26 +0000 (+0000) Subject: wrapper updates X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=261034b354cc3571ef59d0b13bdbdecbb2e06075;p=chaz%2Fopenbox wrapper updates --- diff --git a/src/openbox.py b/src/openbox.py index 64e2d763..a6733bd9 100644 --- a/src/openbox.py +++ b/src/openbox.py @@ -379,6 +379,8 @@ itostring_unsigned = _openbox.itostring_unsigned itostring = _openbox.itostring +putenv = _openbox.putenv + basename = _openbox.basename class OtkEventHandler(_object): diff --git a/src/openbox_wrap.cc b/src/openbox_wrap.cc index 68213a5a..39ff63bd 100644 --- a/src/openbox_wrap.cc +++ b/src/openbox_wrap.cc @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.17u-20021226-0459 + * Version 1.3.17u-20021128-1508 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -791,19 +791,19 @@ static void _SWIG_exception(int code, const char *msg) { #include -static PyObject* SwigInt_FromBool(bool b) { +PyObject* SwigInt_FromBool(bool b) { return PyInt_FromLong(b ? 1L : 0L); } -static double SwigNumber_Check(PyObject* o) { +double SwigNumber_Check(PyObject* o) { return PyFloat_Check(o) || PyInt_Check(o); } -static double SwigNumber_AsDouble(PyObject* o) { +double SwigNumber_AsDouble(PyObject* o) { return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o))); } -static PyObject* SwigString_FromString(const std::string& s) { +PyObject* SwigString_FromString(const std::string& s) { return PyString_FromString(s.c_str()); } -static std::string SwigString_AsString(PyObject* o) { +std::string SwigString_AsString(PyObject* o) { return std::string(PyString_AsString(o)); } @@ -3960,6 +3960,30 @@ static PyObject *_wrap_itostring(PyObject *self, PyObject *args) { } +static PyObject *_wrap_putenv(PyObject *self, PyObject *args) { + PyObject *resultobj; + std::string *arg1 = 0 ; + std::string temp1 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:putenv",&obj0)) goto fail; + { + if (PyString_Check(obj0)) { + temp1 = std::string(PyString_AsString(obj0)); + arg1 = &temp1; + }else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + otk::putenv((std::string const &)*arg1); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_basename(PyObject *self, PyObject *args) { PyObject *resultobj; std::string *arg1 = 0 ; @@ -8192,6 +8216,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"itostring_long", _wrap_itostring_long, METH_VARARGS }, { (char *)"itostring_unsigned", _wrap_itostring_unsigned, METH_VARARGS }, { (char *)"itostring", _wrap_itostring, METH_VARARGS }, + { (char *)"putenv", _wrap_putenv, METH_VARARGS }, { (char *)"basename", _wrap_basename, METH_VARARGS }, { (char *)"OtkEventHandler_handle", _wrap_OtkEventHandler_handle, METH_VARARGS }, { (char *)"OtkEventHandler_keyPressHandler", _wrap_OtkEventHandler_keyPressHandler, METH_VARARGS },