NeoMutt  2024-02-01-25-ga71e95
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
notify.c
Go to the documentation of this file.
1
29#include "config.h"
30#include <stddef.h>
31#include "mutt/lib.h"
32#include "core/lib.h"
33#include "notify2.h"
34
35struct Notify *ColorsNotify = NULL;
36
41{
44}
45
50{
52}
53
59void mutt_color_observer_add(observer_t callback, void *global_data)
60{
61 notify_observer_add(ColorsNotify, NT_COLOR, callback, global_data);
62}
63
69void mutt_color_observer_remove(observer_t callback, void *global_data)
70{
71 notify_observer_remove(ColorsNotify, callback, global_data);
72}
void mutt_color_observer_remove(observer_t callback, void *global_data)
Remove an observer.
Definition: notify.c:69
struct Notify * ColorsNotify
Notifications: ColorId, EventColor.
Definition: notify.c:35
void mutt_color_observer_add(observer_t callback, void *global_data)
Add an observer.
Definition: notify.c:59
void color_notify_cleanup(void)
Free the Colour notification.
Definition: notify.c:49
void color_notify_init(void)
Initialise the Colour notification.
Definition: notify.c:40
Convenience wrapper for the core headers.
Convenience wrapper for the library headers.
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
Definition: notify.c:230
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
Definition: notify.c:191
struct Notify * notify_new(void)
Create a new notifications handler.
Definition: notify.c:62
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
Definition: notify.c:95
void notify_free(struct Notify **ptr)
Free a notification handler.
Definition: notify.c:75
Colour notifications.
@ NT_COLOR
Colour has changed, NotifyColor, EventColor.
Definition: notify_type.h:41
int(* observer_t)(struct NotifyCallback *nc)
Definition: observer.h:54
Container for Accounts, Notifications.
Definition: neomutt.h:41
struct Notify * notify
Notifications handler.
Definition: neomutt.h:42
Notification API.
Definition: notify.c:53