+ KeyData(int screen, OBClient *client, Time time, unsigned int state,
+ unsigned int key) {
+ this->screen = screen;
+ this->client = client;
+ this->time = time;
+ this->state = state;
+ this->key = XKeysymToString(XKeycodeToKeysym(otk::OBDisplay::display,
+ key, 0));
+ }
+};
+
+#ifndef SWIG
+
+void python_init(char *argv0);
+void python_destroy();
+bool python_exec(const std::string &path);
+
+bool python_get_long(const char *name, long *value);
+bool python_get_string(const char *name, std::string *value);
+bool python_get_stringlist(const char *name, std::vector<std::string> *value);
+
+/***********************************************
+ * These are found in openbox.i, not python.cc *
+ ***********************************************/
+void python_callback(PyObject *func, MotionData *data);
+void python_callback(PyObject *func, ButtonData *data);
+void python_callback(PyObject *func, EventData *data);
+void python_callback(PyObject *func, KeyData *data);
+
+#endif // SWIG
+
+PyObject *mbind(const std::string &button, ob::MouseContext context,
+ ob::MouseAction action, PyObject *func);
+
+PyObject *kbind(PyObject *keylist, ob::KeyContext context, PyObject *func);
+
+PyObject *ebind(ob::EventAction action, PyObject *func);
+
+void set_reset_key(const std::string &key);
+
+PyObject *send_client_msg(Window target, int type, Window about,
+ long data, long data1 = 0, long data2 = 0,
+ long data3 = 0, long data4 = 0);