wrapper updates
This commit is contained in:
parent
dc2f9ddc66
commit
261034b354
2 changed files with 33 additions and 6 deletions
|
@ -379,6 +379,8 @@ itostring_unsigned = _openbox.itostring_unsigned
|
|||
|
||||
itostring = _openbox.itostring
|
||||
|
||||
putenv = _openbox.putenv
|
||||
|
||||
basename = _openbox.basename
|
||||
|
||||
class OtkEventHandler(_object):
|
||||
|
|
|
@ -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 <string>
|
||||
|
||||
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 },
|
||||
|
|
Loading…
Reference in a new issue