Add API to GLFW for user notifications using DBus

This commit is contained in:
Kovid Goyal
2019-02-02 13:48:26 +05:30
parent 4c49573465
commit 670de085a3
9 changed files with 163 additions and 21 deletions

15
glfw/linux_notify.h vendored Normal file
View File

@@ -0,0 +1,15 @@
/*
* Copyright (C) 2019 Kovid Goyal <kovid at kovidgoyal.net>
*
* Distributed under terms of the GPL3 license.
*/
#pragma once
#include "dbus_glfw.h"
typedef unsigned long long notification_id_type;
typedef void (*GLFWDBusnotificationcreatedfun)(notification_id_type, uint32_t, void*);
notification_id_type
glfw_dbus_send_user_notification(const char *app_name, const char* icon, const char *summary, const char *body, int32_t timeout, GLFWDBusnotificationcreatedfun, void*);