23#ifndef MUTT_MUTT_NOTIFY_H
24#define MUTT_MUTT_NOTIFY_H
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
struct Notify * notify_new(void)
Create a new notifications handler.
void notify_observer_remove_all(struct Notify *notify)
Remove all the observers from an object.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
void notify_free(struct Notify **ptr)
Free a notification handler.
NotifyType
Notification Types.
Observer of notifications.
int(* observer_t)(struct NotifyCallback *nc)
struct Notify * parent
Parent of the notification object.