diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-25 02:19:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-25 02:19:49 +0000 |
| commit | 3827c1a76e27865a9e2cc9da43c42399ea354e18 (patch) | |
| tree | 8c895cedf52120fb2783c5070fcb00f3bbdfc5af /src/python.hh | |
| parent | f9107b5c5a4cc03bf544854e8d6d1ba83f6cd979 (diff) | |
python with callbacks!
Diffstat (limited to 'src/python.hh')
| -rw-r--r-- | src/python.hh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/python.hh b/src/python.hh new file mode 100644 index 00000000..7fc178eb --- /dev/null +++ b/src/python.hh @@ -0,0 +1,27 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- +#ifndef __python_hh +#define __python_hh + +/*! @file python.hh + @brief wee +*/ + +#include "actions.hh" +#include "widget.hh" + +extern "C" { +#include <Python.h> +} + +namespace ob { + +bool python_register(int action, PyObject *callback); +bool python_unregister(int action, PyObject *callback); + +void python_callback(OBActions::ActionType action, Window window, + OBWidget::WidgetType type, unsigned int state, + long d1 = 0, long d2 = 0); + +} + +#endif // __python_hh |
