diff options
author | yetist <[email protected]> | 2018-05-08 13:20:19 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-06-06 17:41:02 +0200 |
commit | 960df18a456f5171a2f5e052278df64d6c663989 (patch) | |
tree | a0e356aad4f681c4f460a0eb378a05065ae75259 /src/daemon/daemon.h | |
parent | f26d490bfe55fe508b46819c41c8557ab3085bb1 (diff) | |
download | mate-notification-daemon-960df18a456f5171a2f5e052278df64d6c663989.tar.bz2 mate-notification-daemon-960df18a456f5171a2f5e052278df64d6c663989.tar.xz |
Migrate from dbus-glib to GDBus
Diffstat (limited to 'src/daemon/daemon.h')
-rw-r--r-- | src/daemon/daemon.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/daemon/daemon.h b/src/daemon/daemon.h index cfa5d7f..b05c8eb 100644 --- a/src/daemon/daemon.h +++ b/src/daemon/daemon.h @@ -28,9 +28,6 @@ #include <glib-object.h> #include <gio/gio.h> -#include <dbus/dbus-glib.h> -#include <dbus/dbus-glib-lowlevel.h> - #define GSETTINGS_SCHEMA "org.mate.NotificationDaemon" #define GSETTINGS_KEY_THEME "theme" #define GSETTINGS_KEY_POPUP_LOCATION "popup-location" @@ -81,23 +78,12 @@ struct _NotifyDaemonClass { GObjectClass parent_class; }; -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ +G_BEGIN_DECLS -GType notify_daemon_get_type(void); +GType notify_daemon_get_type (void) G_GNUC_CONST; +NotifyDaemon* notify_daemon_new (gboolean replace); GQuark notify_daemon_error_quark(void); -gboolean notify_daemon_notify_handler(NotifyDaemon* daemon, const gchar* app_name, guint id, const gchar* icon, const gchar* summary, const gchar* body, gchar** actions, GHashTable* hints, int timeout, DBusGMethodInvocation* context); - -gboolean notify_daemon_close_notification_handler(NotifyDaemon* daemon, guint id, GError** error); - -gboolean notify_daemon_get_capabilities(NotifyDaemon* daemon, char*** out_caps); - -gboolean notify_daemon_get_server_information(NotifyDaemon* daemon, char** out_name, char** out_vendor, char** out_version, char** out_spec_ver); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* NOTIFY_DAEMON_H */ |