From 3827c1a76e27865a9e2cc9da43c42399ea354e18 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Dec 2002 02:19:49 +0000 Subject: python with callbacks! --- src/python.hh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/python.hh (limited to 'src/python.hh') 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 +} + +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 -- cgit v1.2.3