From 960df18a456f5171a2f5e052278df64d6c663989 Mon Sep 17 00:00:00 2001 From: yetist Date: Tue, 8 May 2018 13:20:19 +0800 Subject: Migrate from dbus-glib to GDBus --- src/daemon/daemon.h | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'src/daemon/daemon.h') 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 #include -#include -#include - #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 */ -- cgit v1.2.1