mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Since we need to restore the status flags anyway, there's nothing to gain from emitting the user notifications after dup:ing the pts file descriptor. On the other hand, emitting user notifications *before* dup:ing means we can still print error messages for e.g. write(3) errors.
16 lines
308 B
C
16 lines
308 B
C
#pragma once
|
|
|
|
#include <tllist.h>
|
|
|
|
enum user_notification_kind {
|
|
USER_NOTIFICATION_DEPRECATED,
|
|
USER_NOTIFICATION_WARNING,
|
|
USER_NOTIFICATION_ERROR,
|
|
};
|
|
|
|
struct user_notification {
|
|
enum user_notification_kind kind;
|
|
char *text;
|
|
};
|
|
|
|
typedef tll(struct user_notification) user_notifications_t;
|