summaryrefslogtreecommitdiff
path: root/plugins/datetime/msd-datetime-mechanism.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/datetime/msd-datetime-mechanism.h')
-rw-r--r--plugins/datetime/msd-datetime-mechanism.h41
1 files changed, 4 insertions, 37 deletions
diff --git a/plugins/datetime/msd-datetime-mechanism.h b/plugins/datetime/msd-datetime-mechanism.h
index cc3ad73..e15ca95 100644
--- a/plugins/datetime/msd-datetime-mechanism.h
+++ b/plugins/datetime/msd-datetime-mechanism.h
@@ -1,6 +1,7 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright (C) 2007 David Zeuthen <[email protected]>
+ * Copyright (C) 2012-2021 MATE Developers
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,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))
@@ -61,41 +59,10 @@ typedef enum
GType msd_datetime_mechanism_error_get_type (void);
#define MSD_DATETIME_MECHANISM_TYPE_ERROR (msd_datetime_mechanism_error_get_type ())
-
GQuark msd_datetime_mechanism_error_quark (void);
GType msd_datetime_mechanism_get_type (void);
-MsdDatetimeMechanism *msd_datetime_mechanism_new (void);
-
-/* 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);
+MsdDatetimeMechanism *msd_datetime_mechanism_new (GMainLoop *loop);
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* MSD_DATETIME_MECHANISM_H */