weston-log: Add 'destroy_subscription' callback for the subscription

As 'new_subscription' can create additional objects, 'destroy_subscription'
will be needed when cleaning up.

As this requires a libweston_major bump (noticed by @pq), bump it up to
8.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Suggested-by: Daniel Stone <daniel.stone@collabora.com>
This commit is contained in:
Marius Vlad
2019-07-29 12:02:47 +03:00
parent 0c7beb0b67
commit 9bb1c3a3c2
9 changed files with 18 additions and 8 deletions
+2 -2
View File
@@ -3187,7 +3187,7 @@ int main(int argc, char *argv[])
}
log_scope = weston_compositor_add_log_scope(log_ctx, "log",
"Weston and Wayland log\n", NULL, NULL);
"Weston and Wayland log\n", NULL, NULL, NULL);
weston_log_file_open(log);
weston_log_set_handler(vlog, vlog_continue);
@@ -3274,7 +3274,7 @@ int main(int argc, char *argv[])
weston_compositor_add_log_scope(log_ctx,
"proto",
"Wayland protocol dump for all clients.\n",
NULL, NULL);
NULL, NULL, NULL);
if (debug_protocol) {
protologger = wl_display_add_protocol_logger(display,