mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
* 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.
14 lines
271 B
C
14 lines
271 B
C
#pragma once
|
|
|
|
#include <tllist.h>
|
|
|
|
struct user_notification {
|
|
enum {
|
|
USER_NOTIFICATION_DEPRECATED,
|
|
USER_NOTIFICATION_WARNING,
|
|
USER_NOTIFICATION_ERROR,
|
|
} kind;
|
|
char *text;
|
|
};
|
|
|
|
typedef tll(struct user_notification) user_notifications_t;
|