diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-09-08 17:17:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-09-08 17:41:00 +0000 |
| commit | eb6737ca2593f457368ae16e920911cdd70a2e33 (patch) | |
| tree | f8dbf85542613c15d50439255d99db4e3d90ef25 /user-notification.h | |
| parent | changelog: 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.h | 8 |
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); +} |
