aboutsummaryrefslogtreecommitdiffstats
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorPo Lu2023-08-17 08:34:32 +0000
committerPo Lu2023-08-17 08:34:32 +0000
commit5856ea5e4e897f4cb5cd1c3c28d14b335fe5cf54 (patch)
treee426f160e0f5480d93abad7844198eb8fb8fc79a /src/termhooks.h
parentc1a45041d66fc479f9b7b94475236d1c2d5001fe (diff)
downloademacs-5856ea5e4e897f4cb5cd1c3c28d14b335fe5cf54.tar.gz
emacs-5856ea5e4e897f4cb5cd1c3c28d14b335fe5cf54.zip
Introduce support for Desktop Notifications on Haiku
* doc/lispref/os.texi (Desktop Notifications): Document Haiku desktop notifications. * etc/NEWS: Announce this change. * lisp/org/org-clock.el (haiku-notifications-notify): New declaration. (org-show-notification): Employ that function. * src/haiku_io.c (haiku_len) <NOTIFICATION_CLICK_EVENT>: Return the length for this type of event. * src/haiku_select.cc (my_team_id, be_display_notification): New functions. * src/haiku_support.cc (my_team_id, ArgvReceived): New functions. * src/haiku_support.h (enum haiku_event_type): New event type NOTIFICATION_CLICK_EVENT. (struct haiku_notification_click_event): New structure. * src/haikuselect.c (haiku_notifications_notify_1) (Fhaiku_notifications_notify): New functions. (syms_of_haikuselect): Register new defsubr. * src/haikuterm.c (haiku_read_socket): * src/haikuselect.h: * src/termhooks.h: Add new events for notification clicks on Haiku.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index d978819aeca..6bf507aae33 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -337,6 +337,12 @@ enum event_kind
337 monitor configuration changed. .timestamp gives the time on 337 monitor configuration changed. .timestamp gives the time on
338 which the monitors changed. */ 338 which the monitors changed. */
339 , MONITORS_CHANGED_EVENT 339 , MONITORS_CHANGED_EVENT
340
341#ifdef HAVE_HAIKU
342 /* In a NOTIFICATION_CLICKED_EVENT, .arg is an integer identifying
343 the notification that was clicked. */
344 , NOTIFICATION_CLICKED_EVENT
345#endif /* HAVE_HAIKU */
340}; 346};
341 347
342/* Bit width of an enum event_kind tag at the start of structs and unions. */ 348/* Bit width of an enum event_kind tag at the start of structs and unions. */