linux_notify.h 621 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (C) 2019 Kovid Goyal <kovid at kovidgoyal.net>
  3. *
  4. * Distributed under terms of the GPL3 license.
  5. */
  6. #pragma once
  7. #include "dbus_glfw.h"
  8. #include "internal.h"
  9. typedef unsigned long long notification_id_type;
  10. typedef void (*GLFWDBusnotificationcreatedfun)(notification_id_type, uint32_t, void*);
  11. typedef void (*GLFWDBusnotificationactivatedfun)(uint32_t, int, const char*);
  12. notification_id_type
  13. glfw_dbus_send_user_notification(const GLFWDBUSNotificationData *n, GLFWDBusnotificationcreatedfun, void*);
  14. void
  15. glfw_dbus_set_user_notification_activated_handler(GLFWDBusnotificationactivatedfun handler);