# include "config.h"
#endif
-#include "src/interfaces/timedated/timedated-gen.h"
+#include "timedated-gen.h"
#include <string.h>
#ifdef G_OS_UNIX
/* ---- Introspection data for org.freedesktop.timedate1 ---- */
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_time_IN_ARG_usec_utc =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_time_IN_ARG_unnamed_arg0 =
{
{
-1,
- (gchar *) "usec_utc",
+ (gchar *) "unnamed_arg0",
(gchar *) "x",
NULL
},
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_time_IN_ARG_relative =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_time_IN_ARG_unnamed_arg1 =
{
{
-1,
- (gchar *) "relative",
+ (gchar *) "unnamed_arg1",
(gchar *) "b",
NULL
},
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_time_IN_ARG_user_interaction =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_time_IN_ARG_unnamed_arg2 =
{
{
-1,
- (gchar *) "user_interaction",
+ (gchar *) "unnamed_arg2",
(gchar *) "b",
NULL
},
static const _ExtendedGDBusArgInfo * const _timedate1_method_info_set_time_IN_ARG_pointers[] =
{
- &_timedate1_method_info_set_time_IN_ARG_usec_utc,
- &_timedate1_method_info_set_time_IN_ARG_relative,
- &_timedate1_method_info_set_time_IN_ARG_user_interaction,
+ &_timedate1_method_info_set_time_IN_ARG_unnamed_arg0,
+ &_timedate1_method_info_set_time_IN_ARG_unnamed_arg1,
+ &_timedate1_method_info_set_time_IN_ARG_unnamed_arg2,
NULL
};
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_timezone_IN_ARG_timezone =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_timezone_IN_ARG_unnamed_arg0 =
{
{
-1,
- (gchar *) "timezone",
+ (gchar *) "unnamed_arg0",
(gchar *) "s",
NULL
},
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_timezone_IN_ARG_user_interaction =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_timezone_IN_ARG_unnamed_arg1 =
{
{
-1,
- (gchar *) "user_interaction",
+ (gchar *) "unnamed_arg1",
(gchar *) "b",
NULL
},
static const _ExtendedGDBusArgInfo * const _timedate1_method_info_set_timezone_IN_ARG_pointers[] =
{
- &_timedate1_method_info_set_timezone_IN_ARG_timezone,
- &_timedate1_method_info_set_timezone_IN_ARG_user_interaction,
+ &_timedate1_method_info_set_timezone_IN_ARG_unnamed_arg0,
+ &_timedate1_method_info_set_timezone_IN_ARG_unnamed_arg1,
NULL
};
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_local_rtc_IN_ARG_local_rtc =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_local_rtc_IN_ARG_unnamed_arg0 =
{
{
-1,
- (gchar *) "local_rtc",
+ (gchar *) "unnamed_arg0",
(gchar *) "b",
NULL
},
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_local_rtc_IN_ARG_fix_system =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_local_rtc_IN_ARG_unnamed_arg1 =
{
{
-1,
- (gchar *) "fix_system",
+ (gchar *) "unnamed_arg1",
(gchar *) "b",
NULL
},
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_local_rtc_IN_ARG_user_interaction =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_local_rtc_IN_ARG_unnamed_arg2 =
{
{
-1,
- (gchar *) "user_interaction",
+ (gchar *) "unnamed_arg2",
(gchar *) "b",
NULL
},
static const _ExtendedGDBusArgInfo * const _timedate1_method_info_set_local_rtc_IN_ARG_pointers[] =
{
- &_timedate1_method_info_set_local_rtc_IN_ARG_local_rtc,
- &_timedate1_method_info_set_local_rtc_IN_ARG_fix_system,
- &_timedate1_method_info_set_local_rtc_IN_ARG_user_interaction,
+ &_timedate1_method_info_set_local_rtc_IN_ARG_unnamed_arg0,
+ &_timedate1_method_info_set_local_rtc_IN_ARG_unnamed_arg1,
+ &_timedate1_method_info_set_local_rtc_IN_ARG_unnamed_arg2,
NULL
};
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_ntp_IN_ARG_use_ntp =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_ntp_IN_ARG_unnamed_arg0 =
{
{
-1,
- (gchar *) "use_ntp",
+ (gchar *) "unnamed_arg0",
(gchar *) "b",
NULL
},
FALSE
};
-static const _ExtendedGDBusArgInfo _timedate1_method_info_set_ntp_IN_ARG_user_interaction =
+static const _ExtendedGDBusArgInfo _timedate1_method_info_set_ntp_IN_ARG_unnamed_arg1 =
{
{
-1,
- (gchar *) "user_interaction",
+ (gchar *) "unnamed_arg1",
(gchar *) "b",
NULL
},
static const _ExtendedGDBusArgInfo * const _timedate1_method_info_set_ntp_IN_ARG_pointers[] =
{
- &_timedate1_method_info_set_ntp_IN_ARG_use_ntp,
- &_timedate1_method_info_set_ntp_IN_ARG_user_interaction,
+ &_timedate1_method_info_set_ntp_IN_ARG_unnamed_arg0,
+ &_timedate1_method_info_set_ntp_IN_ARG_unnamed_arg1,
NULL
};
FALSE
};
+static const GDBusAnnotationInfo _timedate1_property_can_ntp_annotation_info_0 =
+{
+ -1,
+ (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
+ (gchar *) "false",
+ NULL
+};
+
+static const GDBusAnnotationInfo * const _timedate1_property_can_ntp_annotation_info_pointers[] =
+{
+ &_timedate1_property_can_ntp_annotation_info_0,
+ NULL
+};
+
+static const _ExtendedGDBusPropertyInfo _timedate1_property_info_can_ntp =
+{
+ {
+ -1,
+ (gchar *) "CanNTP",
+ (gchar *) "b",
+ G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
+ (GDBusAnnotationInfo **) &_timedate1_property_can_ntp_annotation_info_pointers
+ },
+ "can-ntp",
+ FALSE
+};
+
static const _ExtendedGDBusPropertyInfo _timedate1_property_info_ntp =
{
{
FALSE
};
+static const GDBusAnnotationInfo _timedate1_property_ntpsynchronized_annotation_info_0 =
+{
+ -1,
+ (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
+ (gchar *) "false",
+ NULL
+};
+
+static const GDBusAnnotationInfo * const _timedate1_property_ntpsynchronized_annotation_info_pointers[] =
+{
+ &_timedate1_property_ntpsynchronized_annotation_info_0,
+ NULL
+};
+
+static const _ExtendedGDBusPropertyInfo _timedate1_property_info_ntpsynchronized =
+{
+ {
+ -1,
+ (gchar *) "NTPSynchronized",
+ (gchar *) "b",
+ G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
+ (GDBusAnnotationInfo **) &_timedate1_property_ntpsynchronized_annotation_info_pointers
+ },
+ "ntpsynchronized",
+ FALSE
+};
+
+static const GDBusAnnotationInfo _timedate1_property_time_usec_annotation_info_0 =
+{
+ -1,
+ (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
+ (gchar *) "false",
+ NULL
+};
+
+static const GDBusAnnotationInfo * const _timedate1_property_time_usec_annotation_info_pointers[] =
+{
+ &_timedate1_property_time_usec_annotation_info_0,
+ NULL
+};
+
+static const _ExtendedGDBusPropertyInfo _timedate1_property_info_time_usec =
+{
+ {
+ -1,
+ (gchar *) "TimeUSec",
+ (gchar *) "t",
+ G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
+ (GDBusAnnotationInfo **) &_timedate1_property_time_usec_annotation_info_pointers
+ },
+ "time-usec",
+ FALSE
+};
+
+static const GDBusAnnotationInfo _timedate1_property_rtctime_usec_annotation_info_0 =
+{
+ -1,
+ (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
+ (gchar *) "false",
+ NULL
+};
+
+static const GDBusAnnotationInfo * const _timedate1_property_rtctime_usec_annotation_info_pointers[] =
+{
+ &_timedate1_property_rtctime_usec_annotation_info_0,
+ NULL
+};
+
+static const _ExtendedGDBusPropertyInfo _timedate1_property_info_rtctime_usec =
+{
+ {
+ -1,
+ (gchar *) "RTCTimeUSec",
+ (gchar *) "t",
+ G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
+ (GDBusAnnotationInfo **) &_timedate1_property_rtctime_usec_annotation_info_pointers
+ },
+ "rtctime-usec",
+ FALSE
+};
+
static const _ExtendedGDBusPropertyInfo * const _timedate1_property_info_pointers[] =
{
&_timedate1_property_info_timezone,
&_timedate1_property_info_local_rtc,
+ &_timedate1_property_info_can_ntp,
&_timedate1_property_info_ntp,
+ &_timedate1_property_info_ntpsynchronized,
+ &_timedate1_property_info_time_usec,
+ &_timedate1_property_info_rtctime_usec,
NULL
};
{
g_object_class_override_property (klass, property_id_begin++, "timezone");
g_object_class_override_property (klass, property_id_begin++, "local-rtc");
+ g_object_class_override_property (klass, property_id_begin++, "can-ntp");
g_object_class_override_property (klass, property_id_begin++, "ntp");
+ g_object_class_override_property (klass, property_id_begin++, "ntpsynchronized");
+ g_object_class_override_property (klass, property_id_begin++, "time-usec");
+ g_object_class_override_property (klass, property_id_begin++, "rtctime-usec");
return property_id_begin - 1;
}
* @handle_set_ntp: Handler for the #Timedate1::handle-set-ntp signal.
* @handle_set_time: Handler for the #Timedate1::handle-set-time signal.
* @handle_set_timezone: Handler for the #Timedate1::handle-set-timezone signal.
+ * @get_can_ntp: Getter for the #Timedate1:can-ntp property.
* @get_local_rtc: Getter for the #Timedate1:local-rtc property.
* @get_ntp: Getter for the #Timedate1:ntp property.
+ * @get_ntpsynchronized: Getter for the #Timedate1:ntpsynchronized property.
+ * @get_rtctime_usec: Getter for the #Timedate1:rtctime-usec property.
+ * @get_time_usec: Getter for the #Timedate1:time-usec property.
* @get_timezone: Getter for the #Timedate1:timezone property.
*
* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-timedate1.top_of_page">org.freedesktop.timedate1</link>.
* Timedate1::handle-set-time:
* @object: A #Timedate1.
* @invocation: A #GDBusMethodInvocation.
- * @arg_usec_utc: Argument passed by remote caller.
- * @arg_relative: Argument passed by remote caller.
- * @arg_user_interaction: Argument passed by remote caller.
+ * @arg_unnamed_arg0: Argument passed by remote caller.
+ * @arg_unnamed_arg1: Argument passed by remote caller.
+ * @arg_unnamed_arg2: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-timedate1.SetTime">SetTime()</link> D-Bus method.
*
* Timedate1::handle-set-timezone:
* @object: A #Timedate1.
* @invocation: A #GDBusMethodInvocation.
- * @arg_timezone: Argument passed by remote caller.
- * @arg_user_interaction: Argument passed by remote caller.
+ * @arg_unnamed_arg0: Argument passed by remote caller.
+ * @arg_unnamed_arg1: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-timedate1.SetTimezone">SetTimezone()</link> D-Bus method.
*
* Timedate1::handle-set-local-rtc:
* @object: A #Timedate1.
* @invocation: A #GDBusMethodInvocation.
- * @arg_local_rtc: Argument passed by remote caller.
- * @arg_fix_system: Argument passed by remote caller.
- * @arg_user_interaction: Argument passed by remote caller.
+ * @arg_unnamed_arg0: Argument passed by remote caller.
+ * @arg_unnamed_arg1: Argument passed by remote caller.
+ * @arg_unnamed_arg2: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-timedate1.SetLocalRTC">SetLocalRTC()</link> D-Bus method.
*
* Timedate1::handle-set-ntp:
* @object: A #Timedate1.
* @invocation: A #GDBusMethodInvocation.
- * @arg_use_ntp: Argument passed by remote caller.
- * @arg_user_interaction: Argument passed by remote caller.
+ * @arg_unnamed_arg0: Argument passed by remote caller.
+ * @arg_unnamed_arg1: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-timedate1.SetNTP">SetNTP()</link> D-Bus method.
*
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("local-rtc", "LocalRTC", "LocalRTC", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ /**
+ * Timedate1:can-ntp:
+ *
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-timedate1.CanNTP">"CanNTP"</link>.
+ *
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
+ */
+ g_object_interface_install_property (iface,
+ g_param_spec_boolean ("can-ntp", "CanNTP", "CanNTP", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* Timedate1:ntp:
*
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("ntp", "NTP", "NTP", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ /**
+ * Timedate1:ntpsynchronized:
+ *
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-timedate1.NTPSynchronized">"NTPSynchronized"</link>.
+ *
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
+ */
+ g_object_interface_install_property (iface,
+ g_param_spec_boolean ("ntpsynchronized", "NTPSynchronized", "NTPSynchronized", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ /**
+ * Timedate1:time-usec:
+ *
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-timedate1.TimeUSec">"TimeUSec"</link>.
+ *
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
+ */
+ g_object_interface_install_property (iface,
+ g_param_spec_uint64 ("time-usec", "TimeUSec", "TimeUSec", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ /**
+ * Timedate1:rtctime-usec:
+ *
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-timedate1.RTCTimeUSec">"RTCTimeUSec"</link>.
+ *
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
+ */
+ g_object_interface_install_property (iface,
+ g_param_spec_uint64 ("rtctime-usec", "RTCTimeUSec", "RTCTimeUSec", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
/**
g_object_set (G_OBJECT (object), "local-rtc", value, NULL);
}
+/**
+ * timedate1_get_can_ntp: (skip)
+ * @object: A #Timedate1.
+ *
+ * Gets the value of the <link linkend="gdbus-property-org-freedesktop-timedate1.CanNTP">"CanNTP"</link> D-Bus property.
+ *
+ * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
+ *
+ * Returns: The property value.
+ */
+gboolean
+timedate1_get_can_ntp (Timedate1 *object)
+{
+ return TIMEDATE1_GET_IFACE (object)->get_can_ntp (object);
+}
+
+/**
+ * timedate1_set_can_ntp: (skip)
+ * @object: A #Timedate1.
+ * @value: The value to set.
+ *
+ * Sets the <link linkend="gdbus-property-org-freedesktop-timedate1.CanNTP">"CanNTP"</link> D-Bus property to @value.
+ *
+ * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
+ */
+void
+timedate1_set_can_ntp (Timedate1 *object, gboolean value)
+{
+ g_object_set (G_OBJECT (object), "can-ntp", value, NULL);
+}
+
/**
* timedate1_get_ntp: (skip)
* @object: A #Timedate1.
g_object_set (G_OBJECT (object), "ntp", value, NULL);
}
+/**
+ * timedate1_get_ntpsynchronized: (skip)
+ * @object: A #Timedate1.
+ *
+ * Gets the value of the <link linkend="gdbus-property-org-freedesktop-timedate1.NTPSynchronized">"NTPSynchronized"</link> D-Bus property.
+ *
+ * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
+ *
+ * Returns: The property value.
+ */
+gboolean
+timedate1_get_ntpsynchronized (Timedate1 *object)
+{
+ return TIMEDATE1_GET_IFACE (object)->get_ntpsynchronized (object);
+}
+
+/**
+ * timedate1_set_ntpsynchronized: (skip)
+ * @object: A #Timedate1.
+ * @value: The value to set.
+ *
+ * Sets the <link linkend="gdbus-property-org-freedesktop-timedate1.NTPSynchronized">"NTPSynchronized"</link> D-Bus property to @value.
+ *
+ * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
+ */
+void
+timedate1_set_ntpsynchronized (Timedate1 *object, gboolean value)
+{
+ g_object_set (G_OBJECT (object), "ntpsynchronized", value, NULL);
+}
+
+/**
+ * timedate1_get_time_usec: (skip)
+ * @object: A #Timedate1.
+ *
+ * Gets the value of the <link linkend="gdbus-property-org-freedesktop-timedate1.TimeUSec">"TimeUSec"</link> D-Bus property.
+ *
+ * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
+ *
+ * Returns: The property value.
+ */
+guint64
+timedate1_get_time_usec (Timedate1 *object)
+{
+ return TIMEDATE1_GET_IFACE (object)->get_time_usec (object);
+}
+
+/**
+ * timedate1_set_time_usec: (skip)
+ * @object: A #Timedate1.
+ * @value: The value to set.
+ *
+ * Sets the <link linkend="gdbus-property-org-freedesktop-timedate1.TimeUSec">"TimeUSec"</link> D-Bus property to @value.
+ *
+ * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
+ */
+void
+timedate1_set_time_usec (Timedate1 *object, guint64 value)
+{
+ g_object_set (G_OBJECT (object), "time-usec", value, NULL);
+}
+
+/**
+ * timedate1_get_rtctime_usec: (skip)
+ * @object: A #Timedate1.
+ *
+ * Gets the value of the <link linkend="gdbus-property-org-freedesktop-timedate1.RTCTimeUSec">"RTCTimeUSec"</link> D-Bus property.
+ *
+ * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
+ *
+ * Returns: The property value.
+ */
+guint64
+timedate1_get_rtctime_usec (Timedate1 *object)
+{
+ return TIMEDATE1_GET_IFACE (object)->get_rtctime_usec (object);
+}
+
+/**
+ * timedate1_set_rtctime_usec: (skip)
+ * @object: A #Timedate1.
+ * @value: The value to set.
+ *
+ * Sets the <link linkend="gdbus-property-org-freedesktop-timedate1.RTCTimeUSec">"RTCTimeUSec"</link> D-Bus property to @value.
+ *
+ * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
+ */
+void
+timedate1_set_rtctime_usec (Timedate1 *object, guint64 value)
+{
+ g_object_set (G_OBJECT (object), "rtctime-usec", value, NULL);
+}
+
/**
* timedate1_call_set_time:
* @proxy: A #Timedate1Proxy.
- * @arg_usec_utc: Argument to pass with the method invocation.
- * @arg_relative: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
+ * @arg_unnamed_arg2: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
* @user_data: User data to pass to @callback.
void
timedate1_call_set_time (
Timedate1 *proxy,
- gint64 arg_usec_utc,
- gboolean arg_relative,
- gboolean arg_user_interaction,
+ gint64 arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
+ gboolean arg_unnamed_arg2,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
g_dbus_proxy_call (G_DBUS_PROXY (proxy),
"SetTime",
g_variant_new ("(xbb)",
- arg_usec_utc,
- arg_relative,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1,
+ arg_unnamed_arg2),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
/**
* timedate1_call_set_time_sync:
* @proxy: A #Timedate1Proxy.
- * @arg_usec_utc: Argument to pass with the method invocation.
- * @arg_relative: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
+ * @arg_unnamed_arg2: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @error: Return location for error or %NULL.
*
gboolean
timedate1_call_set_time_sync (
Timedate1 *proxy,
- gint64 arg_usec_utc,
- gboolean arg_relative,
- gboolean arg_user_interaction,
+ gint64 arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
+ gboolean arg_unnamed_arg2,
GCancellable *cancellable,
GError **error)
{
_ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
"SetTime",
g_variant_new ("(xbb)",
- arg_usec_utc,
- arg_relative,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1,
+ arg_unnamed_arg2),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
/**
* timedate1_call_set_timezone:
* @proxy: A #Timedate1Proxy.
- * @arg_timezone: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
* @user_data: User data to pass to @callback.
void
timedate1_call_set_timezone (
Timedate1 *proxy,
- const gchar *arg_timezone,
- gboolean arg_user_interaction,
+ const gchar *arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
g_dbus_proxy_call (G_DBUS_PROXY (proxy),
"SetTimezone",
g_variant_new ("(sb)",
- arg_timezone,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
/**
* timedate1_call_set_timezone_sync:
* @proxy: A #Timedate1Proxy.
- * @arg_timezone: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @error: Return location for error or %NULL.
*
gboolean
timedate1_call_set_timezone_sync (
Timedate1 *proxy,
- const gchar *arg_timezone,
- gboolean arg_user_interaction,
+ const gchar *arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
GCancellable *cancellable,
GError **error)
{
_ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
"SetTimezone",
g_variant_new ("(sb)",
- arg_timezone,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
/**
* timedate1_call_set_local_rtc:
* @proxy: A #Timedate1Proxy.
- * @arg_local_rtc: Argument to pass with the method invocation.
- * @arg_fix_system: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
+ * @arg_unnamed_arg2: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
* @user_data: User data to pass to @callback.
void
timedate1_call_set_local_rtc (
Timedate1 *proxy,
- gboolean arg_local_rtc,
- gboolean arg_fix_system,
- gboolean arg_user_interaction,
+ gboolean arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
+ gboolean arg_unnamed_arg2,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
g_dbus_proxy_call (G_DBUS_PROXY (proxy),
"SetLocalRTC",
g_variant_new ("(bbb)",
- arg_local_rtc,
- arg_fix_system,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1,
+ arg_unnamed_arg2),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
/**
* timedate1_call_set_local_rtc_sync:
* @proxy: A #Timedate1Proxy.
- * @arg_local_rtc: Argument to pass with the method invocation.
- * @arg_fix_system: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
+ * @arg_unnamed_arg2: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @error: Return location for error or %NULL.
*
gboolean
timedate1_call_set_local_rtc_sync (
Timedate1 *proxy,
- gboolean arg_local_rtc,
- gboolean arg_fix_system,
- gboolean arg_user_interaction,
+ gboolean arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
+ gboolean arg_unnamed_arg2,
GCancellable *cancellable,
GError **error)
{
_ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
"SetLocalRTC",
g_variant_new ("(bbb)",
- arg_local_rtc,
- arg_fix_system,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1,
+ arg_unnamed_arg2),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
/**
* timedate1_call_set_ntp:
* @proxy: A #Timedate1Proxy.
- * @arg_use_ntp: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
* @user_data: User data to pass to @callback.
void
timedate1_call_set_ntp (
Timedate1 *proxy,
- gboolean arg_use_ntp,
- gboolean arg_user_interaction,
+ gboolean arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
g_dbus_proxy_call (G_DBUS_PROXY (proxy),
"SetNTP",
g_variant_new ("(bb)",
- arg_use_ntp,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
/**
* timedate1_call_set_ntp_sync:
* @proxy: A #Timedate1Proxy.
- * @arg_use_ntp: Argument to pass with the method invocation.
- * @arg_user_interaction: Argument to pass with the method invocation.
+ * @arg_unnamed_arg0: Argument to pass with the method invocation.
+ * @arg_unnamed_arg1: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @error: Return location for error or %NULL.
*
gboolean
timedate1_call_set_ntp_sync (
Timedate1 *proxy,
- gboolean arg_use_ntp,
- gboolean arg_user_interaction,
+ gboolean arg_unnamed_arg0,
+ gboolean arg_unnamed_arg1,
GCancellable *cancellable,
GError **error)
{
_ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
"SetNTP",
g_variant_new ("(bb)",
- arg_use_ntp,
- arg_user_interaction),
+ arg_unnamed_arg0,
+ arg_unnamed_arg1),
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
{
const _ExtendedGDBusPropertyInfo *info;
GVariant *variant;
- g_assert (prop_id != 0 && prop_id - 1 < 3);
+ g_assert (prop_id != 0 && prop_id - 1 < 7);
info = _timedate1_property_info_pointers[prop_id - 1];
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name);
if (info->use_gvariant)
{
const _ExtendedGDBusPropertyInfo *info;
GVariant *variant;
- g_assert (prop_id != 0 && prop_id - 1 < 3);
+ g_assert (prop_id != 0 && prop_id - 1 < 7);
info = _timedate1_property_info_pointers[prop_id - 1];
variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));
g_dbus_proxy_call (G_DBUS_PROXY (object),
return value;
}
+static gboolean
+timedate1_proxy_get_can_ntp (Timedate1 *object)
+{
+ Timedate1Proxy *proxy = TIMEDATE1_PROXY (object);
+ GVariant *variant;
+ gboolean value = 0;
+ variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "CanNTP");
+ if (variant != NULL)
+ {
+ value = g_variant_get_boolean (variant);
+ g_variant_unref (variant);
+ }
+ return value;
+}
+
static gboolean
timedate1_proxy_get_ntp (Timedate1 *object)
{
return value;
}
+static gboolean
+timedate1_proxy_get_ntpsynchronized (Timedate1 *object)
+{
+ Timedate1Proxy *proxy = TIMEDATE1_PROXY (object);
+ GVariant *variant;
+ gboolean value = 0;
+ variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "NTPSynchronized");
+ if (variant != NULL)
+ {
+ value = g_variant_get_boolean (variant);
+ g_variant_unref (variant);
+ }
+ return value;
+}
+
+static guint64
+timedate1_proxy_get_time_usec (Timedate1 *object)
+{
+ Timedate1Proxy *proxy = TIMEDATE1_PROXY (object);
+ GVariant *variant;
+ guint64 value = 0;
+ variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "TimeUSec");
+ if (variant != NULL)
+ {
+ value = g_variant_get_uint64 (variant);
+ g_variant_unref (variant);
+ }
+ return value;
+}
+
+static guint64
+timedate1_proxy_get_rtctime_usec (Timedate1 *object)
+{
+ Timedate1Proxy *proxy = TIMEDATE1_PROXY (object);
+ GVariant *variant;
+ guint64 value = 0;
+ variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "RTCTimeUSec");
+ if (variant != NULL)
+ {
+ value = g_variant_get_uint64 (variant);
+ g_variant_unref (variant);
+ }
+ return value;
+}
+
static void
timedate1_proxy_init (Timedate1Proxy *proxy)
{
{
iface->get_timezone = timedate1_proxy_get_timezone;
iface->get_local_rtc = timedate1_proxy_get_local_rtc;
+ iface->get_can_ntp = timedate1_proxy_get_can_ntp;
iface->get_ntp = timedate1_proxy_get_ntp;
+ iface->get_ntpsynchronized = timedate1_proxy_get_ntpsynchronized;
+ iface->get_time_usec = timedate1_proxy_get_time_usec;
+ iface->get_rtctime_usec = timedate1_proxy_get_rtctime_usec;
}
/**
{
Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
guint n;
- for (n = 0; n < 3; n++)
+ for (n = 0; n < 7; n++)
g_value_unset (&skeleton->priv->properties[n]);
g_free (skeleton->priv->properties);
g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
GParamSpec *pspec G_GNUC_UNUSED)
{
Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
- g_assert (prop_id != 0 && prop_id - 1 < 3);
+ g_assert (prop_id != 0 && prop_id - 1 < 7);
g_mutex_lock (&skeleton->priv->lock);
g_value_copy (&skeleton->priv->properties[prop_id - 1], value);
g_mutex_unlock (&skeleton->priv->lock);
GParamSpec *pspec)
{
Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
- g_assert (prop_id != 0 && prop_id - 1 < 3);
+ g_assert (prop_id != 0 && prop_id - 1 < 7);
g_mutex_lock (&skeleton->priv->lock);
g_object_freeze_notify (object);
if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))
g_mutex_init (&skeleton->priv->lock);
skeleton->priv->context = g_main_context_ref_thread_default ();
- skeleton->priv->properties = g_new0 (GValue, 3);
+ skeleton->priv->properties = g_new0 (GValue, 7);
g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING);
g_value_init (&skeleton->priv->properties[1], G_TYPE_BOOLEAN);
g_value_init (&skeleton->priv->properties[2], G_TYPE_BOOLEAN);
+ g_value_init (&skeleton->priv->properties[3], G_TYPE_BOOLEAN);
+ g_value_init (&skeleton->priv->properties[4], G_TYPE_BOOLEAN);
+ g_value_init (&skeleton->priv->properties[5], G_TYPE_UINT64);
+ g_value_init (&skeleton->priv->properties[6], G_TYPE_UINT64);
}
static const gchar *
}
static gboolean
-timedate1_skeleton_get_ntp (Timedate1 *object)
+timedate1_skeleton_get_can_ntp (Timedate1 *object)
{
Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
gboolean value;
return value;
}
+static gboolean
+timedate1_skeleton_get_ntp (Timedate1 *object)
+{
+ Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
+ gboolean value;
+ g_mutex_lock (&skeleton->priv->lock);
+ value = g_value_get_boolean (&(skeleton->priv->properties[3]));
+ g_mutex_unlock (&skeleton->priv->lock);
+ return value;
+}
+
+static gboolean
+timedate1_skeleton_get_ntpsynchronized (Timedate1 *object)
+{
+ Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
+ gboolean value;
+ g_mutex_lock (&skeleton->priv->lock);
+ value = g_value_get_boolean (&(skeleton->priv->properties[4]));
+ g_mutex_unlock (&skeleton->priv->lock);
+ return value;
+}
+
+static guint64
+timedate1_skeleton_get_time_usec (Timedate1 *object)
+{
+ Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
+ guint64 value;
+ g_mutex_lock (&skeleton->priv->lock);
+ value = g_value_get_uint64 (&(skeleton->priv->properties[5]));
+ g_mutex_unlock (&skeleton->priv->lock);
+ return value;
+}
+
+static guint64
+timedate1_skeleton_get_rtctime_usec (Timedate1 *object)
+{
+ Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object);
+ guint64 value;
+ g_mutex_lock (&skeleton->priv->lock);
+ value = g_value_get_uint64 (&(skeleton->priv->properties[6]));
+ g_mutex_unlock (&skeleton->priv->lock);
+ return value;
+}
+
static void
timedate1_skeleton_class_init (Timedate1SkeletonClass *klass)
{
{
iface->get_timezone = timedate1_skeleton_get_timezone;
iface->get_local_rtc = timedate1_skeleton_get_local_rtc;
+ iface->get_can_ntp = timedate1_skeleton_get_can_ntp;
iface->get_ntp = timedate1_skeleton_get_ntp;
+ iface->get_ntpsynchronized = timedate1_skeleton_get_ntpsynchronized;
+ iface->get_time_usec = timedate1_skeleton_get_time_usec;
+ iface->get_rtctime_usec = timedate1_skeleton_get_rtctime_usec;
}
/**