summaryrefslogtreecommitdiff
path: root/plugins/datetime/msd-datetime-mechanism.h
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2020-07-01 09:53:13 +0800
committerraveit65 <[email protected]>2023-09-22 15:57:44 +0200
commit5371ab0196b4559cbb982ab7f957864d5e366ebb (patch)
tree16f14bd6fb479b7820e3e8bf4384e5734347029a /plugins/datetime/msd-datetime-mechanism.h
parent3f0a8070731e8e15f75e91dad715e479eae8a7b3 (diff)
downloadmate-settings-daemon-5371ab0196b4559cbb982ab7f957864d5e366ebb.tar.bz2
mate-settings-daemon-5371ab0196b4559cbb982ab7f957864d5e366ebb.tar.xz
datetime: migrate from dbus-glib to gdbus
Diffstat (limited to 'plugins/datetime/msd-datetime-mechanism.h')
-rw-r--r--plugins/datetime/msd-datetime-mechanism.h39
1 files changed, 3 insertions, 36 deletions
diff --git a/plugins/datetime/msd-datetime-mechanism.h b/plugins/datetime/msd-datetime-mechanism.h
index 3a0f502..e15ca95 100644
--- a/plugins/datetime/msd-datetime-mechanism.h
+++ b/plugins/datetime/msd-datetime-mechanism.h
@@ -23,11 +23,8 @@
#define MSD_DATETIME_MECHANISM_H
#include <glib-object.h>
-#include <dbus/dbus-glib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+G_BEGIN_DECLS
#define MSD_DATETIME_TYPE_MECHANISM (msd_datetime_mechanism_get_type ())
#define MSD_DATETIME_MECHANISM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_DATETIME_TYPE_MECHANISM, MsdDatetimeMechanism))
@@ -64,38 +61,8 @@ GType msd_datetime_mechanism_error_get_type (void);
GQuark msd_datetime_mechanism_error_quark (void);
GType msd_datetime_mechanism_get_type (void);
-MsdDatetimeMechanism *msd_datetime_mechanism_new (void);
+MsdDatetimeMechanism *msd_datetime_mechanism_new (GMainLoop *loop);
-/* exported methods */
-gboolean msd_datetime_mechanism_get_timezone (MsdDatetimeMechanism *mechanism,
- DBusGMethodInvocation *context);
-gboolean msd_datetime_mechanism_set_timezone (MsdDatetimeMechanism *mechanism,
- const char *zone_file,
- DBusGMethodInvocation *context);
-
-gboolean msd_datetime_mechanism_can_set_timezone (MsdDatetimeMechanism *mechanism,
- DBusGMethodInvocation *context);
-
-gboolean msd_datetime_mechanism_set_time (MsdDatetimeMechanism *mechanism,
- gint64 seconds_since_epoch,
- DBusGMethodInvocation *context);
-
-gboolean msd_datetime_mechanism_can_set_time (MsdDatetimeMechanism *mechanism,
- DBusGMethodInvocation *context);
-
-gboolean msd_datetime_mechanism_adjust_time (MsdDatetimeMechanism *mechanism,
- gint64 seconds_to_add,
- DBusGMethodInvocation *context);
-
-gboolean msd_datetime_mechanism_get_hardware_clock_using_utc (MsdDatetimeMechanism *mechanism,
- DBusGMethodInvocation *context);
-
-gboolean msd_datetime_mechanism_set_hardware_clock_using_utc (MsdDatetimeMechanism *mechanism,
- gboolean using_utc,
- DBusGMethodInvocation *context);
-
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* MSD_DATETIME_MECHANISM_H */