emersion / mako

A lightweight Wayland notification daemon
https://wayland.emersion.fr/mako
MIT License
2.24k stars 138 forks source link

makoctl: add command to list history #444

Closed Gusser93 closed 2 years ago

Gusser93 commented 2 years ago

Implements makoctl history discussed in #91. Extends #220 by listing the history buffer with makoctl historyin the same format as makoctl list. I put the code from dbus/mako.c:handle_list_notifications into dbus/mako.c:handle_list and made the list given to wl_list_for_each an argument. handle_listis than used by handle_list_notification with mako_state->notifications and by handle_list_history with mako_state->history. A short test was successful, but I should note that I have no experience with dbus.