index
NameDescriptionIdleLinks
mirrors (miᴙᴙoᴙs)
mirrors/foot.gitA fast, lightweight and minimalistic Wayland terminal emulator2 dayssummarylogtree
mirrors/linux-handbook.gitA detailed Linux handbook for beginners5 dayssummarylogtree
movo987
movo987/guix-channel.gitGuix channel with custom package definitions38 hourssummarylogtree
movo987/linux-libre-zen-bore.gitLinux-libre with the Zen patchset and the BORE scheduler38 hourssummarylogtree
movo987/linux-zako.gitShinKouyo's desktop kernel, based on linux-libre-zen-bore8 dayssummarylogtree
shkouyo (ShinKouyo)
shkouyo/avatar.gitMy avatars3 weekssummarylogtree
shkouyo/linux-handbook.gitA detailed Linux handbook for beginners35 hourssummarylogtree
'#n14'>14 15 16 17 18 19 20 21 22 23 24
#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;

static inline void
user_notifications_free(user_notifications_t *notifications)
{
    tll_foreach(*notifications, it)
        free(it->item.text);
    tll_free(*notifications);
}