diff options
Diffstat (limited to 'src/daemon/daemon.h')
| -rw-r--r-- | src/daemon/daemon.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/daemon/daemon.h b/src/daemon/daemon.h index 4c32e12..52cdbab 100644 --- a/src/daemon/daemon.h +++ b/src/daemon/daemon.h @@ -34,8 +34,6 @@ #define NOTIFY_TYPE_DAEMON (notify_daemon_get_type()) G_DECLARE_FINAL_TYPE (NotifyDaemon, notify_daemon, NOTIFY, DAEMON, GObject) -#define NOTIFY_DAEMON_DEFAULT_TIMEOUT 7000 - enum { URGENCY_LOW, URGENCY_NORMAL, @@ -49,6 +47,19 @@ typedef enum { NOTIFYD_CLOSED_RESERVED = 4 } NotifydClosedReason; +typedef struct { + guint id; /* Original notification ID */ + gchar *app_name; /* Application name */ + gchar *app_icon; /* Icon name/path */ + gchar *summary; /* Notification title */ + gchar *body; /* Notification body */ + gint64 timestamp; /* When notification appeared */ + gint64 closed_timestamp; /* When notification was closed */ + NotifydClosedReason reason; /* How it was closed */ + guint urgency; /* Low/Normal/Critical */ + gboolean read; /* Has user seen this in history */ +} NotificationHistoryItem; + G_BEGIN_DECLS NotifyDaemon* notify_daemon_new (gboolean replace, |
