From f6533a71e4996f2f4cd45336966cebf6c3f34b1e Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 30 Jul 2020 18:57:21 +0200 Subject: user-notification: 'productify' the user-warning system * Rename user_warning to user_notification * Add warning and error types (in addition to the existing deprecated) * Simplify logic when emitting a user notification after forking; we don't need to copy the notification data since we're in a new process and have total control over that memory. --- slave.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slave.h') diff --git a/slave.h b/slave.h index f7324704..538588b1 100644 --- a/slave.h +++ b/slave.h @@ -3,9 +3,9 @@ #include -#include "terminal.h" +#include "user-notification.h" pid_t slave_spawn( int ptmx, int argc, const char *cwd, char *const *argv, const char *term_env, const char *conf_shell, bool login_shell, - const user_warning_list_t *warnings); + const user_notifications_t *notifications); -- cgit v1.3