1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
48 void python_init(char *argv0);
49 void python_destroy();
50 bool python_exec(const std::string &path);
52 void python_callback(PyObject *func, MouseAction action,
53 Window window, MouseContext context,
54 unsigned int state, unsigned int button,
55 int xroot, int yroot, Time time);
57 void python_callback(PyObject *func, Window window, unsigned int state,
58 unsigned int key, Time time);
61 bool python_get_string(const char *name, std::string *value);
62 bool python_get_stringlist(const char *name, std::vector<std::string> *value);
65 PyObject * mbind(const std::string &button, ob::MouseContext context,
66 ob::MouseAction action, PyObject *func);
68 PyObject * kbind(PyObject *keylist, ob::KeyContext context, PyObject *func);
69 PyObject * kunbind(PyObject *keylist);
71 void set_reset_key(const std::string &key);