From adb9bb700f3235728dacc1d3e3daad81abd93e9a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 26 Sep 2003 16:47:12 +0000 Subject: give actions a ref count --- openbox/action.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'openbox/action.h') 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. -- cgit v1.2.3