aboutsummaryrefslogtreecommitdiff
path: root/user-notification.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-08 17:17:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-08 17:41:00 +0000
commiteb6737ca2593f457368ae16e920911cdd70a2e33 (patch)
treef8dbf85542613c15d50439255d99db4e3d90ef25 /user-notification.h
parentchangelog: move deprecation section up first, change most ‘footrc’ -> ‘foot.ini’ (diff)
Add -W,--window-size-chars, and foot.ini:initial-window-size-chars
* Add -W,--window-size-chars command line option * Add initial-window-size-chars foot.ini option * Add -w,--window-size-pixels command line option * Add initial-window-size-pixels foot.ini option * Deprecate -g,--geometry command line option in favor of -w,--window-size-pixels * Deprecate geometry option in foot.ini in favor of initial-window-size-pixels
Diffstat (limited to 'user-notification.h')
-rw-r--r--user-notification.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/user-notification.h b/user-notification.h
index 1777d521..f184871e 100644
--- a/user-notification.h
+++ b/user-notification.h
@@ -14,3 +14,11 @@ struct user_notification {
};
typedef tll(struct user_notification) user_notifications_t;
+
+static inline void
+user_notifications_free(user_notifications_t *notifications)
+{
+ tll_foreach(*notifications, it)
+ free(it->item.text);
+ tll_free(*notifications);
+}