X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Finterfaces%2Ftimedated%2Ftimedated-gen.c;h=2e100e795a4d4d3eb06129b38295616309c54482;hb=7539ecc4f949316c3c59cda432645158511a1749;hp=13dd73bb5f66d451ad9df700182c78ca4d9a39e0;hpb=5047f6bfd1a812c46128b0d68bf7b93c21c2e76c;p=systembsd.git diff --git a/src/interfaces/timedated/timedated-gen.c b/src/interfaces/timedated/timedated-gen.c index 13dd73b..2e100e7 100644 --- a/src/interfaces/timedated/timedated-gen.c +++ b/src/interfaces/timedated/timedated-gen.c @@ -8,7 +8,7 @@ # include "config.h" #endif -#include "src/interfaces/timedated/timedated-gen.h" +#include "timedated-gen.h" #include #ifdef G_OS_UNIX @@ -163,33 +163,33 @@ _g_value_equal (const GValue *a, const GValue *b) /* ---- 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 }, @@ -198,9 +198,9 @@ static const _ExtendedGDBusArgInfo _timedate1_method_info_set_time_IN_ARG_user_i 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 }; @@ -217,22 +217,22 @@ static const _ExtendedGDBusMethodInfo _timedate1_method_info_set_time = 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 }, @@ -241,8 +241,8 @@ static const _ExtendedGDBusArgInfo _timedate1_method_info_set_timezone_IN_ARG_us 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 }; @@ -259,33 +259,33 @@ static const _ExtendedGDBusMethodInfo _timedate1_method_info_set_timezone = 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 }, @@ -294,9 +294,9 @@ static const _ExtendedGDBusArgInfo _timedate1_method_info_set_local_rtc_IN_ARG_u 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 }; @@ -313,22 +313,22 @@ static const _ExtendedGDBusMethodInfo _timedate1_method_info_set_local_rtc = 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 }, @@ -337,8 +337,8 @@ static const _ExtendedGDBusArgInfo _timedate1_method_info_set_ntp_IN_ARG_user_in 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 }; @@ -390,6 +390,33 @@ static const _ExtendedGDBusPropertyInfo _timedate1_property_info_local_rtc = 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 = { { @@ -403,11 +430,96 @@ 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 }; @@ -453,7 +565,11 @@ timedate1_override_properties (GObjectClass *klass, guint property_id_begin) { 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; } @@ -472,8 +588,12 @@ timedate1_override_properties (GObjectClass *klass, guint property_id_begin) * @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 org.freedesktop.timedate1. @@ -490,9 +610,9 @@ timedate1_default_init (Timedate1Iface *iface) * 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 SetTime() D-Bus method. * @@ -515,8 +635,8 @@ timedate1_default_init (Timedate1Iface *iface) * 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 SetTimezone() D-Bus method. * @@ -539,9 +659,9 @@ timedate1_default_init (Timedate1Iface *iface) * 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 SetLocalRTC() D-Bus method. * @@ -564,8 +684,8 @@ timedate1_default_init (Timedate1Iface *iface) * 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 SetNTP() D-Bus method. * @@ -603,6 +723,15 @@ timedate1_default_init (Timedate1Iface *iface) */ 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 "CanNTP". + * + * 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: * @@ -612,6 +741,33 @@ timedate1_default_init (Timedate1Iface *iface) */ 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 "NTPSynchronized". + * + * 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 "TimeUSec". + * + * 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 "RTCTimeUSec". + * + * 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)); } /** @@ -696,6 +852,37 @@ timedate1_set_local_rtc (Timedate1 *object, gboolean value) g_object_set (G_OBJECT (object), "local-rtc", value, NULL); } +/** + * timedate1_get_can_ntp: (skip) + * @object: A #Timedate1. + * + * Gets the value of the "CanNTP" 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 "CanNTP" 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. @@ -727,12 +914,105 @@ timedate1_set_ntp (Timedate1 *object, gboolean value) g_object_set (G_OBJECT (object), "ntp", value, NULL); } +/** + * timedate1_get_ntpsynchronized: (skip) + * @object: A #Timedate1. + * + * Gets the value of the "NTPSynchronized" 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 "NTPSynchronized" 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 "TimeUSec" 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 "TimeUSec" 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 "RTCTimeUSec" 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 "RTCTimeUSec" 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. @@ -746,9 +1026,9 @@ timedate1_set_ntp (Timedate1 *object, gboolean value) 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) @@ -756,9 +1036,9 @@ timedate1_call_set_time ( 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, @@ -796,9 +1076,9 @@ _out: /** * 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. * @@ -811,9 +1091,9 @@ _out: 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) { @@ -821,9 +1101,9 @@ timedate1_call_set_time_sync ( _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, @@ -840,8 +1120,8 @@ _out: /** * 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. @@ -855,8 +1135,8 @@ _out: 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) @@ -864,8 +1144,8 @@ timedate1_call_set_timezone ( 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, @@ -903,8 +1183,8 @@ _out: /** * 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. * @@ -917,8 +1197,8 @@ _out: 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) { @@ -926,8 +1206,8 @@ timedate1_call_set_timezone_sync ( _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, @@ -944,9 +1224,9 @@ _out: /** * 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. @@ -960,9 +1240,9 @@ _out: 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) @@ -970,9 +1250,9 @@ timedate1_call_set_local_rtc ( 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, @@ -1010,9 +1290,9 @@ _out: /** * 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. * @@ -1025,9 +1305,9 @@ _out: 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) { @@ -1035,9 +1315,9 @@ timedate1_call_set_local_rtc_sync ( _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, @@ -1054,8 +1334,8 @@ _out: /** * 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. @@ -1069,8 +1349,8 @@ _out: 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) @@ -1078,8 +1358,8 @@ timedate1_call_set_ntp ( 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, @@ -1117,8 +1397,8 @@ _out: /** * 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. * @@ -1131,8 +1411,8 @@ _out: 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) { @@ -1140,8 +1420,8 @@ timedate1_call_set_ntp_sync ( _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, @@ -1275,7 +1555,7 @@ timedate1_proxy_get_property (GObject *object, { 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) @@ -1322,7 +1602,7 @@ timedate1_proxy_set_property (GObject *object, { 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), @@ -1434,6 +1714,21 @@ timedate1_proxy_get_local_rtc (Timedate1 *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) { @@ -1449,6 +1744,51 @@ 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) { @@ -1488,7 +1828,11 @@ timedate1_proxy_iface_init (Timedate1Iface *iface) { 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; } /** @@ -1915,7 +2259,7 @@ timedate1_skeleton_finalize (GObject *object) { 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); @@ -1933,7 +2277,7 @@ timedate1_skeleton_get_property (GObject *object, 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); @@ -2050,7 +2394,7 @@ timedate1_skeleton_set_property (GObject *object, 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])) @@ -2075,10 +2419,14 @@ timedate1_skeleton_init (Timedate1Skeleton *skeleton) 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 * @@ -2104,7 +2452,7 @@ timedate1_skeleton_get_local_rtc (Timedate1 *object) } static gboolean -timedate1_skeleton_get_ntp (Timedate1 *object) +timedate1_skeleton_get_can_ntp (Timedate1 *object) { Timedate1Skeleton *skeleton = TIMEDATE1_SKELETON (object); gboolean value; @@ -2114,6 +2462,50 @@ timedate1_skeleton_get_ntp (Timedate1 *object) 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) { @@ -2145,7 +2537,11 @@ timedate1_skeleton_iface_init (Timedate1Iface *iface) { 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; } /**