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.
Implements
makoctl history
discussed in #91. Extends #220 by listing the history buffer withmakoctl history
in the same format asmakoctl list
. I put the code fromdbus/mako.c:handle_list_notifications
intodbus/mako.c:handle_list
and made the list given towl_list_for_each
an argument.handle_list
is than used byhandle_list_notification
withmako_state->notifications
and byhandle_list_history
withmako_state->history
. A short test was successful, but I should note that I have no experience with dbus.