diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-17 22:04:20 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-17 22:04:20 +0000 |
| commit | df3d926cb2da067f323d3fd839bbcd759ddf92c4 (patch) | |
| tree | e0e8f306d88f22ad5e22785df23c8969e9730a2b /openbox/hooks.h | |
| parent | 75b07a2bb3b98d581b39d3991cf1e9068452264a (diff) | |
rming almost all the old python stuffs
Diffstat (limited to 'openbox/hooks.h')
| -rw-r--r-- | openbox/hooks.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/openbox/hooks.h b/openbox/hooks.h deleted file mode 100644 index 3211d7cf..00000000 --- a/openbox/hooks.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef __hooks_h -#define __hooks_h - -#include "clientwrap.h" -#include <Python.h> - -void hooks_startup(); -void hooks_shutdown(); - -struct HookObject; - -struct HookObject *hooks_create(char *name); - -struct HookObject *hook_startup; -struct HookObject *hook_shutdown; -struct HookObject *hook_visibledesktop; -struct HookObject *hook_numdesktops; -struct HookObject *hook_desktopnames; -struct HookObject *hook_showdesktop; -struct HookObject *hook_screenconfiguration; -struct HookObject *hook_screenarea; -struct HookObject *hook_managed; -struct HookObject *hook_closed; -struct HookObject *hook_bell; -struct HookObject *hook_urgent; -struct HookObject *hook_pointerenter; -struct HookObject *hook_pointerleave; -struct HookObject *hook_focused; -struct HookObject *hook_requestactivate; -struct HookObject *hook_title; -struct HookObject *hook_desktop; -struct HookObject *hook_iconic; -struct HookObject *hook_shaded; -struct HookObject *hook_maximized; -struct HookObject *hook_fullscreen; -struct HookObject *hook_visible; -struct HookObject *hook_configuration; - -#define HOOKFIRE(hook, ...) \ -{ \ - PyObject *args = Py_BuildValue(__VA_ARGS__); \ - g_assert(args != NULL); \ - hooks_fire(hook_##hook, args); \ - Py_DECREF(args); \ -} - -#define HOOKFIRECLIENT(hook, client) \ -{ \ - hooks_fire_client(hook_##hook, client); \ -} - -void hooks_fire(struct HookObject *hook, PyObject *args); - -void hooks_fire_client(struct HookObject *hook, struct Client *client); - -#endif |
