23#ifndef MUTT_MUTT_OBSERVER_H
24#define MUTT_MUTT_OBSERVER_H
NotifyType
Notification Types.
int(* observer_t)(struct NotifyCallback *nc)
#define STAILQ_HEAD(name, type)
Data passed to a notification function.
void * event_data
Data from notify_send()
enum NotifyType event_type
Send: Event type, e.g. NT_ACCOUNT.
struct Notify * current
Notify object being observed.
int event_subtype
Send: Event subtype, e.g. NT_ACCOUNT_ADD.
void * global_data
Data from notify_observer_add()
STAILQ_ENTRY(ObserverNode) entries
Linked list.
struct Observer * observer
An Observer.
An observer of notifications.
observer_t callback
Callback function for events.
void * global_data
Private data to pass to callback.
enum NotifyType type
Notification type to observe, e.g. NT_WINDOW.