]> Dogcows Code - chaz/openbox/blobdiff - src/openbox_wrap.cc
rm prefixes for all elements in the otk namepsace
[chaz/openbox] / src / openbox_wrap.cc
index 68213a5ae5f2b04dab5610904ffca9ae1c107d21..39ff63bd57c6ef9191cf22e585314773e3a920f1 100644 (file)
@@ -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 },
This page took 0.022003 seconds and 4 git commands to generate.