aboutsummaryrefslogtreecommitdiff
path: root/notify.h
diff options
context:
space:
mode:
Diffstat (limited to 'notify.h')
-rw-r--r--notify.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/notify.h b/notify.h
index 6c43e294..cc34ff74 100644
--- a/notify.h
+++ b/notify.h
@@ -23,18 +23,30 @@ enum notify_urgency {
};
struct notification {
+ /*
+ * Set by caller of notify_notify()
+ */
char *id;
char *title;
char *body;
char *icon;
- char *xdg_token;
+
enum notify_when when;
enum notify_urgency urgency;
bool focus;
bool report;
- pid_t pid;
- int stdout_fd;
+ /*
+ * Used internally by notify
+ */
+
+ char *xdg_token; /* XDG activation token, from daemon */
+
+ pid_t pid; /* Notifier command PID */
+ int stdout_fd; /* Notifier command's stdout */
+
+ char *stdout; /* Data we've reado from command's stdout */
+ size_t stdout_sz;
};
bool notify_notify(const struct terminal *term, struct notification *notif);