* @short_description: Generated C code for the org.freedesktop.hostname1 D-Bus interface
*
* This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-hostname1.top_of_page">org.freedesktop.hostname1</link> D-Bus interface in C.
* @short_description: Generated C code for the org.freedesktop.hostname1 D-Bus interface
*
* This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-hostname1.top_of_page">org.freedesktop.hostname1</link> D-Bus interface in C.
- &_hostnamed__method_info_set_hostname_IN_ARG_name,
- &_hostnamed__method_info_set_hostname_IN_ARG_user_interaction,
+ &_hostname1_method_info_set_hostname_IN_ARG_name,
+ &_hostname1_method_info_set_hostname_IN_ARG_user_interaction,
- &_hostnamed__method_info_set_static_hostname_IN_ARG_name,
- &_hostnamed__method_info_set_static_hostname_IN_ARG_user_interaction,
+ &_hostname1_method_info_set_static_hostname_IN_ARG_name,
+ &_hostname1_method_info_set_static_hostname_IN_ARG_user_interaction,
- &_hostnamed__method_info_set_pretty_hostname_IN_ARG_name,
- &_hostnamed__method_info_set_pretty_hostname_IN_ARG_user_interaction,
+ &_hostname1_method_info_set_pretty_hostname_IN_ARG_name,
+ &_hostname1_method_info_set_pretty_hostname_IN_ARG_user_interaction,
- &_hostnamed__method_info_set_icon_name_IN_ARG_name,
- &_hostnamed__method_info_set_icon_name_IN_ARG_user_interaction,
+ &_hostname1_method_info_set_icon_name_IN_ARG_name,
+ &_hostname1_method_info_set_icon_name_IN_ARG_user_interaction,
- &_hostnamed__method_info_set_hostname,
- &_hostnamed__method_info_set_static_hostname,
- &_hostnamed__method_info_set_pretty_hostname,
- &_hostnamed__method_info_set_icon_name,
+ &_hostname1_method_info_set_hostname,
+ &_hostname1_method_info_set_static_hostname,
+ &_hostname1_method_info_set_pretty_hostname,
+ &_hostname1_method_info_set_icon_name,
- &_hostnamed__property_info_hostname,
- &_hostnamed__property_info_static_hostname,
- &_hostnamed__property_info_pretty_hostname,
- &_hostnamed__property_info_icon_name,
+ &_hostname1_property_info_hostname,
+ &_hostname1_property_info_static_hostname,
+ &_hostname1_property_info_pretty_hostname,
+ &_hostname1_property_info_icon_name,
*
* Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-hostname1.top_of_page">org.freedesktop.hostname1</link> D-Bus interface.
*
* Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
*/
GDBusInterfaceInfo *
*
* Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-hostname1.top_of_page">org.freedesktop.hostname1</link> D-Bus interface.
*
* Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
*/
GDBusInterfaceInfo *
* @klass: The class structure for a #GObject<!-- -->-derived class.
* @property_id_begin: The property id to assign to the first overridden property.
*
* @klass: The class structure for a #GObject<!-- -->-derived class.
* @property_id_begin: The property id to assign to the first overridden property.
*
{
g_object_class_override_property (klass, property_id_begin++, "hostname");
g_object_class_override_property (klass, property_id_begin++, "static-hostname");
{
g_object_class_override_property (klass, property_id_begin++, "hostname");
g_object_class_override_property (klass, property_id_begin++, "static-hostname");
- * @handle_set_hostname: Handler for the #Hostnamed::handle-set-hostname signal.
- * @handle_set_icon_name: Handler for the #Hostnamed::handle-set-icon-name signal.
- * @handle_set_pretty_hostname: Handler for the #Hostnamed::handle-set-pretty-hostname signal.
- * @handle_set_static_hostname: Handler for the #Hostnamed::handle-set-static-hostname signal.
- * @get_hostname: Getter for the #Hostnamed:hostname property.
- * @get_icon_name: Getter for the #Hostnamed:icon-name property.
- * @get_pretty_hostname: Getter for the #Hostnamed:pretty-hostname property.
- * @get_static_hostname: Getter for the #Hostnamed:static-hostname property.
+ * @handle_set_hostname: Handler for the #Hostname1::handle-set-hostname signal.
+ * @handle_set_icon_name: Handler for the #Hostname1::handle-set-icon-name signal.
+ * @handle_set_pretty_hostname: Handler for the #Hostname1::handle-set-pretty-hostname signal.
+ * @handle_set_static_hostname: Handler for the #Hostname1::handle-set-static-hostname signal.
+ * @get_hostname: Getter for the #Hostname1:hostname property.
+ * @get_icon_name: Getter for the #Hostname1:icon-name property.
+ * @get_pretty_hostname: Getter for the #Hostname1:pretty-hostname property.
+ * @get_static_hostname: Getter for the #Hostname1:static-hostname property.
-typedef HostnamedIface HostnamedInterface;
-G_DEFINE_INTERFACE (Hostnamed, hostnamed_, G_TYPE_OBJECT);
+typedef Hostname1Iface Hostname1Interface;
+G_DEFINE_INTERFACE (Hostname1, hostname1, G_TYPE_OBJECT);
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetHostname">SetHostname()</link> D-Bus method.
*
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetHostname">SetHostname()</link> D-Bus method.
*
- * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostnamed__complete_set_hostname() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostname1_complete_set_hostname() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-hostname",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-hostname",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetStaticHostname">SetStaticHostname()</link> D-Bus method.
*
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetStaticHostname">SetStaticHostname()</link> D-Bus method.
*
- * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostnamed__complete_set_static_hostname() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostname1_complete_set_static_hostname() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-static-hostname",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-static-hostname",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetPrettyHostname">SetPrettyHostname()</link> D-Bus method.
*
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetPrettyHostname">SetPrettyHostname()</link> D-Bus method.
*
- * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostnamed__complete_set_pretty_hostname() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostname1_complete_set_pretty_hostname() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-pretty-hostname",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-pretty-hostname",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetIconName">SetIconName()</link> D-Bus method.
*
* @invocation: A #GDBusMethodInvocation.
* @arg_name: Argument passed by remote caller.
* @arg_user_interaction: Argument passed by remote caller.
*
* Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-hostname1.SetIconName">SetIconName()</link> D-Bus method.
*
- * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostnamed__complete_set_icon_name() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call hostname1_complete_set_icon_name() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-icon-name",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
*
* Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
*/
g_signal_new ("handle-set-icon-name",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
g_signal_accumulator_true_handled,
NULL,
g_cclosure_marshal_generic,
g_object_interface_install_property (iface,
g_param_spec_string ("hostname", "Hostname", "Hostname", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
g_object_interface_install_property (iface,
g_param_spec_string ("hostname", "Hostname", "Hostname", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
g_object_interface_install_property (iface,
g_param_spec_string ("static-hostname", "StaticHostname", "StaticHostname", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
g_object_interface_install_property (iface,
g_param_spec_string ("static-hostname", "StaticHostname", "StaticHostname", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
g_object_interface_install_property (iface,
g_param_spec_string ("pretty-hostname", "PrettyHostname", "PrettyHostname", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
g_object_interface_install_property (iface,
g_param_spec_string ("pretty-hostname", "PrettyHostname", "PrettyHostname", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.Hostname">"Hostname"</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.
*
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.Hostname">"Hostname"</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.
*
{
gchar *value;
g_object_get (G_OBJECT (object), "hostname", &value, NULL);
{
gchar *value;
g_object_get (G_OBJECT (object), "hostname", &value, NULL);
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.Hostname">"Hostname"</link> D-Bus property to @value.
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.Hostname">"Hostname"</link> D-Bus property to @value.
{
g_object_set (G_OBJECT (object), "hostname", value, NULL);
}
/**
{
g_object_set (G_OBJECT (object), "hostname", value, NULL);
}
/**
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.StaticHostname">"StaticHostname"</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.
*
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.StaticHostname">"StaticHostname"</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.
*
{
gchar *value;
g_object_get (G_OBJECT (object), "static-hostname", &value, NULL);
{
gchar *value;
g_object_get (G_OBJECT (object), "static-hostname", &value, NULL);
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.StaticHostname">"StaticHostname"</link> D-Bus property to @value.
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.StaticHostname">"StaticHostname"</link> D-Bus property to @value.
{
g_object_set (G_OBJECT (object), "static-hostname", value, NULL);
}
/**
{
g_object_set (G_OBJECT (object), "static-hostname", value, NULL);
}
/**
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.PrettyHostname">"PrettyHostname"</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.
*
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.PrettyHostname">"PrettyHostname"</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.
*
{
gchar *value;
g_object_get (G_OBJECT (object), "pretty-hostname", &value, NULL);
{
gchar *value;
g_object_get (G_OBJECT (object), "pretty-hostname", &value, NULL);
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.PrettyHostname">"PrettyHostname"</link> D-Bus property to @value.
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.PrettyHostname">"PrettyHostname"</link> D-Bus property to @value.
{
g_object_set (G_OBJECT (object), "pretty-hostname", value, NULL);
}
/**
{
g_object_set (G_OBJECT (object), "pretty-hostname", value, NULL);
}
/**
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.IconName">"IconName"</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.
*
*
* Gets the value of the <link linkend="gdbus-property-org-freedesktop-hostname1.IconName">"IconName"</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.
*
{
gchar *value;
g_object_get (G_OBJECT (object), "icon-name", &value, NULL);
{
gchar *value;
g_object_get (G_OBJECT (object), "icon-name", &value, NULL);
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.IconName">"IconName"</link> D-Bus property to @value.
* @value: The value to set.
*
* Sets the <link linkend="gdbus-property-org-freedesktop-hostname1.IconName">"IconName"</link> D-Bus property to @value.
{
g_object_set (G_OBJECT (object), "icon-name", value, NULL);
}
/**
{
g_object_set (G_OBJECT (object), "icon-name", value, NULL);
}
/**
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetHostname">SetHostname()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetHostname">SetHostname()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
- * hostnamed__call_set_hostname_finish:
- * @proxy: A #HostnamedProxy.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostnamed__call_set_hostname().
+ * hostname1_call_set_hostname_finish:
+ * @proxy: A #Hostname1Proxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostname1_call_set_hostname().
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetStaticHostname">SetStaticHostname()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetStaticHostname">SetStaticHostname()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
- * hostnamed__call_set_static_hostname_finish:
- * @proxy: A #HostnamedProxy.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostnamed__call_set_static_hostname().
+ * hostname1_call_set_static_hostname_finish:
+ * @proxy: A #Hostname1Proxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostname1_call_set_static_hostname().
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetPrettyHostname">SetPrettyHostname()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetPrettyHostname">SetPrettyHostname()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
- * hostnamed__call_set_pretty_hostname_finish:
- * @proxy: A #HostnamedProxy.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostnamed__call_set_pretty_hostname().
+ * hostname1_call_set_pretty_hostname_finish:
+ * @proxy: A #Hostname1Proxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostname1_call_set_pretty_hostname().
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetIconName">SetIconName()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
*
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-hostname1.SetIconName">SetIconName()</link> D-Bus method on @proxy.
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
- * hostnamed__call_set_icon_name_finish:
- * @proxy: A #HostnamedProxy.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostnamed__call_set_icon_name().
+ * hostname1_call_set_icon_name_finish:
+ * @proxy: A #Hostname1Proxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostname1_call_set_icon_name().
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
* @arg_name: Argument to pass with the method invocation.
* @arg_user_interaction: Argument to pass with the method invocation.
* @cancellable: (allow-none): A #GCancellable or %NULL.
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
const gchar *arg_name,
gboolean arg_user_interaction,
GCancellable *cancellable,
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetHostname">SetHostname()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetHostname">SetHostname()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetStaticHostname">SetStaticHostname()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetStaticHostname">SetStaticHostname()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetPrettyHostname">SetPrettyHostname()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetPrettyHostname">SetPrettyHostname()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetIconName">SetIconName()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
* @invocation: (transfer full): A #GDBusMethodInvocation.
*
* Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-hostname1.SetIconName">SetIconName()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
GDBusMethodInvocation *invocation)
{
g_dbus_method_invocation_return_value (invocation,
-G_DEFINE_TYPE_WITH_CODE (HostnamedProxy, hostnamed__proxy, G_TYPE_DBUS_PROXY,
- G_ADD_PRIVATE (HostnamedProxy)
- G_IMPLEMENT_INTERFACE (HOSTNAMED_TYPE_, hostnamed__proxy_iface_init));
+G_DEFINE_TYPE_WITH_CODE (Hostname1Proxy, hostname1_proxy, G_TYPE_DBUS_PROXY,
+ G_ADD_PRIVATE (Hostname1Proxy)
+ G_IMPLEMENT_INTERFACE (TYPE_HOSTNAME1, hostname1_proxy_iface_init));
-G_DEFINE_TYPE_WITH_CODE (HostnamedProxy, hostnamed__proxy, G_TYPE_DBUS_PROXY,
- G_IMPLEMENT_INTERFACE (HOSTNAMED_TYPE_, hostnamed__proxy_iface_init));
+G_DEFINE_TYPE_WITH_CODE (Hostname1Proxy, hostname1_proxy, G_TYPE_DBUS_PROXY,
+ G_IMPLEMENT_INTERFACE (TYPE_HOSTNAME1, hostname1_proxy_iface_init));
variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));
g_dbus_proxy_call (G_DBUS_PROXY (object),
"org.freedesktop.DBus.Properties.Set",
g_variant_new ("(ssv)", "org.freedesktop.hostname1", info->parent_struct.name, variant),
G_DBUS_CALL_FLAGS_NONE,
-1,
variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));
g_dbus_proxy_call (G_DBUS_PROXY (object),
"org.freedesktop.DBus.Properties.Set",
g_variant_new ("(ssv)", "org.freedesktop.hostname1", info->parent_struct.name, variant),
G_DBUS_CALL_FLAGS_NONE,
-1,
- NULL, (GAsyncReadyCallback) hostnamed__proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
+ NULL, (GAsyncReadyCallback) hostname1_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
const gchar *sender_name G_GNUC_UNUSED,
const gchar *signal_name,
GVariant *parameters)
const gchar *sender_name G_GNUC_UNUSED,
const gchar *signal_name,
GVariant *parameters)
if (info == NULL)
return;
num_params = g_variant_n_children (parameters);
paramv = g_new0 (GValue, num_params + 1);
if (info == NULL)
return;
num_params = g_variant_n_children (parameters);
paramv = g_new0 (GValue, num_params + 1);
g_value_set_object (¶mv[0], proxy);
g_variant_iter_init (&iter, parameters);
n = 1;
g_value_set_object (¶mv[0], proxy);
g_variant_iter_init (&iter, parameters);
n = 1;
g_signal_emitv (paramv, signal_id, 0, NULL);
for (n = 0; n < num_params + 1; n++)
g_value_unset (¶mv[n]);
g_signal_emitv (paramv, signal_id, 0, NULL);
for (n = 0; n < num_params + 1; n++)
g_value_unset (¶mv[n]);
GVariant *changed_properties,
const gchar *const *invalidated_properties)
{
GVariant *changed_properties,
const gchar *const *invalidated_properties)
{
g_variant_get (changed_properties, "a{sv}", &iter);
while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
{
g_variant_get (changed_properties, "a{sv}", &iter);
while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
{
g_datalist_remove_data (&proxy->priv->qdata, key);
if (info != NULL)
g_object_notify (G_OBJECT (proxy), info->hyphen_name);
g_datalist_remove_data (&proxy->priv->qdata, key);
if (info != NULL)
g_object_notify (G_OBJECT (proxy), info->hyphen_name);
g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
if (info != NULL)
g_object_notify (G_OBJECT (proxy), info->hyphen_name);
g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
if (info != NULL)
g_object_notify (G_OBJECT (proxy), info->hyphen_name);
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Hostname");
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Hostname");
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "StaticHostname");
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "StaticHostname");
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PrettyHostname");
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PrettyHostname");
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IconName");
GVariant *variant;
const gchar *value = NULL;
variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IconName");
{
GObjectClass *gobject_class;
GDBusProxyClass *proxy_class;
gobject_class = G_OBJECT_CLASS (klass);
{
GObjectClass *gobject_class;
GDBusProxyClass *proxy_class;
gobject_class = G_OBJECT_CLASS (klass);
- gobject_class->finalize = hostnamed__proxy_finalize;
- gobject_class->get_property = hostnamed__proxy_get_property;
- gobject_class->set_property = hostnamed__proxy_set_property;
+ gobject_class->finalize = hostname1_proxy_finalize;
+ gobject_class->get_property = hostname1_proxy_get_property;
+ gobject_class->set_property = hostname1_proxy_set_property;
- proxy_class->g_signal = hostnamed__proxy_g_signal;
- proxy_class->g_properties_changed = hostnamed__proxy_g_properties_changed;
+ proxy_class->g_signal = hostname1_proxy_g_signal;
+ proxy_class->g_properties_changed = hostname1_proxy_g_properties_changed;
- iface->get_hostname = hostnamed__proxy_get_hostname;
- iface->get_static_hostname = hostnamed__proxy_get_static_hostname;
- iface->get_pretty_hostname = hostnamed__proxy_get_pretty_hostname;
- iface->get_icon_name = hostnamed__proxy_get_icon_name;
+ iface->get_hostname = hostname1_proxy_get_hostname;
+ iface->get_static_hostname = hostname1_proxy_get_static_hostname;
+ iface->get_pretty_hostname = hostname1_proxy_get_pretty_hostname;
+ iface->get_icon_name = hostname1_proxy_get_icon_name;
* @connection: A #GDBusConnection.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
* @connection: A #GDBusConnection.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
* Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-hostname1.top_of_page">org.freedesktop.hostname1</link>. See g_dbus_proxy_new() for more details.
*
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
* Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-hostname1.top_of_page">org.freedesktop.hostname1</link>. See g_dbus_proxy_new() for more details.
*
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- g_async_initable_new_async (HOSTNAMED_TYPE__PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
+ g_async_initable_new_async (TYPE_HOSTNAME1_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
- * hostnamed__proxy_new_finish:
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostnamed__proxy_new().
+ * hostname1_proxy_new_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostname1_proxy_new().
ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
g_object_unref (source_object);
if (ret != NULL)
ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
g_object_unref (source_object);
if (ret != NULL)
* @connection: A #GDBusConnection.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
* @connection: A #GDBusConnection.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
- ret = g_initable_new (HOSTNAMED_TYPE__PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
+ ret = g_initable_new (TYPE_HOSTNAME1_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
* @bus_type: A #GBusType.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: A bus name (well-known or unique).
* @bus_type: A #GBusType.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: A bus name (well-known or unique).
* @callback: A #GAsyncReadyCallback to call when the request is satisfied.
* @user_data: User data to pass to @callback.
*
* @callback: A #GAsyncReadyCallback to call when the request is satisfied.
* @user_data: User data to pass to @callback.
*
- g_async_initable_new_async (HOSTNAMED_TYPE__PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
+ g_async_initable_new_async (TYPE_HOSTNAME1_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
- * hostnamed__proxy_new_for_bus_finish:
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostnamed__proxy_new_for_bus().
+ * hostname1_proxy_new_for_bus_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to hostname1_proxy_new_for_bus().
ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
g_object_unref (source_object);
if (ret != NULL)
ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
g_object_unref (source_object);
if (ret != NULL)
* @bus_type: A #GBusType.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: A bus name (well-known or unique).
* @bus_type: A #GBusType.
* @flags: Flags from the #GDBusProxyFlags enumeration.
* @name: A bus name (well-known or unique).
- ret = g_initable_new (HOSTNAMED_TYPE__PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
+ ret = g_initable_new (TYPE_HOSTNAME1_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.hostname1", NULL);
GDBusConnection *connection G_GNUC_UNUSED,
const gchar *sender G_GNUC_UNUSED,
const gchar *object_path G_GNUC_UNUSED,
GDBusConnection *connection G_GNUC_UNUSED,
const gchar *sender G_GNUC_UNUSED,
const gchar *object_path G_GNUC_UNUSED,
num_params = g_variant_n_children (parameters);
num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
n = 0;
num_params = g_variant_n_children (parameters);
num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
n = 0;
g_value_set_object (¶mv[n++], skeleton);
g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
g_value_set_object (¶mv[n++], invocation);
g_value_set_object (¶mv[n++], skeleton);
g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
g_value_set_object (¶mv[n++], invocation);
g_value_init (&return_value, G_TYPE_BOOLEAN);
g_signal_emitv (paramv, signal_id, 0, &return_value);
if (!g_value_get_boolean (&return_value))
g_value_init (&return_value, G_TYPE_BOOLEAN);
g_signal_emitv (paramv, signal_id, 0, &return_value);
if (!g_value_get_boolean (&return_value))
GDBusConnection *connection G_GNUC_UNUSED,
const gchar *sender G_GNUC_UNUSED,
const gchar *object_path G_GNUC_UNUSED,
GDBusConnection *connection G_GNUC_UNUSED,
const gchar *sender G_GNUC_UNUSED,
const gchar *object_path G_GNUC_UNUSED,
GDBusConnection *connection G_GNUC_UNUSED,
const gchar *sender G_GNUC_UNUSED,
const gchar *object_path G_GNUC_UNUSED,
GDBusConnection *connection G_GNUC_UNUSED,
const gchar *sender G_GNUC_UNUSED,
const gchar *object_path G_GNUC_UNUSED,
- _hostnamed__skeleton_handle_method_call,
- _hostnamed__skeleton_handle_get_property,
- _hostnamed__skeleton_handle_set_property,
+ _hostname1_skeleton_handle_method_call,
+ _hostname1_skeleton_handle_get_property,
+ _hostname1_skeleton_handle_set_property,
- value = _hostnamed__skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.hostname1", info->name, NULL, skeleton);
+ value = _hostname1_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.hostname1", info->name, NULL, skeleton);
-G_DEFINE_TYPE_WITH_CODE (HostnamedSkeleton, hostnamed__skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
- G_ADD_PRIVATE (HostnamedSkeleton)
- G_IMPLEMENT_INTERFACE (HOSTNAMED_TYPE_, hostnamed__skeleton_iface_init));
+G_DEFINE_TYPE_WITH_CODE (Hostname1Skeleton, hostname1_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_ADD_PRIVATE (Hostname1Skeleton)
+ G_IMPLEMENT_INTERFACE (TYPE_HOSTNAME1, hostname1_skeleton_iface_init));
-G_DEFINE_TYPE_WITH_CODE (HostnamedSkeleton, hostnamed__skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
- G_IMPLEMENT_INTERFACE (HOSTNAMED_TYPE_, hostnamed__skeleton_iface_init));
+G_DEFINE_TYPE_WITH_CODE (Hostname1Skeleton, hostname1_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_IMPLEMENT_INTERFACE (TYPE_HOSTNAME1, hostname1_skeleton_iface_init));
g_source_destroy (skeleton->priv->changed_properties_idle_source);
g_main_context_unref (skeleton->priv->context);
g_mutex_clear (&skeleton->priv->lock);
g_source_destroy (skeleton->priv->changed_properties_idle_source);
g_main_context_unref (skeleton->priv->context);
g_mutex_clear (&skeleton->priv->lock);
g_assert (prop_id != 0 && prop_id - 1 < 4);
g_mutex_lock (&skeleton->priv->lock);
g_value_copy (&skeleton->priv->properties[prop_id - 1], value);
g_assert (prop_id != 0 && prop_id - 1 < 4);
g_mutex_lock (&skeleton->priv->lock);
g_value_copy (&skeleton->priv->properties[prop_id - 1], value);
-_hostnamed__schedule_emit_changed (HostnamedSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)
+_hostname1_schedule_emit_changed (Hostname1Skeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)
g_mutex_lock (&skeleton->priv->lock);
if (skeleton->priv->changed_properties != NULL &&
skeleton->priv->changed_properties_idle_source == NULL)
{
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
g_mutex_lock (&skeleton->priv->lock);
if (skeleton->priv->changed_properties != NULL &&
skeleton->priv->changed_properties_idle_source == NULL)
{
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
- g_source_set_callback (skeleton->priv->changed_properties_idle_source, _hostnamed__emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
+ g_source_set_callback (skeleton->priv->changed_properties_idle_source, _hostname1_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
g_source_unref (skeleton->priv->changed_properties_idle_source);
}
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
g_source_unref (skeleton->priv->changed_properties_idle_source);
}
g_assert (prop_id != 0 && prop_id - 1 < 4);
g_mutex_lock (&skeleton->priv->lock);
g_object_freeze_notify (object);
if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))
{
if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL)
g_assert (prop_id != 0 && prop_id - 1 < 4);
g_mutex_lock (&skeleton->priv->lock);
g_object_freeze_notify (object);
if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))
{
if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL)
- _hostnamed__schedule_emit_changed (skeleton, _hostnamed__property_info_pointers[prop_id - 1], prop_id, &skeleton->priv->properties[prop_id - 1]);
+ _hostname1_schedule_emit_changed (skeleton, _hostname1_property_info_pointers[prop_id - 1], prop_id, &skeleton->priv->properties[prop_id - 1]);
g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);
g_object_notify_by_pspec (object, pspec);
}
g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);
g_object_notify_by_pspec (object, pspec);
}
- skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, HOSTNAMED_TYPE__SKELETON, HostnamedSkeletonPrivate);
+ skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_HOSTNAME1_SKELETON, Hostname1SkeletonPrivate);
{
GObjectClass *gobject_class;
GDBusInterfaceSkeletonClass *skeleton_class;
gobject_class = G_OBJECT_CLASS (klass);
{
GObjectClass *gobject_class;
GDBusInterfaceSkeletonClass *skeleton_class;
gobject_class = G_OBJECT_CLASS (klass);
- gobject_class->finalize = hostnamed__skeleton_finalize;
- gobject_class->get_property = hostnamed__skeleton_get_property;
- gobject_class->set_property = hostnamed__skeleton_set_property;
- gobject_class->notify = hostnamed__skeleton_notify;
+ gobject_class->finalize = hostname1_skeleton_finalize;
+ gobject_class->get_property = hostname1_skeleton_get_property;
+ gobject_class->set_property = hostname1_skeleton_set_property;
+ gobject_class->notify = hostname1_skeleton_notify;
- skeleton_class->get_info = hostnamed__skeleton_dbus_interface_get_info;
- skeleton_class->get_properties = hostnamed__skeleton_dbus_interface_get_properties;
- skeleton_class->flush = hostnamed__skeleton_dbus_interface_flush;
- skeleton_class->get_vtable = hostnamed__skeleton_dbus_interface_get_vtable;
+ skeleton_class->get_info = hostname1_skeleton_dbus_interface_get_info;
+ skeleton_class->get_properties = hostname1_skeleton_dbus_interface_get_properties;
+ skeleton_class->flush = hostname1_skeleton_dbus_interface_flush;
+ skeleton_class->get_vtable = hostname1_skeleton_dbus_interface_get_vtable;
- iface->get_hostname = hostnamed__skeleton_get_hostname;
- iface->get_static_hostname = hostnamed__skeleton_get_static_hostname;
- iface->get_pretty_hostname = hostnamed__skeleton_get_pretty_hostname;
- iface->get_icon_name = hostnamed__skeleton_get_icon_name;
+ iface->get_hostname = hostname1_skeleton_get_hostname;
+ iface->get_static_hostname = hostname1_skeleton_get_static_hostname;
+ iface->get_pretty_hostname = hostname1_skeleton_get_pretty_hostname;
+ iface->get_icon_name = hostname1_skeleton_get_icon_name;