diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-26 16:47:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-26 16:47:12 +0000 |
| commit | adb9bb700f3235728dacc1d3e3daad81abd93e9a (patch) | |
| tree | 59f659d62fbd6ae6e642276823d6484e17afa13f /openbox/action.h | |
| parent | 9ed3baf9dbf0c4c1dcf4b63262eca03247b50a0d (diff) | |
give actions a ref count
Diffstat (limited to 'openbox/action.h')
| -rw-r--r-- | openbox/action.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/action.h b/openbox/action.h index 3edc96b9..a2f941ed 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -152,7 +152,8 @@ union ActionData { }; struct _ObAction { - ObUserAction act; + guint ref; + /* The func member acts like an enum to tell which one of the structs in the data union are valid. */ @@ -176,7 +177,8 @@ struct _ObAction { ObAction *action_from_string(const gchar *name, ObUserAction uact); ObAction *action_parse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, ObUserAction uact); -void action_free(ObAction *a); +void action_ref(ObAction *a); +void action_unref(ObAction *a); /*! Executes a list of actions. @param c The client associated with the action. Can be NULL. |
