Lines Matching +full:g +full:- +full:link
2 * This file is generated by gdbus-codegen, do not modify it.
4 * The license of this code is the same as for the D-Bus interface description
45 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
46 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
47 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
48 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
49 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
50 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
51 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
52 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
53 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
54 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
55 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
56 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
57 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
58 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
59 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
60 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
61 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
62 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
63 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
109 g_value_unset (&data->orig_value); in _changed_property_free()
178 /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ in _g_value_equal()
224 data1 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT()
230 data2 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT()
234 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT()
268 data1 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT()
274 data2 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT()
278 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_BOOLEAN__OBJECT()
310 data1 = closure->data; in _g_dbus_codegen_marshal_VOID__VARIANT_STRING()
316 data2 = closure->data; in _g_dbus_codegen_marshal_VOID__VARIANT_STRING()
320 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_VOID__VARIANT_STRING()
352 data1 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT()
358 data2 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT()
362 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT()
397 data1 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING()
403 data2 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING()
407 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING()
441 data1 = closure->data; in _g_dbus_codegen_marshal_VOID__INT_STRING_INT()
447 data2 = closure->data; in _g_dbus_codegen_marshal_VOID__INT_STRING_INT()
451 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_VOID__INT_STRING_INT()
482 data1 = closure->data; in _g_dbus_codegen_marshal_VOID__STRING_STRING()
488 data2 = closure->data; in _g_dbus_codegen_marshal_VOID__STRING_STRING()
492 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_VOID__STRING_STRING()
525 data1 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING()
531 data2 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING()
535 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING()
569 data1 = closure->data; in _g_dbus_codegen_marshal_VOID__STRING_UCHAR()
575 data2 = closure->data; in _g_dbus_codegen_marshal_VOID__STRING_UCHAR()
579 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_VOID__STRING_UCHAR()
611 data1 = closure->data; in _g_dbus_codegen_marshal_VOID__UCHAR_UCHAR_UCHAR_STRING()
617 data2 = closure->data; in _g_dbus_codegen_marshal_VOID__UCHAR_UCHAR_UCHAR_STRING()
621 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_VOID__UCHAR_UCHAR_UCHAR_STRING()
658 data1 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR_UCHAR_UCHAR_STRING()
664 data2 = closure->data; in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR_UCHAR_UCHAR_STRING()
668 (marshal_data ? marshal_data : cc->callback); in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR_UCHAR_UCHAR_STRING()
682 /* ------------------------------------------------------------------------
684 * ------------------------------------------------------------------------
690 * @short_description: Generated C code for the org.openbmc.Hwmon D-Bus interface
692 …ains code for working with the <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_page">org.o…
695 /* ---- Introspection data for org.openbmc.Hwmon ---- */
700 -1,
706 "poll-interval",
714 -1,
720 "sysfs-path",
728 -1,
750 -1,
764 …* Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Hwmon.top_…
787 g_object_class_override_property (klass, property_id_begin++, "poll-interval"); in hwmon_override_properties()
788 g_object_class_override_property (klass, property_id_begin++, "sysfs-path"); in hwmon_override_properties()
790 return property_id_begin - 1; in hwmon_override_properties()
798 …t interface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_p…
804 * @get_poll_interval: Getter for the #Hwmon:poll-interval property.
806 * @get_sysfs_path: Getter for the #Hwmon:sysfs-path property.
808 …* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_pa…
817 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
819 * Hwmon:poll-interval: in G_DEFINE_INTERFACE()
821 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Hwmon.poll_interval">"po… in G_DEFINE_INTERFACE()
823 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
826 …g_param_spec_int ("poll-interval", "poll_interval", "poll_interval", G_MININT32, G_MAXINT32, 0, G_… in G_DEFINE_INTERFACE()
828 * Hwmon:sysfs-path: in G_DEFINE_INTERFACE()
830 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Hwmon.sysfs_path">"sysfs… in G_DEFINE_INTERFACE()
832 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
835 …g_param_spec_string ("sysfs-path", "sysfs_path", "sysfs_path", NULL, G_PARAM_READWRITE | G_PARAM_S… in G_DEFINE_INTERFACE()
839 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Hwmon.scale">"scale"</li… in G_DEFINE_INTERFACE()
841 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
851 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Hwmon.poll_interval">"poll_inter…
853 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
862 return HWMON_GET_IFACE (object)->get_poll_interval (object); in hwmon_get_poll_interval()
870 …* Sets the <link linkend="gdbus-property-org-openbmc-Hwmon.poll_interval">"poll_interval"</link> D…
872 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
877 g_object_set (G_OBJECT (object), "poll-interval", value, NULL); in hwmon_set_poll_interval()
884 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Hwmon.sysfs_path">"sysfs_path"</…
886 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
888 …* The returned value is only valid until the property changes so on the client-side it is only saf…
897 return HWMON_GET_IFACE (object)->get_sysfs_path (object); in hwmon_get_sysfs_path()
904 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Hwmon.sysfs_path">"sysfs_path"</lin…
906 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
914 g_object_get (G_OBJECT (object), "sysfs-path", &value, NULL); in hwmon_dup_sysfs_path()
923 …* Sets the <link linkend="gdbus-property-org-openbmc-Hwmon.sysfs_path">"sysfs_path"</link> D-Bus p…
925 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
930 g_object_set (G_OBJECT (object), "sysfs-path", value, NULL); in hwmon_set_sysfs_path()
937 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Hwmon.scale">"scale"</link> D-Bu…
939 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
948 return HWMON_GET_IFACE (object)->get_scale (object); in hwmon_get_scale()
956 …* Sets the <link linkend="gdbus-property-org-openbmc-Hwmon.scale">"scale"</link> D-Bus property to…
958 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
966 /* ------------------------------------------------------------------------ */
1002 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
1003 G_OBJECT_CLASS (hwmon_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
1014 g_assert (prop_id != 0 && prop_id - 1 < 3); in hwmon_proxy_get_property()
1015 info = (const _ExtendedGDBusPropertyInfo *) _hwmon_property_info_pointers[prop_id - 1]; in hwmon_proxy_get_property()
1016 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in hwmon_proxy_get_property()
1017 if (info->use_gvariant) in hwmon_proxy_get_property()
1043 info->parent_struct.name, in hwmon_proxy_set_property_cb()
1044 error->message, g_quark_to_string (error->domain), error->code); in hwmon_proxy_set_property_cb()
1061 g_assert (prop_id != 0 && prop_id - 1 < 3); in hwmon_proxy_set_property()
1062 info = (const _ExtendedGDBusPropertyInfo *) _hwmon_property_info_pointers[prop_id - 1]; in hwmon_proxy_set_property()
1063 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in hwmon_proxy_set_property()
1066 g_variant_new ("(ssv)", "org.openbmc.Hwmon", info->parent_struct.name, variant), in hwmon_proxy_set_property()
1068 -1, in hwmon_proxy_set_property()
1069 …NULL, (GAsyncReadyCallback) hwmon_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struc… in hwmon_proxy_set_property()
1097 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in hwmon_proxy_g_signal()
1098 if (arg_info->use_gvariant) in hwmon_proxy_g_signal()
1108 signal_id = g_signal_lookup (info->signal_name, TYPE_HWMON); in hwmon_proxy_g_signal()
1129 g_datalist_remove_data (&proxy->priv->qdata, key); in hwmon_proxy_g_properties_changed()
1131 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in hwmon_proxy_g_properties_changed()
1137 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in hwmon_proxy_g_properties_changed()
1139 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in hwmon_proxy_g_properties_changed()
1192 proxy->priv = hwmon_proxy_get_instance_private (proxy); in hwmon_proxy_init()
1194 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_HWMON_PROXY, HwmonProxyPrivate); in hwmon_proxy_init()
1207 gobject_class->finalize = hwmon_proxy_finalize; in hwmon_proxy_class_init()
1208 gobject_class->get_property = hwmon_proxy_get_property; in hwmon_proxy_class_init()
1209 gobject_class->set_property = hwmon_proxy_set_property; in hwmon_proxy_class_init()
1212 proxy_class->g_signal = hwmon_proxy_g_signal; in hwmon_proxy_class_init()
1213 proxy_class->g_properties_changed = hwmon_proxy_g_properties_changed; in hwmon_proxy_class_init()
1225 iface->get_poll_interval = hwmon_proxy_get_poll_interval; in hwmon_proxy_iface_init()
1226 iface->get_sysfs_path = hwmon_proxy_get_sysfs_path; in hwmon_proxy_iface_init()
1227 iface->get_scale = hwmon_proxy_get_scale; in hwmon_proxy_iface_init()
1234 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
1240 … creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_p…
1242 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
1257 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in hwmon_proxy_new()
1289 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
1294 … creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_p…
1312 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in hwmon_proxy_new_sync()
1324 * @name: A bus name (well-known or unique).
1332 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
1347 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in hwmon_proxy_new_for_bus()
1379 * @name: A bus name (well-known or unique).
1402 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in hwmon_proxy_new_for_bus_sync()
1410 /* ------------------------------------------------------------------------ */
1458 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _hwmon_skeleton_handle_method_call()
1464 if (info->pass_fdlist) in _hwmon_skeleton_handle_method_call()
1476 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _hwmon_skeleton_handle_method_call()
1477 if (arg_info->use_gvariant) in _hwmon_skeleton_handle_method_call()
1487 signal_id = g_signal_lookup (info->signal_name, TYPE_HWMON); in _hwmon_skeleton_handle_method_call()
1516 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _hwmon_skeleton_handle_get_property()
1523 g_value_init (&value, pspec->value_type); in _hwmon_skeleton_handle_get_property()
1524 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _hwmon_skeleton_handle_get_property()
1525 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _hwmon_skeleton_handle_get_property()
1550 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _hwmon_skeleton_handle_set_property()
1557 if (info->use_gvariant) in _hwmon_skeleton_handle_set_property()
1561 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _hwmon_skeleton_handle_set_property()
1601 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in hwmon_skeleton_dbus_interface_get_properties()
1604 …bject_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Hwmon", info->name, NULL, skeleton… in hwmon_skeleton_dbus_interface_get_properties()
1608 g_variant_builder_add (&builder, "{sv}", info->name, value); in hwmon_skeleton_dbus_interface_get_properties()
1625 g_mutex_lock (&skeleton->priv->lock); in hwmon_skeleton_dbus_interface_flush()
1626 if (skeleton->priv->changed_properties_idle_source != NULL) in hwmon_skeleton_dbus_interface_flush()
1628 g_source_destroy (skeleton->priv->changed_properties_idle_source); in hwmon_skeleton_dbus_interface_flush()
1629 skeleton->priv->changed_properties_idle_source = NULL; in hwmon_skeleton_dbus_interface_flush()
1632 g_mutex_unlock (&skeleton->priv->lock); in hwmon_skeleton_dbus_interface_flush()
1655 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
1656 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
1657 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
1658 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
1659 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
1660 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
1661 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
1662 G_OBJECT_CLASS (hwmon_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
1672 g_assert (prop_id != 0 && prop_id - 1 < 3); in hwmon_skeleton_get_property()
1673 g_mutex_lock (&skeleton->priv->lock); in hwmon_skeleton_get_property()
1674 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in hwmon_skeleton_get_property()
1675 g_mutex_unlock (&skeleton->priv->lock); in hwmon_skeleton_get_property()
1687 g_mutex_lock (&skeleton->priv->lock); in _hwmon_emit_changed()
1690 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _hwmon_emit_changed()
1692 ChangedProperty *cp = l->data; in _hwmon_emit_changed()
1696 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _hwmon_emit_changed()
1697 if (!_g_value_equal (cur_value, &cp->orig_value)) in _hwmon_emit_changed()
1699 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _hwmon_emit_changed()
1700 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _hwmon_emit_changed()
1712 for (ll = connections; ll != NULL; ll = ll->next) in _hwmon_emit_changed()
1714 GDBusConnection *connection = ll->data; in _hwmon_emit_changed()
1731 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _hwmon_emit_changed()
1732 skeleton->priv->changed_properties = NULL; in _hwmon_emit_changed()
1733 skeleton->priv->changed_properties_idle_source = NULL; in _hwmon_emit_changed()
1734 g_mutex_unlock (&skeleton->priv->lock); in _hwmon_emit_changed()
1744 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _hwmon_schedule_emit_changed()
1746 ChangedProperty *i_cp = l->data; in _hwmon_schedule_emit_changed()
1747 if (i_cp->info == info) in _hwmon_schedule_emit_changed()
1756 cp->prop_id = prop_id; in _hwmon_schedule_emit_changed()
1757 cp->info = info; in _hwmon_schedule_emit_changed()
1758 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _hwmon_schedule_emit_changed()
1759 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _hwmon_schedule_emit_changed()
1760 g_value_copy (orig_value, &cp->orig_value); in _hwmon_schedule_emit_changed()
1769 g_mutex_lock (&skeleton->priv->lock); in hwmon_skeleton_notify()
1770 if (skeleton->priv->changed_properties != NULL && in hwmon_skeleton_notify()
1771 skeleton->priv->changed_properties_idle_source == NULL) in hwmon_skeleton_notify()
1773 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in hwmon_skeleton_notify()
1774 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in hwmon_skeleton_notify()
1775 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _hwmon_emit_changed, g_obje… in hwmon_skeleton_notify()
1776 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _hwmon_emit_change… in hwmon_skeleton_notify()
1777 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in hwmon_skeleton_notify()
1778 g_source_unref (skeleton->priv->changed_properties_idle_source); in hwmon_skeleton_notify()
1780 g_mutex_unlock (&skeleton->priv->lock); in hwmon_skeleton_notify()
1791 g_assert (prop_id != 0 && prop_id - 1 < 3); in hwmon_skeleton_set_property()
1792 info = (const _ExtendedGDBusPropertyInfo *) _hwmon_property_info_pointers[prop_id - 1]; in hwmon_skeleton_set_property()
1793 g_mutex_lock (&skeleton->priv->lock); in hwmon_skeleton_set_property()
1795 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in hwmon_skeleton_set_property()
1798 info->emits_changed_signal) in hwmon_skeleton_set_property()
1799 … _hwmon_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in hwmon_skeleton_set_property()
1800 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in hwmon_skeleton_set_property()
1803 g_mutex_unlock (&skeleton->priv->lock); in hwmon_skeleton_set_property()
1811 skeleton->priv = hwmon_skeleton_get_instance_private (skeleton); in hwmon_skeleton_init()
1813 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_HWMON_SKELETON, HwmonSkeletonPrivate); in hwmon_skeleton_init()
1816 g_mutex_init (&skeleton->priv->lock); in hwmon_skeleton_init()
1817 skeleton->priv->context = g_main_context_ref_thread_default (); in hwmon_skeleton_init()
1818 skeleton->priv->properties = g_new0 (GValue, 3); in hwmon_skeleton_init()
1819 g_value_init (&skeleton->priv->properties[0], G_TYPE_INT); in hwmon_skeleton_init()
1820 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in hwmon_skeleton_init()
1821 g_value_init (&skeleton->priv->properties[2], G_TYPE_INT); in hwmon_skeleton_init()
1829 g_mutex_lock (&skeleton->priv->lock); in hwmon_skeleton_get_poll_interval()
1830 value = g_marshal_value_peek_int (&(skeleton->priv->properties[0])); in hwmon_skeleton_get_poll_interval()
1831 g_mutex_unlock (&skeleton->priv->lock); in hwmon_skeleton_get_poll_interval()
1840 g_mutex_lock (&skeleton->priv->lock); in hwmon_skeleton_get_sysfs_path()
1841 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in hwmon_skeleton_get_sysfs_path()
1842 g_mutex_unlock (&skeleton->priv->lock); in hwmon_skeleton_get_sysfs_path()
1851 g_mutex_lock (&skeleton->priv->lock); in hwmon_skeleton_get_scale()
1852 value = g_marshal_value_peek_int (&(skeleton->priv->properties[2])); in hwmon_skeleton_get_scale()
1853 g_mutex_unlock (&skeleton->priv->lock); in hwmon_skeleton_get_scale()
1864 gobject_class->finalize = hwmon_skeleton_finalize; in hwmon_skeleton_class_init()
1865 gobject_class->get_property = hwmon_skeleton_get_property; in hwmon_skeleton_class_init()
1866 gobject_class->set_property = hwmon_skeleton_set_property; in hwmon_skeleton_class_init()
1867 gobject_class->notify = hwmon_skeleton_notify; in hwmon_skeleton_class_init()
1873 skeleton_class->get_info = hwmon_skeleton_dbus_interface_get_info; in hwmon_skeleton_class_init()
1874 skeleton_class->get_properties = hwmon_skeleton_dbus_interface_get_properties; in hwmon_skeleton_class_init()
1875 skeleton_class->flush = hwmon_skeleton_dbus_interface_flush; in hwmon_skeleton_class_init()
1876 skeleton_class->get_vtable = hwmon_skeleton_dbus_interface_get_vtable; in hwmon_skeleton_class_init()
1886 iface->get_poll_interval = hwmon_skeleton_get_poll_interval; in hwmon_skeleton_iface_init()
1887 iface->get_sysfs_path = hwmon_skeleton_get_sysfs_path; in hwmon_skeleton_iface_init()
1888 iface->get_scale = hwmon_skeleton_get_scale; in hwmon_skeleton_iface_init()
1894 … skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_p…
1904 /* ------------------------------------------------------------------------
1906 * ------------------------------------------------------------------------
1912 * @short_description: Generated C code for the org.openbmc.Fan D-Bus interface
1914 …ntains code for working with the <link linkend="gdbus-interface-org-openbmc-Fan.top_of_page">org.o…
1925 /* ---- Introspection data for org.openbmc.Fan ---- */
1930 -1,
1947 -1,
1953 "handle-set-cooling-zone",
1960 -1,
1977 -1,
1983 "handle-get-speed",
1990 -1,
2007 -1,
2013 "handle-set-speed",
2028 -1,
2045 -1,
2050 "speed-changed"
2056 -1,
2061 "tach-error"
2074 -1,
2088 -1,
2094 "cooling-zone",
2102 -1,
2108 "pwm-num",
2124 -1,
2138 …* Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Fan.top_of…
2162 g_object_class_override_property (klass, property_id_begin++, "cooling-zone"); in fan_override_properties()
2163 g_object_class_override_property (klass, property_id_begin++, "pwm-num"); in fan_override_properties()
2164 return property_id_begin - 1; in fan_override_properties()
2237 …act interface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_p…
2243 * @handle_get_speed: Handler for the #Fan::handle-get-speed signal.
2244 * @handle_set_cooling_zone: Handler for the #Fan::handle-set-cooling-zone signal.
2245 * @handle_set_speed: Handler for the #Fan::handle-set-speed signal.
2246 * @get_cooling_zone: Getter for the #Fan:cooling-zone property.
2247 * @get_pwm_num: Getter for the #Fan:pwm-num property.
2249 * @speed_changed: Handler for the #Fan::speed-changed signal.
2250 * @tach_error: Handler for the #Fan::tach-error signal.
2252 …* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_page…
2261 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
2263 * Fan::handle-set-cooling-zone: in G_DEFINE_INTERFACE()
2268 … a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Fan.setCoolingZone">setCo… in G_DEFINE_INTERFACE()
2270 …will handle the invocation (e.g. take a reference to @invocation and eventually call fan_complete_… in G_DEFINE_INTERFACE()
2274 g_signal_new ("handle-set-cooling-zone", in G_DEFINE_INTERFACE()
2286 * Fan::handle-get-speed: in G_DEFINE_INTERFACE()
2290 …d when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Fan.getSpeed">getSp… in G_DEFINE_INTERFACE()
2292 …er will handle the invocation (e.g. take a reference to @invocation and eventually call fan_comple… in G_DEFINE_INTERFACE()
2296 g_signal_new ("handle-get-speed", in G_DEFINE_INTERFACE()
2308 * Fan::handle-set-speed: in G_DEFINE_INTERFACE()
2313 …d when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Fan.setSpeed">setSp… in G_DEFINE_INTERFACE()
2315 …er will handle the invocation (e.g. take a reference to @invocation and eventually call fan_comple… in G_DEFINE_INTERFACE()
2319 g_signal_new ("handle-set-speed", in G_DEFINE_INTERFACE()
2330 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
2332 * Fan::speed-changed: in G_DEFINE_INTERFACE()
2336 …he client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-o… in G_DEFINE_INTERFACE()
2338 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
2341 g_signal_new ("speed-changed", in G_DEFINE_INTERFACE()
2352 * Fan::tach-error: in G_DEFINE_INTERFACE()
2355 …n the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-or… in G_DEFINE_INTERFACE()
2357 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
2360 g_signal_new ("tach-error", in G_DEFINE_INTERFACE()
2370 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
2374 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Fan.speed">"speed"</link… in G_DEFINE_INTERFACE()
2376 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
2381 * Fan:cooling-zone: in G_DEFINE_INTERFACE()
2383 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Fan.cooling_zone">"cooli… in G_DEFINE_INTERFACE()
2385 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
2388 …g_param_spec_int ("cooling-zone", "cooling_zone", "cooling_zone", G_MININT32, G_MAXINT32, 0, G_PAR… in G_DEFINE_INTERFACE()
2390 * Fan:pwm-num: in G_DEFINE_INTERFACE()
2392 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Fan.pwm_num">"pwm_num"</… in G_DEFINE_INTERFACE()
2394 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
2397 …g_param_spec_int ("pwm-num", "pwm_num", "pwm_num", G_MININT32, G_MAXINT32, 0, G_PARAM_READWRITE | … in G_DEFINE_INTERFACE()
2404 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Fan.speed">"speed"</link> D-Bus …
2406 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
2415 return FAN_GET_IFACE (object)->get_speed (object); in fan_get_speed()
2423 …* Sets the <link linkend="gdbus-property-org-openbmc-Fan.speed">"speed"</link> D-Bus property to @…
2425 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
2437 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Fan.cooling_zone">"cooling_zone"…
2439 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
2448 return FAN_GET_IFACE (object)->get_cooling_zone (object); in fan_get_cooling_zone()
2456 …* Sets the <link linkend="gdbus-property-org-openbmc-Fan.cooling_zone">"cooling_zone"</link> D-Bus…
2458 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
2463 g_object_set (G_OBJECT (object), "cooling-zone", value, NULL); in fan_set_cooling_zone()
2470 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Fan.pwm_num">"pwm_num"</link> D-…
2472 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
2481 return FAN_GET_IFACE (object)->get_pwm_num (object); in fan_get_pwm_num()
2489 …* Sets the <link linkend="gdbus-property-org-openbmc-Fan.pwm_num">"pwm_num"</link> D-Bus property …
2491 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
2496 g_object_set (G_OBJECT (object), "pwm-num", value, NULL); in fan_set_pwm_num()
2504 …* Emits the <link linkend="gdbus-signal-org-openbmc-Fan.SpeedChanged">"SpeedChanged"</link> D-Bus …
2518 * Emits the <link linkend="gdbus-signal-org-openbmc-Fan.TachError">"TachError"</link> D-Bus signal.
2535 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Fan.setCoolingZone">setCoolin…
2536 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
2554 -1, in fan_call_set_cooling_zone()
2594 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Fan.setCoolingZone">setCooling…
2613 -1, in fan_call_set_cooling_zone_sync()
2632 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Fan.getSpeed">getSpeed()</lin…
2633 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
2649 -1, in fan_call_get_speed()
2692 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Fan.getSpeed">getSpeed()</link…
2710 -1, in fan_call_get_speed_sync()
2731 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Fan.setSpeed">setSpeed()</lin…
2732 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
2750 -1, in fan_call_set_speed()
2790 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Fan.setSpeed">setSpeed()</link…
2809 -1, in fan_call_set_speed_sync()
2826 …nish handling invocations of the <link linkend="gdbus-method-org-openbmc-Fan.setCoolingZone">setCo…
2845 … to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Fan.getSpeed">getSp…
2865 … to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Fan.setSpeed">setSp…
2878 /* ------------------------------------------------------------------------ */
2914 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
2915 G_OBJECT_CLASS (fan_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
2926 g_assert (prop_id != 0 && prop_id - 1 < 3); in fan_proxy_get_property()
2927 info = (const _ExtendedGDBusPropertyInfo *) _fan_property_info_pointers[prop_id - 1]; in fan_proxy_get_property()
2928 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in fan_proxy_get_property()
2929 if (info->use_gvariant) in fan_proxy_get_property()
2955 info->parent_struct.name, in fan_proxy_set_property_cb()
2956 error->message, g_quark_to_string (error->domain), error->code); in fan_proxy_set_property_cb()
2973 g_assert (prop_id != 0 && prop_id - 1 < 3); in fan_proxy_set_property()
2974 info = (const _ExtendedGDBusPropertyInfo *) _fan_property_info_pointers[prop_id - 1]; in fan_proxy_set_property()
2975 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in fan_proxy_set_property()
2978 g_variant_new ("(ssv)", "org.openbmc.Fan", info->parent_struct.name, variant), in fan_proxy_set_property()
2980 -1, in fan_proxy_set_property()
2981 …NULL, (GAsyncReadyCallback) fan_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); in fan_proxy_set_property()
3009 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in fan_proxy_g_signal()
3010 if (arg_info->use_gvariant) in fan_proxy_g_signal()
3020 signal_id = g_signal_lookup (info->signal_name, TYPE_FAN); in fan_proxy_g_signal()
3041 g_datalist_remove_data (&proxy->priv->qdata, key); in fan_proxy_g_properties_changed()
3043 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in fan_proxy_g_properties_changed()
3049 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in fan_proxy_g_properties_changed()
3051 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in fan_proxy_g_properties_changed()
3104 proxy->priv = fan_proxy_get_instance_private (proxy); in fan_proxy_init()
3106 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_FAN_PROXY, FanProxyPrivate); in fan_proxy_init()
3119 gobject_class->finalize = fan_proxy_finalize; in fan_proxy_class_init()
3120 gobject_class->get_property = fan_proxy_get_property; in fan_proxy_class_init()
3121 gobject_class->set_property = fan_proxy_set_property; in fan_proxy_class_init()
3124 proxy_class->g_signal = fan_proxy_g_signal; in fan_proxy_class_init()
3125 proxy_class->g_properties_changed = fan_proxy_g_properties_changed; in fan_proxy_class_init()
3137 iface->get_speed = fan_proxy_get_speed; in fan_proxy_iface_init()
3138 iface->get_cooling_zone = fan_proxy_get_cooling_zone; in fan_proxy_iface_init()
3139 iface->get_pwm_num = fan_proxy_get_pwm_num; in fan_proxy_iface_init()
3146 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
3152 …ly creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_p…
3154 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
3169 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in fan_proxy_new()
3201 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
3206 …ly creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_p…
3224 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in fan_proxy_new_sync()
3236 * @name: A bus name (well-known or unique).
3244 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
3259 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in fan_proxy_new_for_bus()
3291 * @name: A bus name (well-known or unique).
3314 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in fan_proxy_new_for_bus_sync()
3322 /* ------------------------------------------------------------------------ */
3370 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _fan_skeleton_handle_method_call()
3376 if (info->pass_fdlist) in _fan_skeleton_handle_method_call()
3388 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _fan_skeleton_handle_method_call()
3389 if (arg_info->use_gvariant) in _fan_skeleton_handle_method_call()
3399 signal_id = g_signal_lookup (info->signal_name, TYPE_FAN); in _fan_skeleton_handle_method_call()
3428 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _fan_skeleton_handle_get_property()
3435 g_value_init (&value, pspec->value_type); in _fan_skeleton_handle_get_property()
3436 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _fan_skeleton_handle_get_property()
3437 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _fan_skeleton_handle_get_property()
3462 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _fan_skeleton_handle_set_property()
3469 if (info->use_gvariant) in _fan_skeleton_handle_set_property()
3473 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _fan_skeleton_handle_set_property()
3513 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in fan_skeleton_dbus_interface_get_properties()
3516 …_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Fan", info->name, NULL, skeleton… in fan_skeleton_dbus_interface_get_properties()
3520 g_variant_builder_add (&builder, "{sv}", info->name, value); in fan_skeleton_dbus_interface_get_properties()
3537 g_mutex_lock (&skeleton->priv->lock); in fan_skeleton_dbus_interface_flush()
3538 if (skeleton->priv->changed_properties_idle_source != NULL) in fan_skeleton_dbus_interface_flush()
3540 g_source_destroy (skeleton->priv->changed_properties_idle_source); in fan_skeleton_dbus_interface_flush()
3541 skeleton->priv->changed_properties_idle_source = NULL; in fan_skeleton_dbus_interface_flush()
3544 g_mutex_unlock (&skeleton->priv->lock); in fan_skeleton_dbus_interface_flush()
3563 for (l = connections; l != NULL; l = l->next) in _fan_on_signal_speed_changed()
3565 GDBusConnection *connection = l->data; in _fan_on_signal_speed_changed()
3585 for (l = connections; l != NULL; l = l->next) in _fan_on_signal_tach_error()
3587 GDBusConnection *connection = l->data; in _fan_on_signal_tach_error()
3613 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
3614 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
3615 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
3616 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
3617 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
3618 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
3619 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
3620 G_OBJECT_CLASS (fan_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
3630 g_assert (prop_id != 0 && prop_id - 1 < 3); in fan_skeleton_get_property()
3631 g_mutex_lock (&skeleton->priv->lock); in fan_skeleton_get_property()
3632 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in fan_skeleton_get_property()
3633 g_mutex_unlock (&skeleton->priv->lock); in fan_skeleton_get_property()
3645 g_mutex_lock (&skeleton->priv->lock); in _fan_emit_changed()
3648 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _fan_emit_changed()
3650 ChangedProperty *cp = l->data; in _fan_emit_changed()
3654 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _fan_emit_changed()
3655 if (!_g_value_equal (cur_value, &cp->orig_value)) in _fan_emit_changed()
3657 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _fan_emit_changed()
3658 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _fan_emit_changed()
3670 for (ll = connections; ll != NULL; ll = ll->next) in _fan_emit_changed()
3672 GDBusConnection *connection = ll->data; in _fan_emit_changed()
3689 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _fan_emit_changed()
3690 skeleton->priv->changed_properties = NULL; in _fan_emit_changed()
3691 skeleton->priv->changed_properties_idle_source = NULL; in _fan_emit_changed()
3692 g_mutex_unlock (&skeleton->priv->lock); in _fan_emit_changed()
3702 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _fan_schedule_emit_changed()
3704 ChangedProperty *i_cp = l->data; in _fan_schedule_emit_changed()
3705 if (i_cp->info == info) in _fan_schedule_emit_changed()
3714 cp->prop_id = prop_id; in _fan_schedule_emit_changed()
3715 cp->info = info; in _fan_schedule_emit_changed()
3716 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _fan_schedule_emit_changed()
3717 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _fan_schedule_emit_changed()
3718 g_value_copy (orig_value, &cp->orig_value); in _fan_schedule_emit_changed()
3727 g_mutex_lock (&skeleton->priv->lock); in fan_skeleton_notify()
3728 if (skeleton->priv->changed_properties != NULL && in fan_skeleton_notify()
3729 skeleton->priv->changed_properties_idle_source == NULL) in fan_skeleton_notify()
3731 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in fan_skeleton_notify()
3732 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in fan_skeleton_notify()
3733 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _fan_emit_changed, g_object… in fan_skeleton_notify()
3734 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _fan_emit_changed"… in fan_skeleton_notify()
3735 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in fan_skeleton_notify()
3736 g_source_unref (skeleton->priv->changed_properties_idle_source); in fan_skeleton_notify()
3738 g_mutex_unlock (&skeleton->priv->lock); in fan_skeleton_notify()
3749 g_assert (prop_id != 0 && prop_id - 1 < 3); in fan_skeleton_set_property()
3750 info = (const _ExtendedGDBusPropertyInfo *) _fan_property_info_pointers[prop_id - 1]; in fan_skeleton_set_property()
3751 g_mutex_lock (&skeleton->priv->lock); in fan_skeleton_set_property()
3753 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in fan_skeleton_set_property()
3756 info->emits_changed_signal) in fan_skeleton_set_property()
3757 … _fan_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in fan_skeleton_set_property()
3758 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in fan_skeleton_set_property()
3761 g_mutex_unlock (&skeleton->priv->lock); in fan_skeleton_set_property()
3769 skeleton->priv = fan_skeleton_get_instance_private (skeleton); in fan_skeleton_init()
3771 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_FAN_SKELETON, FanSkeletonPrivate); in fan_skeleton_init()
3774 g_mutex_init (&skeleton->priv->lock); in fan_skeleton_init()
3775 skeleton->priv->context = g_main_context_ref_thread_default (); in fan_skeleton_init()
3776 skeleton->priv->properties = g_new0 (GValue, 3); in fan_skeleton_init()
3777 g_value_init (&skeleton->priv->properties[0], G_TYPE_INT); in fan_skeleton_init()
3778 g_value_init (&skeleton->priv->properties[1], G_TYPE_INT); in fan_skeleton_init()
3779 g_value_init (&skeleton->priv->properties[2], G_TYPE_INT); in fan_skeleton_init()
3787 g_mutex_lock (&skeleton->priv->lock); in fan_skeleton_get_speed()
3788 value = g_marshal_value_peek_int (&(skeleton->priv->properties[0])); in fan_skeleton_get_speed()
3789 g_mutex_unlock (&skeleton->priv->lock); in fan_skeleton_get_speed()
3798 g_mutex_lock (&skeleton->priv->lock); in fan_skeleton_get_cooling_zone()
3799 value = g_marshal_value_peek_int (&(skeleton->priv->properties[1])); in fan_skeleton_get_cooling_zone()
3800 g_mutex_unlock (&skeleton->priv->lock); in fan_skeleton_get_cooling_zone()
3809 g_mutex_lock (&skeleton->priv->lock); in fan_skeleton_get_pwm_num()
3810 value = g_marshal_value_peek_int (&(skeleton->priv->properties[2])); in fan_skeleton_get_pwm_num()
3811 g_mutex_unlock (&skeleton->priv->lock); in fan_skeleton_get_pwm_num()
3822 gobject_class->finalize = fan_skeleton_finalize; in fan_skeleton_class_init()
3823 gobject_class->get_property = fan_skeleton_get_property; in fan_skeleton_class_init()
3824 gobject_class->set_property = fan_skeleton_set_property; in fan_skeleton_class_init()
3825 gobject_class->notify = fan_skeleton_notify; in fan_skeleton_class_init()
3831 skeleton_class->get_info = fan_skeleton_dbus_interface_get_info; in fan_skeleton_class_init()
3832 skeleton_class->get_properties = fan_skeleton_dbus_interface_get_properties; in fan_skeleton_class_init()
3833 skeleton_class->flush = fan_skeleton_dbus_interface_flush; in fan_skeleton_class_init()
3834 skeleton_class->get_vtable = fan_skeleton_dbus_interface_get_vtable; in fan_skeleton_class_init()
3844 iface->speed_changed = _fan_on_signal_speed_changed; in fan_skeleton_iface_init()
3845 iface->tach_error = _fan_on_signal_tach_error; in fan_skeleton_iface_init()
3846 iface->get_speed = fan_skeleton_get_speed; in fan_skeleton_iface_init()
3847 iface->get_cooling_zone = fan_skeleton_get_cooling_zone; in fan_skeleton_iface_init()
3848 iface->get_pwm_num = fan_skeleton_get_pwm_num; in fan_skeleton_iface_init()
3854 … a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_p…
3864 /* ------------------------------------------------------------------------
3866 * ------------------------------------------------------------------------
3872 * @short_description: Generated C code for the org.openbmc.SensorValue D-Bus interface
3874 …ode for working with the <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_page">org.o…
3886 /* ---- Introspection data for org.openbmc.SensorValue ---- */
3891 -1,
3897 "handle-init",
3904 -1,
3921 -1,
3927 "handle-get-value",
3934 -1,
3951 -1,
3957 "handle-set-value",
3972 -1,
3983 -1,
4001 -1,
4012 -1,
4023 -1,
4040 -1,
4059 -1,
4073 -1,
4087 -1,
4093 "poll-interval",
4101 -1,
4115 -1,
4139 -1,
4146 "sensor-value",
4153 …s a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-SensorValue.top…
4178 g_object_class_override_property (klass, property_id_begin++, "poll-interval"); in sensor_value_override_properties()
4181 return property_id_begin - 1; in sensor_value_override_properties()
4267 …rface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
4273 * @handle_get_value: Handler for the #SensorValue::handle-get-value signal.
4274 * @handle_init: Handler for the #SensorValue::handle-init signal.
4275 * @handle_set_value: Handler for the #SensorValue::handle-set-value signal.
4277 * @get_poll_interval: Getter for the #SensorValue:poll-interval property.
4285 …tual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
4294 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
4296 * SensorValue::handle-init: in G_DEFINE_INTERFACE()
4300 …d when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-SensorValue.init">i… in G_DEFINE_INTERFACE()
4302 … will handle the invocation (e.g. take a reference to @invocation and eventually call sensor_value… in G_DEFINE_INTERFACE()
4306 g_signal_new ("handle-init", in G_DEFINE_INTERFACE()
4318 * SensorValue::handle-get-value: in G_DEFINE_INTERFACE()
4322 …en a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-SensorValue.getValue">g… in G_DEFINE_INTERFACE()
4324 …ill handle the invocation (e.g. take a reference to @invocation and eventually call sensor_value_c… in G_DEFINE_INTERFACE()
4328 g_signal_new ("handle-get-value", in G_DEFINE_INTERFACE()
4340 * SensorValue::handle-set-value: in G_DEFINE_INTERFACE()
4345 …en a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-SensorValue.setValue">s… in G_DEFINE_INTERFACE()
4347 …ill handle the invocation (e.g. take a reference to @invocation and eventually call sensor_value_c… in G_DEFINE_INTERFACE()
4351 g_signal_new ("handle-set-value", in G_DEFINE_INTERFACE()
4362 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
4369 …the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-… in G_DEFINE_INTERFACE()
4371 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
4388 …n the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-or… in G_DEFINE_INTERFACE()
4390 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
4408 …e client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-op… in G_DEFINE_INTERFACE()
4410 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
4423 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
4427 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorValue.value">"valu… in G_DEFINE_INTERFACE()
4429 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
4436 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorValue.units">"unit… in G_DEFINE_INTERFACE()
4438 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
4443 * SensorValue:poll-interval: in G_DEFINE_INTERFACE()
4445 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorValue.poll_interva… in G_DEFINE_INTERFACE()
4447 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
4450 …g_param_spec_int ("poll-interval", "poll_interval", "poll_interval", G_MININT32, G_MAXINT32, 0, G_… in G_DEFINE_INTERFACE()
4454 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorValue.heatbeat">"h… in G_DEFINE_INTERFACE()
4456 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
4463 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorValue.settable">"s… in G_DEFINE_INTERFACE()
4465 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
4475 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorValue.value">"value"</link…
4477 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
4479 …* The returned value is only valid until the property changes so on the client-side it is only saf…
4488 return SENSOR_VALUE_GET_IFACE (object)->get_value (object); in sensor_value_get_value()
4495 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorValue.value">"value"</link> D…
4497 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
4514 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorValue.value">"value"</link> D-Bus prope…
4516 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
4528 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorValue.units">"units"</link…
4530 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
4532 …* The returned value is only valid until the property changes so on the client-side it is only saf…
4541 return SENSOR_VALUE_GET_IFACE (object)->get_units (object); in sensor_value_get_units()
4548 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorValue.units">"units"</link> D…
4550 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
4567 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorValue.units">"units"</link> D-Bus prope…
4569 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
4581 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorValue.poll_interval">"poll…
4583 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
4592 return SENSOR_VALUE_GET_IFACE (object)->get_poll_interval (object); in sensor_value_get_poll_interval()
4600 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorValue.poll_interval">"poll_interval"</l…
4602 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
4607 g_object_set (G_OBJECT (object), "poll-interval", value, NULL); in sensor_value_set_poll_interval()
4614 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorValue.heatbeat">"heatbeat"…
4616 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
4625 return SENSOR_VALUE_GET_IFACE (object)->get_heatbeat (object); in sensor_value_get_heatbeat()
4633 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorValue.heatbeat">"heatbeat"</link> D-Bus…
4635 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
4647 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorValue.settable">"settable"…
4649 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
4658 return SENSOR_VALUE_GET_IFACE (object)->get_settable (object); in sensor_value_get_settable()
4666 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorValue.settable">"settable"</link> D-Bus…
4668 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
4682 …* Emits the <link linkend="gdbus-signal-org-openbmc-SensorValue.Changed">"Changed"</link> D-Bus si…
4697 * Emits the <link linkend="gdbus-signal-org-openbmc-SensorValue.Error">"Error"</link> D-Bus signal.
4711 …* Emits the <link linkend="gdbus-signal-org-openbmc-SensorValue.Heartbeat">"Heartbeat"</link> D-Bu…
4728 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorValue.init">init()</lin…
4729 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
4745 -1, in sensor_value_call_init()
4784 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorValue.init">init()</link…
4801 -1, in sensor_value_call_init_sync()
4820 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorValue.getValue">getValu…
4821 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
4837 -1, in sensor_value_call_get_value()
4880 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorValue.getValue">getValue…
4898 -1, in sensor_value_call_get_value_sync()
4919 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorValue.setValue">setValu…
4920 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
4938 -1, in sensor_value_call_set_value()
4978 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorValue.setValue">setValue…
4997 -1, in sensor_value_call_set_value_sync()
5014 … to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-SensorValue.init">i…
5033 …finish handling invocations of the <link linkend="gdbus-method-org-openbmc-SensorValue.getValue">g…
5053 …finish handling invocations of the <link linkend="gdbus-method-org-openbmc-SensorValue.setValue">s…
5066 /* ------------------------------------------------------------------------ */
5102 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
5103 G_OBJECT_CLASS (sensor_value_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
5114 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_value_proxy_get_property()
5115 info = (const _ExtendedGDBusPropertyInfo *) _sensor_value_property_info_pointers[prop_id - 1]; in sensor_value_proxy_get_property()
5116 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in sensor_value_proxy_get_property()
5117 if (info->use_gvariant) in sensor_value_proxy_get_property()
5143 info->parent_struct.name, in sensor_value_proxy_set_property_cb()
5144 error->message, g_quark_to_string (error->domain), error->code); in sensor_value_proxy_set_property_cb()
5161 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_value_proxy_set_property()
5162 info = (const _ExtendedGDBusPropertyInfo *) _sensor_value_property_info_pointers[prop_id - 1]; in sensor_value_proxy_set_property()
5163 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in sensor_value_proxy_set_property()
5166 g_variant_new ("(ssv)", "org.openbmc.SensorValue", info->parent_struct.name, variant), in sensor_value_proxy_set_property()
5168 -1, in sensor_value_proxy_set_property()
5169 …NULL, (GAsyncReadyCallback) sensor_value_proxy_set_property_cb, (GDBusPropertyInfo *) &info->paren… in sensor_value_proxy_set_property()
5197 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in sensor_value_proxy_g_signal()
5198 if (arg_info->use_gvariant) in sensor_value_proxy_g_signal()
5208 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_VALUE); in sensor_value_proxy_g_signal()
5229 g_datalist_remove_data (&proxy->priv->qdata, key); in sensor_value_proxy_g_properties_changed()
5231 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_value_proxy_g_properties_changed()
5237 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in sensor_value_proxy_g_properties_changed()
5239 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_value_proxy_g_properties_changed()
5320 proxy->priv = sensor_value_proxy_get_instance_private (proxy); in sensor_value_proxy_init()
5322 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_SENSOR_VALUE_PROXY, SensorValueProxyPrivate… in sensor_value_proxy_init()
5335 gobject_class->finalize = sensor_value_proxy_finalize; in sensor_value_proxy_class_init()
5336 gobject_class->get_property = sensor_value_proxy_get_property; in sensor_value_proxy_class_init()
5337 gobject_class->set_property = sensor_value_proxy_set_property; in sensor_value_proxy_class_init()
5340 proxy_class->g_signal = sensor_value_proxy_g_signal; in sensor_value_proxy_class_init()
5341 proxy_class->g_properties_changed = sensor_value_proxy_g_properties_changed; in sensor_value_proxy_class_init()
5353 iface->get_value = sensor_value_proxy_get_value; in sensor_value_proxy_iface_init()
5354 iface->get_units = sensor_value_proxy_get_units; in sensor_value_proxy_iface_init()
5355 iface->get_poll_interval = sensor_value_proxy_get_poll_interval; in sensor_value_proxy_iface_init()
5356 iface->get_heatbeat = sensor_value_proxy_get_heatbeat; in sensor_value_proxy_iface_init()
5357 iface->get_settable = sensor_value_proxy_get_settable; in sensor_value_proxy_iface_init()
5364 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
5370 …es a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
5372 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
5387 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_value_proxy_new()
5419 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
5424 …es a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
5442 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_value_proxy_new_sync()
5454 * @name: A bus name (well-known or unique).
5462 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
5477 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_value_proxy_new_for_bus()
5509 * @name: A bus name (well-known or unique).
5532 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_value_proxy_new_for_bus_sync()
5540 /* ------------------------------------------------------------------------ */
5588 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _sensor_value_skeleton_handle_method_call()
5594 if (info->pass_fdlist) in _sensor_value_skeleton_handle_method_call()
5606 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _sensor_value_skeleton_handle_method_call()
5607 if (arg_info->use_gvariant) in _sensor_value_skeleton_handle_method_call()
5617 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_VALUE); in _sensor_value_skeleton_handle_method_call()
5646 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_value_skeleton_handle_get_property()
5653 g_value_init (&value, pspec->value_type); in _sensor_value_skeleton_handle_get_property()
5654 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_value_skeleton_handle_get_property()
5655 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _sensor_value_skeleton_handle_get_property()
5680 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_value_skeleton_handle_set_property()
5687 if (info->use_gvariant) in _sensor_value_skeleton_handle_set_property()
5691 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_value_skeleton_handle_set_property()
5731 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in sensor_value_skeleton_dbus_interface_get_properties()
5734 …path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.SensorValue", info->name, NULL, skeleton… in sensor_value_skeleton_dbus_interface_get_properties()
5738 g_variant_builder_add (&builder, "{sv}", info->name, value); in sensor_value_skeleton_dbus_interface_get_properties()
5755 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_dbus_interface_flush()
5756 if (skeleton->priv->changed_properties_idle_source != NULL) in sensor_value_skeleton_dbus_interface_flush()
5758 g_source_destroy (skeleton->priv->changed_properties_idle_source); in sensor_value_skeleton_dbus_interface_flush()
5759 skeleton->priv->changed_properties_idle_source = NULL; in sensor_value_skeleton_dbus_interface_flush()
5762 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_dbus_interface_flush()
5783 for (l = connections; l != NULL; l = l->next) in _sensor_value_on_signal_changed()
5785 GDBusConnection *connection = l->data; in _sensor_value_on_signal_changed()
5805 for (l = connections; l != NULL; l = l->next) in _sensor_value_on_signal_error()
5807 GDBusConnection *connection = l->data; in _sensor_value_on_signal_error()
5829 for (l = connections; l != NULL; l = l->next) in _sensor_value_on_signal_heartbeat()
5831 GDBusConnection *connection = l->data; in _sensor_value_on_signal_heartbeat()
5857 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
5858 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
5859 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
5860 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
5861 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
5862 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
5863 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
5864 G_OBJECT_CLASS (sensor_value_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
5874 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_value_skeleton_get_property()
5875 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_get_property()
5876 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in sensor_value_skeleton_get_property()
5877 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_get_property()
5889 g_mutex_lock (&skeleton->priv->lock); in _sensor_value_emit_changed()
5892 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _sensor_value_emit_changed()
5894 ChangedProperty *cp = l->data; in _sensor_value_emit_changed()
5898 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _sensor_value_emit_changed()
5899 if (!_g_value_equal (cur_value, &cp->orig_value)) in _sensor_value_emit_changed()
5901 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _sensor_value_emit_changed()
5902 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _sensor_value_emit_changed()
5914 for (ll = connections; ll != NULL; ll = ll->next) in _sensor_value_emit_changed()
5916 GDBusConnection *connection = ll->data; in _sensor_value_emit_changed()
5933 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _sensor_value_emit_changed()
5934 skeleton->priv->changed_properties = NULL; in _sensor_value_emit_changed()
5935 skeleton->priv->changed_properties_idle_source = NULL; in _sensor_value_emit_changed()
5936 g_mutex_unlock (&skeleton->priv->lock); in _sensor_value_emit_changed()
5946 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _sensor_value_schedule_emit_changed()
5948 ChangedProperty *i_cp = l->data; in _sensor_value_schedule_emit_changed()
5949 if (i_cp->info == info) in _sensor_value_schedule_emit_changed()
5958 cp->prop_id = prop_id; in _sensor_value_schedule_emit_changed()
5959 cp->info = info; in _sensor_value_schedule_emit_changed()
5960 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _sensor_value_schedule_emit_changed()
5961 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _sensor_value_schedule_emit_changed()
5962 g_value_copy (orig_value, &cp->orig_value); in _sensor_value_schedule_emit_changed()
5971 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_notify()
5972 if (skeleton->priv->changed_properties != NULL && in sensor_value_skeleton_notify()
5973 skeleton->priv->changed_properties_idle_source == NULL) in sensor_value_skeleton_notify()
5975 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in sensor_value_skeleton_notify()
5976 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in sensor_value_skeleton_notify()
5977 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_value_emit_changed,… in sensor_value_skeleton_notify()
5978 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_value_emit… in sensor_value_skeleton_notify()
5979 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in sensor_value_skeleton_notify()
5980 g_source_unref (skeleton->priv->changed_properties_idle_source); in sensor_value_skeleton_notify()
5982 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_notify()
5993 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_value_skeleton_set_property()
5994 info = (const _ExtendedGDBusPropertyInfo *) _sensor_value_property_info_pointers[prop_id - 1]; in sensor_value_skeleton_set_property()
5995 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_set_property()
5997 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in sensor_value_skeleton_set_property()
6000 info->emits_changed_signal) in sensor_value_skeleton_set_property()
6001 …or_value_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in sensor_value_skeleton_set_property()
6002 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in sensor_value_skeleton_set_property()
6005 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_set_property()
6013 skeleton->priv = sensor_value_skeleton_get_instance_private (skeleton); in sensor_value_skeleton_init()
6015 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_SENSOR_VALUE_SKELETON, SensorValueSke… in sensor_value_skeleton_init()
6018 g_mutex_init (&skeleton->priv->lock); in sensor_value_skeleton_init()
6019 skeleton->priv->context = g_main_context_ref_thread_default (); in sensor_value_skeleton_init()
6020 skeleton->priv->properties = g_new0 (GValue, 5); in sensor_value_skeleton_init()
6021 g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); in sensor_value_skeleton_init()
6022 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in sensor_value_skeleton_init()
6023 g_value_init (&skeleton->priv->properties[2], G_TYPE_INT); in sensor_value_skeleton_init()
6024 g_value_init (&skeleton->priv->properties[3], G_TYPE_INT); in sensor_value_skeleton_init()
6025 g_value_init (&skeleton->priv->properties[4], G_TYPE_BOOLEAN); in sensor_value_skeleton_init()
6033 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_get_value()
6034 value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); in sensor_value_skeleton_get_value()
6035 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_get_value()
6044 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_get_units()
6045 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in sensor_value_skeleton_get_units()
6046 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_get_units()
6055 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_get_poll_interval()
6056 value = g_marshal_value_peek_int (&(skeleton->priv->properties[2])); in sensor_value_skeleton_get_poll_interval()
6057 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_get_poll_interval()
6066 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_get_heatbeat()
6067 value = g_marshal_value_peek_int (&(skeleton->priv->properties[3])); in sensor_value_skeleton_get_heatbeat()
6068 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_get_heatbeat()
6077 g_mutex_lock (&skeleton->priv->lock); in sensor_value_skeleton_get_settable()
6078 value = g_marshal_value_peek_boolean (&(skeleton->priv->properties[4])); in sensor_value_skeleton_get_settable()
6079 g_mutex_unlock (&skeleton->priv->lock); in sensor_value_skeleton_get_settable()
6090 gobject_class->finalize = sensor_value_skeleton_finalize; in sensor_value_skeleton_class_init()
6091 gobject_class->get_property = sensor_value_skeleton_get_property; in sensor_value_skeleton_class_init()
6092 gobject_class->set_property = sensor_value_skeleton_set_property; in sensor_value_skeleton_class_init()
6093 gobject_class->notify = sensor_value_skeleton_notify; in sensor_value_skeleton_class_init()
6099 skeleton_class->get_info = sensor_value_skeleton_dbus_interface_get_info; in sensor_value_skeleton_class_init()
6100 skeleton_class->get_properties = sensor_value_skeleton_dbus_interface_get_properties; in sensor_value_skeleton_class_init()
6101 skeleton_class->flush = sensor_value_skeleton_dbus_interface_flush; in sensor_value_skeleton_class_init()
6102 skeleton_class->get_vtable = sensor_value_skeleton_dbus_interface_get_vtable; in sensor_value_skeleton_class_init()
6112 iface->changed = _sensor_value_on_signal_changed; in sensor_value_skeleton_iface_init()
6113 iface->error = _sensor_value_on_signal_error; in sensor_value_skeleton_iface_init()
6114 iface->heartbeat = _sensor_value_on_signal_heartbeat; in sensor_value_skeleton_iface_init()
6115 iface->get_value = sensor_value_skeleton_get_value; in sensor_value_skeleton_iface_init()
6116 iface->get_units = sensor_value_skeleton_get_units; in sensor_value_skeleton_iface_init()
6117 iface->get_poll_interval = sensor_value_skeleton_get_poll_interval; in sensor_value_skeleton_iface_init()
6118 iface->get_heatbeat = sensor_value_skeleton_get_heatbeat; in sensor_value_skeleton_iface_init()
6119 iface->get_settable = sensor_value_skeleton_get_settable; in sensor_value_skeleton_iface_init()
6125 …ton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
6135 /* ------------------------------------------------------------------------
6137 * ------------------------------------------------------------------------
6143 * @short_description: Generated C code for the org.openbmc.SensorThreshold D-Bus interface
6145 …for working with the <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_page">org.o…
6157 /* ---- Introspection data for org.openbmc.SensorThreshold ---- */
6162 -1,
6179 -1,
6185 "handle-get-state",
6198 -1,
6209 -1,
6220 -1,
6239 -1,
6245 "lower-critical",
6253 -1,
6259 "lower-warning",
6267 -1,
6273 "upper-warning",
6281 -1,
6287 "upper-critical",
6295 -1,
6319 -1,
6326 "sensor-threshold",
6333 …machine-readable description of the <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top…
6356 g_object_class_override_property (klass, property_id_begin++, "lower-critical"); in sensor_threshold_override_properties()
6357 g_object_class_override_property (klass, property_id_begin++, "lower-warning"); in sensor_threshold_override_properties()
6358 g_object_class_override_property (klass, property_id_begin++, "upper-warning"); in sensor_threshold_override_properties()
6359 g_object_class_override_property (klass, property_id_begin++, "upper-critical"); in sensor_threshold_override_properties()
6361 return property_id_begin - 1; in sensor_threshold_override_properties()
6421 …e type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
6427 * @handle_get_state: Handler for the #SensorThreshold::handle-get-state signal.
6428 * @get_lower_critical: Getter for the #SensorThreshold:lower-critical property.
6429 * @get_lower_warning: Getter for the #SensorThreshold:lower-warning property.
6431 * @get_upper_critical: Getter for the #SensorThreshold:upper-critical property.
6432 * @get_upper_warning: Getter for the #SensorThreshold:upper-warning property.
6437 … table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
6446 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
6448 * SensorThreshold::handle-get-state: in G_DEFINE_INTERFACE()
6452 … a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-SensorThreshold.getState"… in G_DEFINE_INTERFACE()
6454 …l handle the invocation (e.g. take a reference to @invocation and eventually call sensor_threshold… in G_DEFINE_INTERFACE()
6458 g_signal_new ("handle-get-state", in G_DEFINE_INTERFACE()
6469 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
6474 …e client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-op… in G_DEFINE_INTERFACE()
6476 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
6493 … client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ope… in G_DEFINE_INTERFACE()
6495 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
6512 …he client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-o… in G_DEFINE_INTERFACE()
6514 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
6527 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
6529 * SensorThreshold:lower-critical: in G_DEFINE_INTERFACE()
6531 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_cr… in G_DEFINE_INTERFACE()
6533 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
6536 …g_param_spec_variant ("lower-critical", "lower_critical", "lower_critical", G_VARIANT_TYPE ("v"), … in G_DEFINE_INTERFACE()
6538 * SensorThreshold:lower-warning: in G_DEFINE_INTERFACE()
6540 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_wa… in G_DEFINE_INTERFACE()
6542 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
6545 …g_param_spec_variant ("lower-warning", "lower_warning", "lower_warning", G_VARIANT_TYPE ("v"), NUL… in G_DEFINE_INTERFACE()
6547 * SensorThreshold:upper-warning: in G_DEFINE_INTERFACE()
6549 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_wa… in G_DEFINE_INTERFACE()
6551 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
6554 …g_param_spec_variant ("upper-warning", "upper_warning", "upper_warning", G_VARIANT_TYPE ("v"), NUL… in G_DEFINE_INTERFACE()
6556 * SensorThreshold:upper-critical: in G_DEFINE_INTERFACE()
6558 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_cr… in G_DEFINE_INTERFACE()
6560 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
6563 …g_param_spec_variant ("upper-critical", "upper_critical", "upper_critical", G_VARIANT_TYPE ("v"), … in G_DEFINE_INTERFACE()
6567 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorThreshold.state">"… in G_DEFINE_INTERFACE()
6569 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
6579 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_critical">…
6581 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6583 …* The returned value is only valid until the property changes so on the client-side it is only saf…
6592 return SENSOR_THRESHOLD_GET_IFACE (object)->get_lower_critical (object); in sensor_threshold_get_lower_critical()
6599 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_critical">"lo…
6601 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6609 g_object_get (G_OBJECT (object), "lower-critical", &value, NULL); in sensor_threshold_dup_lower_critical()
6618 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_critical">"lower_critic…
6620 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6625 g_object_set (G_OBJECT (object), "lower-critical", value, NULL); in sensor_threshold_set_lower_critical()
6632 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_warning">"…
6634 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6636 …* The returned value is only valid until the property changes so on the client-side it is only saf…
6645 return SENSOR_THRESHOLD_GET_IFACE (object)->get_lower_warning (object); in sensor_threshold_get_lower_warning()
6652 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_warning">"low…
6654 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6662 g_object_get (G_OBJECT (object), "lower-warning", &value, NULL); in sensor_threshold_dup_lower_warning()
6671 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorThreshold.lower_warning">"lower_warning…
6673 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6678 g_object_set (G_OBJECT (object), "lower-warning", value, NULL); in sensor_threshold_set_lower_warning()
6685 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_warning">"…
6687 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6689 …* The returned value is only valid until the property changes so on the client-side it is only saf…
6698 return SENSOR_THRESHOLD_GET_IFACE (object)->get_upper_warning (object); in sensor_threshold_get_upper_warning()
6705 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_warning">"upp…
6707 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6715 g_object_get (G_OBJECT (object), "upper-warning", &value, NULL); in sensor_threshold_dup_upper_warning()
6724 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_warning">"upper_warning…
6726 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6731 g_object_set (G_OBJECT (object), "upper-warning", value, NULL); in sensor_threshold_set_upper_warning()
6738 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_critical">…
6740 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6742 …* The returned value is only valid until the property changes so on the client-side it is only saf…
6751 return SENSOR_THRESHOLD_GET_IFACE (object)->get_upper_critical (object); in sensor_threshold_get_upper_critical()
6758 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_critical">"up…
6760 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6768 g_object_get (G_OBJECT (object), "upper-critical", &value, NULL); in sensor_threshold_dup_upper_critical()
6777 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorThreshold.upper_critical">"upper_critic…
6779 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
6784 g_object_set (G_OBJECT (object), "upper-critical", value, NULL); in sensor_threshold_set_upper_critical()
6791 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorThreshold.state">"state"</…
6793 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
6802 return SENSOR_THRESHOLD_GET_IFACE (object)->get_state (object); in sensor_threshold_get_state()
6810 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorThreshold.state">"state"</link> D-Bus p…
6812 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
6824 …* Emits the <link linkend="gdbus-signal-org-openbmc-SensorThreshold.Warning">"Warning"</link> D-Bu…
6837 …* Emits the <link linkend="gdbus-signal-org-openbmc-SensorThreshold.Critical">"Critical"</link> D-…
6850 …* Emits the <link linkend="gdbus-signal-org-openbmc-SensorThreshold.Normal">"Normal"</link> D-Bus …
6866 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorThreshold.getState">get…
6867 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
6883 -1, in sensor_threshold_call_get_state()
6926 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-SensorThreshold.getState">getS…
6944 -1, in sensor_threshold_call_get_state_sync()
6963 …nish handling invocations of the <link linkend="gdbus-method-org-openbmc-SensorThreshold.getState"…
6978 /* ------------------------------------------------------------------------ */
7014 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
7015 G_OBJECT_CLASS (sensor_threshold_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
7026 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_threshold_proxy_get_property()
7027 info = (const _ExtendedGDBusPropertyInfo *) _sensor_threshold_property_info_pointers[prop_id - 1]; in sensor_threshold_proxy_get_property()
7028 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in sensor_threshold_proxy_get_property()
7029 if (info->use_gvariant) in sensor_threshold_proxy_get_property()
7055 info->parent_struct.name, in sensor_threshold_proxy_set_property_cb()
7056 error->message, g_quark_to_string (error->domain), error->code); in sensor_threshold_proxy_set_property_cb()
7073 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_threshold_proxy_set_property()
7074 info = (const _ExtendedGDBusPropertyInfo *) _sensor_threshold_property_info_pointers[prop_id - 1]; in sensor_threshold_proxy_set_property()
7075 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in sensor_threshold_proxy_set_property()
7078 g_variant_new ("(ssv)", "org.openbmc.SensorThreshold", info->parent_struct.name, variant), in sensor_threshold_proxy_set_property()
7080 -1, in sensor_threshold_proxy_set_property()
7081 …ReadyCallback) sensor_threshold_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); in sensor_threshold_proxy_set_property()
7109 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in sensor_threshold_proxy_g_signal()
7110 if (arg_info->use_gvariant) in sensor_threshold_proxy_g_signal()
7120 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_THRESHOLD); in sensor_threshold_proxy_g_signal()
7141 g_datalist_remove_data (&proxy->priv->qdata, key); in sensor_threshold_proxy_g_properties_changed()
7143 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_threshold_proxy_g_properties_changed()
7149 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in sensor_threshold_proxy_g_properties_changed()
7151 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_threshold_proxy_g_properties_changed()
7226 proxy->priv = sensor_threshold_proxy_get_instance_private (proxy); in sensor_threshold_proxy_init()
7228 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProx… in sensor_threshold_proxy_init()
7241 gobject_class->finalize = sensor_threshold_proxy_finalize; in sensor_threshold_proxy_class_init()
7242 gobject_class->get_property = sensor_threshold_proxy_get_property; in sensor_threshold_proxy_class_init()
7243 gobject_class->set_property = sensor_threshold_proxy_set_property; in sensor_threshold_proxy_class_init()
7246 proxy_class->g_signal = sensor_threshold_proxy_g_signal; in sensor_threshold_proxy_class_init()
7247 proxy_class->g_properties_changed = sensor_threshold_proxy_g_properties_changed; in sensor_threshold_proxy_class_init()
7259 iface->get_lower_critical = sensor_threshold_proxy_get_lower_critical; in sensor_threshold_proxy_iface_init()
7260 iface->get_lower_warning = sensor_threshold_proxy_get_lower_warning; in sensor_threshold_proxy_iface_init()
7261 iface->get_upper_warning = sensor_threshold_proxy_get_upper_warning; in sensor_threshold_proxy_iface_init()
7262 iface->get_upper_critical = sensor_threshold_proxy_get_upper_critical; in sensor_threshold_proxy_iface_init()
7263 iface->get_state = sensor_threshold_proxy_get_state; in sensor_threshold_proxy_iface_init()
7270 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
7276 … proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
7278 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
7293 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_threshold_proxy_new()
7325 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
7330 … proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
7348 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_threshold_proxy_new_sync()
7360 * @name: A bus name (well-known or unique).
7368 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
7383 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_threshold_proxy_new_for_bus()
7415 * @name: A bus name (well-known or unique).
7438 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_threshold_proxy_new_for_bus_sync()
7446 /* ------------------------------------------------------------------------ */
7494 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _sensor_threshold_skeleton_handle_method_call()
7500 if (info->pass_fdlist) in _sensor_threshold_skeleton_handle_method_call()
7512 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _sensor_threshold_skeleton_handle_method_call()
7513 if (arg_info->use_gvariant) in _sensor_threshold_skeleton_handle_method_call()
7523 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_THRESHOLD); in _sensor_threshold_skeleton_handle_method_call()
7552 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_threshold_skeleton_handle_get_property()
7559 g_value_init (&value, pspec->value_type); in _sensor_threshold_skeleton_handle_get_property()
7560 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_threshold_skeleton_handle_get_property()
7561 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _sensor_threshold_skeleton_handle_get_property()
7586 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_threshold_skeleton_handle_set_property()
7593 if (info->use_gvariant) in _sensor_threshold_skeleton_handle_set_property()
7597 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_threshold_skeleton_handle_set_property()
7637 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in sensor_threshold_skeleton_dbus_interface_get_properties()
7640 … (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.SensorThreshold", info->name, NULL, skeleton… in sensor_threshold_skeleton_dbus_interface_get_properties()
7644 g_variant_builder_add (&builder, "{sv}", info->name, value); in sensor_threshold_skeleton_dbus_interface_get_properties()
7661 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_dbus_interface_flush()
7662 if (skeleton->priv->changed_properties_idle_source != NULL) in sensor_threshold_skeleton_dbus_interface_flush()
7664 g_source_destroy (skeleton->priv->changed_properties_idle_source); in sensor_threshold_skeleton_dbus_interface_flush()
7665 skeleton->priv->changed_properties_idle_source = NULL; in sensor_threshold_skeleton_dbus_interface_flush()
7668 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_dbus_interface_flush()
7685 for (l = connections; l != NULL; l = l->next) in _sensor_threshold_on_signal_warning()
7687 GDBusConnection *connection = l->data; in _sensor_threshold_on_signal_warning()
7707 for (l = connections; l != NULL; l = l->next) in _sensor_threshold_on_signal_critical()
7709 GDBusConnection *connection = l->data; in _sensor_threshold_on_signal_critical()
7729 for (l = connections; l != NULL; l = l->next) in _sensor_threshold_on_signal_normal()
7731 GDBusConnection *connection = l->data; in _sensor_threshold_on_signal_normal()
7757 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
7758 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
7759 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
7760 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
7761 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
7762 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
7763 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
7764 G_OBJECT_CLASS (sensor_threshold_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
7774 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_threshold_skeleton_get_property()
7775 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_property()
7776 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in sensor_threshold_skeleton_get_property()
7777 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_property()
7789 g_mutex_lock (&skeleton->priv->lock); in _sensor_threshold_emit_changed()
7792 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _sensor_threshold_emit_changed()
7794 ChangedProperty *cp = l->data; in _sensor_threshold_emit_changed()
7798 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _sensor_threshold_emit_changed()
7799 if (!_g_value_equal (cur_value, &cp->orig_value)) in _sensor_threshold_emit_changed()
7801 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _sensor_threshold_emit_changed()
7802 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _sensor_threshold_emit_changed()
7814 for (ll = connections; ll != NULL; ll = ll->next) in _sensor_threshold_emit_changed()
7816 GDBusConnection *connection = ll->data; in _sensor_threshold_emit_changed()
7833 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _sensor_threshold_emit_changed()
7834 skeleton->priv->changed_properties = NULL; in _sensor_threshold_emit_changed()
7835 skeleton->priv->changed_properties_idle_source = NULL; in _sensor_threshold_emit_changed()
7836 g_mutex_unlock (&skeleton->priv->lock); in _sensor_threshold_emit_changed()
7846 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _sensor_threshold_schedule_emit_changed()
7848 ChangedProperty *i_cp = l->data; in _sensor_threshold_schedule_emit_changed()
7849 if (i_cp->info == info) in _sensor_threshold_schedule_emit_changed()
7858 cp->prop_id = prop_id; in _sensor_threshold_schedule_emit_changed()
7859 cp->info = info; in _sensor_threshold_schedule_emit_changed()
7860 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _sensor_threshold_schedule_emit_changed()
7861 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _sensor_threshold_schedule_emit_changed()
7862 g_value_copy (orig_value, &cp->orig_value); in _sensor_threshold_schedule_emit_changed()
7871 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_notify()
7872 if (skeleton->priv->changed_properties != NULL && in sensor_threshold_skeleton_notify()
7873 skeleton->priv->changed_properties_idle_source == NULL) in sensor_threshold_skeleton_notify()
7875 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in sensor_threshold_skeleton_notify()
7876 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in sensor_threshold_skeleton_notify()
7877 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_threshold_emit_chan… in sensor_threshold_skeleton_notify()
7878 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_threshold_… in sensor_threshold_skeleton_notify()
7879 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in sensor_threshold_skeleton_notify()
7880 g_source_unref (skeleton->priv->changed_properties_idle_source); in sensor_threshold_skeleton_notify()
7882 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_notify()
7893 g_assert (prop_id != 0 && prop_id - 1 < 5); in sensor_threshold_skeleton_set_property()
7894 info = (const _ExtendedGDBusPropertyInfo *) _sensor_threshold_property_info_pointers[prop_id - 1]; in sensor_threshold_skeleton_set_property()
7895 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_set_property()
7897 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in sensor_threshold_skeleton_set_property()
7900 info->emits_changed_signal) in sensor_threshold_skeleton_set_property()
7901 …hreshold_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in sensor_threshold_skeleton_set_property()
7902 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in sensor_threshold_skeleton_set_property()
7905 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_set_property()
7913 skeleton->priv = sensor_threshold_skeleton_get_instance_private (skeleton); in sensor_threshold_skeleton_init()
7915 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_SENSOR_THRESHOLD_SKELETON, SensorThre… in sensor_threshold_skeleton_init()
7918 g_mutex_init (&skeleton->priv->lock); in sensor_threshold_skeleton_init()
7919 skeleton->priv->context = g_main_context_ref_thread_default (); in sensor_threshold_skeleton_init()
7920 skeleton->priv->properties = g_new0 (GValue, 5); in sensor_threshold_skeleton_init()
7921 g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); in sensor_threshold_skeleton_init()
7922 g_value_init (&skeleton->priv->properties[1], G_TYPE_VARIANT); in sensor_threshold_skeleton_init()
7923 g_value_init (&skeleton->priv->properties[2], G_TYPE_VARIANT); in sensor_threshold_skeleton_init()
7924 g_value_init (&skeleton->priv->properties[3], G_TYPE_VARIANT); in sensor_threshold_skeleton_init()
7925 g_value_init (&skeleton->priv->properties[4], G_TYPE_UCHAR); in sensor_threshold_skeleton_init()
7933 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_lower_critical()
7934 value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); in sensor_threshold_skeleton_get_lower_critical()
7935 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_lower_critical()
7944 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_lower_warning()
7945 value = g_marshal_value_peek_variant (&(skeleton->priv->properties[1])); in sensor_threshold_skeleton_get_lower_warning()
7946 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_lower_warning()
7955 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_upper_warning()
7956 value = g_marshal_value_peek_variant (&(skeleton->priv->properties[2])); in sensor_threshold_skeleton_get_upper_warning()
7957 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_upper_warning()
7966 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_upper_critical()
7967 value = g_marshal_value_peek_variant (&(skeleton->priv->properties[3])); in sensor_threshold_skeleton_get_upper_critical()
7968 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_upper_critical()
7977 g_mutex_lock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_state()
7978 value = g_marshal_value_peek_uchar (&(skeleton->priv->properties[4])); in sensor_threshold_skeleton_get_state()
7979 g_mutex_unlock (&skeleton->priv->lock); in sensor_threshold_skeleton_get_state()
7990 gobject_class->finalize = sensor_threshold_skeleton_finalize; in sensor_threshold_skeleton_class_init()
7991 gobject_class->get_property = sensor_threshold_skeleton_get_property; in sensor_threshold_skeleton_class_init()
7992 gobject_class->set_property = sensor_threshold_skeleton_set_property; in sensor_threshold_skeleton_class_init()
7993 gobject_class->notify = sensor_threshold_skeleton_notify; in sensor_threshold_skeleton_class_init()
7999 skeleton_class->get_info = sensor_threshold_skeleton_dbus_interface_get_info; in sensor_threshold_skeleton_class_init()
8000 skeleton_class->get_properties = sensor_threshold_skeleton_dbus_interface_get_properties; in sensor_threshold_skeleton_class_init()
8001 skeleton_class->flush = sensor_threshold_skeleton_dbus_interface_flush; in sensor_threshold_skeleton_class_init()
8002 skeleton_class->get_vtable = sensor_threshold_skeleton_dbus_interface_get_vtable; in sensor_threshold_skeleton_class_init()
8012 iface->warning = _sensor_threshold_on_signal_warning; in sensor_threshold_skeleton_iface_init()
8013 iface->critical = _sensor_threshold_on_signal_critical; in sensor_threshold_skeleton_iface_init()
8014 iface->normal = _sensor_threshold_on_signal_normal; in sensor_threshold_skeleton_iface_init()
8015 iface->get_lower_critical = sensor_threshold_skeleton_get_lower_critical; in sensor_threshold_skeleton_iface_init()
8016 iface->get_lower_warning = sensor_threshold_skeleton_get_lower_warning; in sensor_threshold_skeleton_iface_init()
8017 iface->get_upper_warning = sensor_threshold_skeleton_get_upper_warning; in sensor_threshold_skeleton_iface_init()
8018 iface->get_upper_critical = sensor_threshold_skeleton_get_upper_critical; in sensor_threshold_skeleton_iface_init()
8019 iface->get_state = sensor_threshold_skeleton_get_state; in sensor_threshold_skeleton_iface_init()
8025 …object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
8035 /* ------------------------------------------------------------------------
8037 * ------------------------------------------------------------------------
8043 * @short_description: Generated C code for the org.openbmc.SensorI2c D-Bus interface
8045 … code for working with the <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_page">org.o…
8048 /* ---- Introspection data for org.openbmc.SensorI2c ---- */
8053 -1,
8059 "dev-path",
8067 -1,
8088 -1,
8095 "sensor-i2c",
8102 …ets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-SensorI2c.top…
8125 g_object_class_override_property (klass, property_id_begin++, "dev-path"); in sensor_i2c_override_properties()
8127 return property_id_begin - 1; in sensor_i2c_override_properties()
8135 …terface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
8142 * @get_dev_path: Getter for the #SensorI2c:dev-path property.
8144 …irtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
8153 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
8155 * SensorI2c:dev-path: in G_DEFINE_INTERFACE()
8157 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorI2c.dev_path">"dev… in G_DEFINE_INTERFACE()
8159 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
8162 …g_param_spec_string ("dev-path", "dev_path", "dev_path", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_… in G_DEFINE_INTERFACE()
8166 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorI2c.address">"addr… in G_DEFINE_INTERFACE()
8168 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
8178 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorI2c.dev_path">"dev_path"</…
8180 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
8182 …* The returned value is only valid until the property changes so on the client-side it is only saf…
8191 return SENSOR_I2C_GET_IFACE (object)->get_dev_path (object); in sensor_i2c_get_dev_path()
8198 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorI2c.dev_path">"dev_path"</lin…
8200 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
8208 g_object_get (G_OBJECT (object), "dev-path", &value, NULL); in sensor_i2c_dup_dev_path()
8217 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorI2c.dev_path">"dev_path"</link> D-Bus p…
8219 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
8224 g_object_set (G_OBJECT (object), "dev-path", value, NULL); in sensor_i2c_set_dev_path()
8231 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorI2c.address">"address"</li…
8233 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
8235 …* The returned value is only valid until the property changes so on the client-side it is only saf…
8244 return SENSOR_I2C_GET_IFACE (object)->get_address (object); in sensor_i2c_get_address()
8251 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorI2c.address">"address"</link>…
8253 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
8270 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorI2c.address">"address"</link> D-Bus pro…
8272 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
8280 /* ------------------------------------------------------------------------ */
8316 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
8317 G_OBJECT_CLASS (sensor_i2c_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
8328 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_i2c_proxy_get_property()
8329 info = (const _ExtendedGDBusPropertyInfo *) _sensor_i2c_property_info_pointers[prop_id - 1]; in sensor_i2c_proxy_get_property()
8330 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in sensor_i2c_proxy_get_property()
8331 if (info->use_gvariant) in sensor_i2c_proxy_get_property()
8357 info->parent_struct.name, in sensor_i2c_proxy_set_property_cb()
8358 error->message, g_quark_to_string (error->domain), error->code); in sensor_i2c_proxy_set_property_cb()
8375 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_i2c_proxy_set_property()
8376 info = (const _ExtendedGDBusPropertyInfo *) _sensor_i2c_property_info_pointers[prop_id - 1]; in sensor_i2c_proxy_set_property()
8377 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in sensor_i2c_proxy_set_property()
8380 g_variant_new ("(ssv)", "org.openbmc.SensorI2c", info->parent_struct.name, variant), in sensor_i2c_proxy_set_property()
8382 -1, in sensor_i2c_proxy_set_property()
8383 …NULL, (GAsyncReadyCallback) sensor_i2c_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_… in sensor_i2c_proxy_set_property()
8411 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in sensor_i2c_proxy_g_signal()
8412 if (arg_info->use_gvariant) in sensor_i2c_proxy_g_signal()
8422 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_I2C); in sensor_i2c_proxy_g_signal()
8443 g_datalist_remove_data (&proxy->priv->qdata, key); in sensor_i2c_proxy_g_properties_changed()
8445 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_i2c_proxy_g_properties_changed()
8451 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in sensor_i2c_proxy_g_properties_changed()
8453 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_i2c_proxy_g_properties_changed()
8491 proxy->priv = sensor_i2c_proxy_get_instance_private (proxy); in sensor_i2c_proxy_init()
8493 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_SENSOR_I2C_PROXY, SensorI2cProxyPrivate); in sensor_i2c_proxy_init()
8506 gobject_class->finalize = sensor_i2c_proxy_finalize; in sensor_i2c_proxy_class_init()
8507 gobject_class->get_property = sensor_i2c_proxy_get_property; in sensor_i2c_proxy_class_init()
8508 gobject_class->set_property = sensor_i2c_proxy_set_property; in sensor_i2c_proxy_class_init()
8511 proxy_class->g_signal = sensor_i2c_proxy_g_signal; in sensor_i2c_proxy_class_init()
8512 proxy_class->g_properties_changed = sensor_i2c_proxy_g_properties_changed; in sensor_i2c_proxy_class_init()
8524 iface->get_dev_path = sensor_i2c_proxy_get_dev_path; in sensor_i2c_proxy_iface_init()
8525 iface->get_address = sensor_i2c_proxy_get_address; in sensor_i2c_proxy_iface_init()
8532 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
8538 …ates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
8540 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
8555 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_i2c_proxy_new()
8587 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
8592 …ates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
8610 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_i2c_proxy_new_sync()
8622 * @name: A bus name (well-known or unique).
8630 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
8645 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_i2c_proxy_new_for_bus()
8677 * @name: A bus name (well-known or unique).
8700 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_i2c_proxy_new_for_bus_sync()
8708 /* ------------------------------------------------------------------------ */
8756 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _sensor_i2c_skeleton_handle_method_call()
8762 if (info->pass_fdlist) in _sensor_i2c_skeleton_handle_method_call()
8774 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _sensor_i2c_skeleton_handle_method_call()
8775 if (arg_info->use_gvariant) in _sensor_i2c_skeleton_handle_method_call()
8785 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_I2C); in _sensor_i2c_skeleton_handle_method_call()
8814 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_i2c_skeleton_handle_get_property()
8821 g_value_init (&value, pspec->value_type); in _sensor_i2c_skeleton_handle_get_property()
8822 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_i2c_skeleton_handle_get_property()
8823 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _sensor_i2c_skeleton_handle_get_property()
8848 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_i2c_skeleton_handle_set_property()
8855 if (info->use_gvariant) in _sensor_i2c_skeleton_handle_set_property()
8859 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_i2c_skeleton_handle_set_property()
8899 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in sensor_i2c_skeleton_dbus_interface_get_properties()
8902 …t_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.SensorI2c", info->name, NULL, skeleton… in sensor_i2c_skeleton_dbus_interface_get_properties()
8906 g_variant_builder_add (&builder, "{sv}", info->name, value); in sensor_i2c_skeleton_dbus_interface_get_properties()
8923 g_mutex_lock (&skeleton->priv->lock); in sensor_i2c_skeleton_dbus_interface_flush()
8924 if (skeleton->priv->changed_properties_idle_source != NULL) in sensor_i2c_skeleton_dbus_interface_flush()
8926 g_source_destroy (skeleton->priv->changed_properties_idle_source); in sensor_i2c_skeleton_dbus_interface_flush()
8927 skeleton->priv->changed_properties_idle_source = NULL; in sensor_i2c_skeleton_dbus_interface_flush()
8930 g_mutex_unlock (&skeleton->priv->lock); in sensor_i2c_skeleton_dbus_interface_flush()
8953 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
8954 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
8955 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
8956 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
8957 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
8958 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
8959 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
8960 G_OBJECT_CLASS (sensor_i2c_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
8970 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_i2c_skeleton_get_property()
8971 g_mutex_lock (&skeleton->priv->lock); in sensor_i2c_skeleton_get_property()
8972 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in sensor_i2c_skeleton_get_property()
8973 g_mutex_unlock (&skeleton->priv->lock); in sensor_i2c_skeleton_get_property()
8985 g_mutex_lock (&skeleton->priv->lock); in _sensor_i2c_emit_changed()
8988 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _sensor_i2c_emit_changed()
8990 ChangedProperty *cp = l->data; in _sensor_i2c_emit_changed()
8994 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _sensor_i2c_emit_changed()
8995 if (!_g_value_equal (cur_value, &cp->orig_value)) in _sensor_i2c_emit_changed()
8997 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _sensor_i2c_emit_changed()
8998 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _sensor_i2c_emit_changed()
9010 for (ll = connections; ll != NULL; ll = ll->next) in _sensor_i2c_emit_changed()
9012 GDBusConnection *connection = ll->data; in _sensor_i2c_emit_changed()
9029 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _sensor_i2c_emit_changed()
9030 skeleton->priv->changed_properties = NULL; in _sensor_i2c_emit_changed()
9031 skeleton->priv->changed_properties_idle_source = NULL; in _sensor_i2c_emit_changed()
9032 g_mutex_unlock (&skeleton->priv->lock); in _sensor_i2c_emit_changed()
9042 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _sensor_i2c_schedule_emit_changed()
9044 ChangedProperty *i_cp = l->data; in _sensor_i2c_schedule_emit_changed()
9045 if (i_cp->info == info) in _sensor_i2c_schedule_emit_changed()
9054 cp->prop_id = prop_id; in _sensor_i2c_schedule_emit_changed()
9055 cp->info = info; in _sensor_i2c_schedule_emit_changed()
9056 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _sensor_i2c_schedule_emit_changed()
9057 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _sensor_i2c_schedule_emit_changed()
9058 g_value_copy (orig_value, &cp->orig_value); in _sensor_i2c_schedule_emit_changed()
9067 g_mutex_lock (&skeleton->priv->lock); in sensor_i2c_skeleton_notify()
9068 if (skeleton->priv->changed_properties != NULL && in sensor_i2c_skeleton_notify()
9069 skeleton->priv->changed_properties_idle_source == NULL) in sensor_i2c_skeleton_notify()
9071 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in sensor_i2c_skeleton_notify()
9072 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in sensor_i2c_skeleton_notify()
9073 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_i2c_emit_changed, g… in sensor_i2c_skeleton_notify()
9074 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_i2c_emit_c… in sensor_i2c_skeleton_notify()
9075 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in sensor_i2c_skeleton_notify()
9076 g_source_unref (skeleton->priv->changed_properties_idle_source); in sensor_i2c_skeleton_notify()
9078 g_mutex_unlock (&skeleton->priv->lock); in sensor_i2c_skeleton_notify()
9089 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_i2c_skeleton_set_property()
9090 info = (const _ExtendedGDBusPropertyInfo *) _sensor_i2c_property_info_pointers[prop_id - 1]; in sensor_i2c_skeleton_set_property()
9091 g_mutex_lock (&skeleton->priv->lock); in sensor_i2c_skeleton_set_property()
9093 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in sensor_i2c_skeleton_set_property()
9096 info->emits_changed_signal) in sensor_i2c_skeleton_set_property()
9097 …nsor_i2c_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in sensor_i2c_skeleton_set_property()
9098 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in sensor_i2c_skeleton_set_property()
9101 g_mutex_unlock (&skeleton->priv->lock); in sensor_i2c_skeleton_set_property()
9109 skeleton->priv = sensor_i2c_skeleton_get_instance_private (skeleton); in sensor_i2c_skeleton_init()
9111 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleto… in sensor_i2c_skeleton_init()
9114 g_mutex_init (&skeleton->priv->lock); in sensor_i2c_skeleton_init()
9115 skeleton->priv->context = g_main_context_ref_thread_default (); in sensor_i2c_skeleton_init()
9116 skeleton->priv->properties = g_new0 (GValue, 2); in sensor_i2c_skeleton_init()
9117 g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); in sensor_i2c_skeleton_init()
9118 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in sensor_i2c_skeleton_init()
9126 g_mutex_lock (&skeleton->priv->lock); in sensor_i2c_skeleton_get_dev_path()
9127 value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); in sensor_i2c_skeleton_get_dev_path()
9128 g_mutex_unlock (&skeleton->priv->lock); in sensor_i2c_skeleton_get_dev_path()
9137 g_mutex_lock (&skeleton->priv->lock); in sensor_i2c_skeleton_get_address()
9138 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in sensor_i2c_skeleton_get_address()
9139 g_mutex_unlock (&skeleton->priv->lock); in sensor_i2c_skeleton_get_address()
9150 gobject_class->finalize = sensor_i2c_skeleton_finalize; in sensor_i2c_skeleton_class_init()
9151 gobject_class->get_property = sensor_i2c_skeleton_get_property; in sensor_i2c_skeleton_class_init()
9152 gobject_class->set_property = sensor_i2c_skeleton_set_property; in sensor_i2c_skeleton_class_init()
9153 gobject_class->notify = sensor_i2c_skeleton_notify; in sensor_i2c_skeleton_class_init()
9159 skeleton_class->get_info = sensor_i2c_skeleton_dbus_interface_get_info; in sensor_i2c_skeleton_class_init()
9160 skeleton_class->get_properties = sensor_i2c_skeleton_dbus_interface_get_properties; in sensor_i2c_skeleton_class_init()
9161 skeleton_class->flush = sensor_i2c_skeleton_dbus_interface_flush; in sensor_i2c_skeleton_class_init()
9162 skeleton_class->get_vtable = sensor_i2c_skeleton_dbus_interface_get_vtable; in sensor_i2c_skeleton_class_init()
9172 iface->get_dev_path = sensor_i2c_skeleton_get_dev_path; in sensor_i2c_skeleton_iface_init()
9173 iface->get_address = sensor_i2c_skeleton_get_address; in sensor_i2c_skeleton_iface_init()
9179 …leton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
9189 /* ------------------------------------------------------------------------
9191 * ------------------------------------------------------------------------
9197 * @short_description: Generated C code for the org.openbmc.SensorMatch D-Bus interface
9199 …ode for working with the <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_page">org.o…
9209 /* ---- Introspection data for org.openbmc.SensorMatch ---- */
9214 -1,
9231 -1,
9236 "sensor-match"
9248 -1,
9254 "match-value",
9262 -1,
9283 -1,
9290 "sensor-match",
9297 …s a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-SensorMatch.top…
9320 g_object_class_override_property (klass, property_id_begin++, "match-value"); in sensor_match_override_properties()
9322 return property_id_begin - 1; in sensor_match_override_properties()
9343 …rface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
9349 * @get_match_value: Getter for the #SensorMatch:match-value property.
9351 * @sensor_match: Handler for the #SensorMatch::sensor-match signal.
9353 …tual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
9362 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
9364 * SensorMatch::sensor-match: in G_DEFINE_INTERFACE()
9368 …client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-open… in G_DEFINE_INTERFACE()
9370 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
9373 g_signal_new ("sensor-match", in G_DEFINE_INTERFACE()
9383 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
9385 * SensorMatch:match-value: in G_DEFINE_INTERFACE()
9387 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorMatch.match_value"… in G_DEFINE_INTERFACE()
9389 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
9392 …g_param_spec_variant ("match-value", "match_value", "match_value", G_VARIANT_TYPE ("v"), NULL, G_P… in G_DEFINE_INTERFACE()
9396 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SensorMatch.state">"stat… in G_DEFINE_INTERFACE()
9398 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
9408 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorMatch.match_value">"match_…
9410 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
9412 …* The returned value is only valid until the property changes so on the client-side it is only saf…
9421 return SENSOR_MATCH_GET_IFACE (object)->get_match_value (object); in sensor_match_get_match_value()
9428 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SensorMatch.match_value">"match_val…
9430 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
9438 g_object_get (G_OBJECT (object), "match-value", &value, NULL); in sensor_match_dup_match_value()
9447 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorMatch.match_value">"match_value"</link>…
9449 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
9454 g_object_set (G_OBJECT (object), "match-value", value, NULL); in sensor_match_set_match_value()
9461 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SensorMatch.state">"state"</link…
9463 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
9472 return SENSOR_MATCH_GET_IFACE (object)->get_state (object); in sensor_match_get_state()
9480 …* Sets the <link linkend="gdbus-property-org-openbmc-SensorMatch.state">"state"</link> D-Bus prope…
9482 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
9495 …* Emits the <link linkend="gdbus-signal-org-openbmc-SensorMatch.SensorMatch">"SensorMatch"</link> …
9505 /* ------------------------------------------------------------------------ */
9541 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
9542 G_OBJECT_CLASS (sensor_match_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
9553 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_match_proxy_get_property()
9554 info = (const _ExtendedGDBusPropertyInfo *) _sensor_match_property_info_pointers[prop_id - 1]; in sensor_match_proxy_get_property()
9555 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in sensor_match_proxy_get_property()
9556 if (info->use_gvariant) in sensor_match_proxy_get_property()
9582 info->parent_struct.name, in sensor_match_proxy_set_property_cb()
9583 error->message, g_quark_to_string (error->domain), error->code); in sensor_match_proxy_set_property_cb()
9600 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_match_proxy_set_property()
9601 info = (const _ExtendedGDBusPropertyInfo *) _sensor_match_property_info_pointers[prop_id - 1]; in sensor_match_proxy_set_property()
9602 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in sensor_match_proxy_set_property()
9605 g_variant_new ("(ssv)", "org.openbmc.SensorMatch", info->parent_struct.name, variant), in sensor_match_proxy_set_property()
9607 -1, in sensor_match_proxy_set_property()
9608 …NULL, (GAsyncReadyCallback) sensor_match_proxy_set_property_cb, (GDBusPropertyInfo *) &info->paren… in sensor_match_proxy_set_property()
9636 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in sensor_match_proxy_g_signal()
9637 if (arg_info->use_gvariant) in sensor_match_proxy_g_signal()
9647 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_MATCH); in sensor_match_proxy_g_signal()
9668 g_datalist_remove_data (&proxy->priv->qdata, key); in sensor_match_proxy_g_properties_changed()
9670 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_match_proxy_g_properties_changed()
9676 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in sensor_match_proxy_g_properties_changed()
9678 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in sensor_match_proxy_g_properties_changed()
9714 proxy->priv = sensor_match_proxy_get_instance_private (proxy); in sensor_match_proxy_init()
9716 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyPrivate… in sensor_match_proxy_init()
9729 gobject_class->finalize = sensor_match_proxy_finalize; in sensor_match_proxy_class_init()
9730 gobject_class->get_property = sensor_match_proxy_get_property; in sensor_match_proxy_class_init()
9731 gobject_class->set_property = sensor_match_proxy_set_property; in sensor_match_proxy_class_init()
9734 proxy_class->g_signal = sensor_match_proxy_g_signal; in sensor_match_proxy_class_init()
9735 proxy_class->g_properties_changed = sensor_match_proxy_g_properties_changed; in sensor_match_proxy_class_init()
9747 iface->get_match_value = sensor_match_proxy_get_match_value; in sensor_match_proxy_iface_init()
9748 iface->get_state = sensor_match_proxy_get_state; in sensor_match_proxy_iface_init()
9755 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
9761 …es a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
9763 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
9778 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_match_proxy_new()
9810 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
9815 …es a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
9833 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in sensor_match_proxy_new_sync()
9845 * @name: A bus name (well-known or unique).
9853 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
9868 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_match_proxy_new_for_bus()
9900 * @name: A bus name (well-known or unique).
9923 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in sensor_match_proxy_new_for_bus_sync()
9931 /* ------------------------------------------------------------------------ */
9979 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _sensor_match_skeleton_handle_method_call()
9985 if (info->pass_fdlist) in _sensor_match_skeleton_handle_method_call()
9997 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _sensor_match_skeleton_handle_method_call()
9998 if (arg_info->use_gvariant) in _sensor_match_skeleton_handle_method_call()
10008 signal_id = g_signal_lookup (info->signal_name, TYPE_SENSOR_MATCH); in _sensor_match_skeleton_handle_method_call()
10037 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_match_skeleton_handle_get_property()
10044 g_value_init (&value, pspec->value_type); in _sensor_match_skeleton_handle_get_property()
10045 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_match_skeleton_handle_get_property()
10046 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _sensor_match_skeleton_handle_get_property()
10071 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _sensor_match_skeleton_handle_set_property()
10078 if (info->use_gvariant) in _sensor_match_skeleton_handle_set_property()
10082 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _sensor_match_skeleton_handle_set_property()
10122 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in sensor_match_skeleton_dbus_interface_get_properties()
10125 …path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.SensorMatch", info->name, NULL, skeleton… in sensor_match_skeleton_dbus_interface_get_properties()
10129 g_variant_builder_add (&builder, "{sv}", info->name, value); in sensor_match_skeleton_dbus_interface_get_properties()
10146 g_mutex_lock (&skeleton->priv->lock); in sensor_match_skeleton_dbus_interface_flush()
10147 if (skeleton->priv->changed_properties_idle_source != NULL) in sensor_match_skeleton_dbus_interface_flush()
10149 g_source_destroy (skeleton->priv->changed_properties_idle_source); in sensor_match_skeleton_dbus_interface_flush()
10150 skeleton->priv->changed_properties_idle_source = NULL; in sensor_match_skeleton_dbus_interface_flush()
10153 g_mutex_unlock (&skeleton->priv->lock); in sensor_match_skeleton_dbus_interface_flush()
10172 for (l = connections; l != NULL; l = l->next) in _sensor_match_on_signal_sensor_match()
10174 GDBusConnection *connection = l->data; in _sensor_match_on_signal_sensor_match()
10200 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
10201 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
10202 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
10203 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
10204 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
10205 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
10206 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
10207 G_OBJECT_CLASS (sensor_match_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
10217 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_match_skeleton_get_property()
10218 g_mutex_lock (&skeleton->priv->lock); in sensor_match_skeleton_get_property()
10219 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in sensor_match_skeleton_get_property()
10220 g_mutex_unlock (&skeleton->priv->lock); in sensor_match_skeleton_get_property()
10232 g_mutex_lock (&skeleton->priv->lock); in _sensor_match_emit_changed()
10235 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _sensor_match_emit_changed()
10237 ChangedProperty *cp = l->data; in _sensor_match_emit_changed()
10241 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _sensor_match_emit_changed()
10242 if (!_g_value_equal (cur_value, &cp->orig_value)) in _sensor_match_emit_changed()
10244 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _sensor_match_emit_changed()
10245 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _sensor_match_emit_changed()
10257 for (ll = connections; ll != NULL; ll = ll->next) in _sensor_match_emit_changed()
10259 GDBusConnection *connection = ll->data; in _sensor_match_emit_changed()
10276 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _sensor_match_emit_changed()
10277 skeleton->priv->changed_properties = NULL; in _sensor_match_emit_changed()
10278 skeleton->priv->changed_properties_idle_source = NULL; in _sensor_match_emit_changed()
10279 g_mutex_unlock (&skeleton->priv->lock); in _sensor_match_emit_changed()
10289 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _sensor_match_schedule_emit_changed()
10291 ChangedProperty *i_cp = l->data; in _sensor_match_schedule_emit_changed()
10292 if (i_cp->info == info) in _sensor_match_schedule_emit_changed()
10301 cp->prop_id = prop_id; in _sensor_match_schedule_emit_changed()
10302 cp->info = info; in _sensor_match_schedule_emit_changed()
10303 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _sensor_match_schedule_emit_changed()
10304 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _sensor_match_schedule_emit_changed()
10305 g_value_copy (orig_value, &cp->orig_value); in _sensor_match_schedule_emit_changed()
10314 g_mutex_lock (&skeleton->priv->lock); in sensor_match_skeleton_notify()
10315 if (skeleton->priv->changed_properties != NULL && in sensor_match_skeleton_notify()
10316 skeleton->priv->changed_properties_idle_source == NULL) in sensor_match_skeleton_notify()
10318 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in sensor_match_skeleton_notify()
10319 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in sensor_match_skeleton_notify()
10320 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_match_emit_changed,… in sensor_match_skeleton_notify()
10321 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_match_emit… in sensor_match_skeleton_notify()
10322 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in sensor_match_skeleton_notify()
10323 g_source_unref (skeleton->priv->changed_properties_idle_source); in sensor_match_skeleton_notify()
10325 g_mutex_unlock (&skeleton->priv->lock); in sensor_match_skeleton_notify()
10336 g_assert (prop_id != 0 && prop_id - 1 < 2); in sensor_match_skeleton_set_property()
10337 info = (const _ExtendedGDBusPropertyInfo *) _sensor_match_property_info_pointers[prop_id - 1]; in sensor_match_skeleton_set_property()
10338 g_mutex_lock (&skeleton->priv->lock); in sensor_match_skeleton_set_property()
10340 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in sensor_match_skeleton_set_property()
10343 info->emits_changed_signal) in sensor_match_skeleton_set_property()
10344 …or_match_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in sensor_match_skeleton_set_property()
10345 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in sensor_match_skeleton_set_property()
10348 g_mutex_unlock (&skeleton->priv->lock); in sensor_match_skeleton_set_property()
10356 skeleton->priv = sensor_match_skeleton_get_instance_private (skeleton); in sensor_match_skeleton_init()
10358 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_SENSOR_MATCH_SKELETON, SensorMatchSke… in sensor_match_skeleton_init()
10361 g_mutex_init (&skeleton->priv->lock); in sensor_match_skeleton_init()
10362 skeleton->priv->context = g_main_context_ref_thread_default (); in sensor_match_skeleton_init()
10363 skeleton->priv->properties = g_new0 (GValue, 2); in sensor_match_skeleton_init()
10364 g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); in sensor_match_skeleton_init()
10365 g_value_init (&skeleton->priv->properties[1], G_TYPE_UCHAR); in sensor_match_skeleton_init()
10373 g_mutex_lock (&skeleton->priv->lock); in sensor_match_skeleton_get_match_value()
10374 value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); in sensor_match_skeleton_get_match_value()
10375 g_mutex_unlock (&skeleton->priv->lock); in sensor_match_skeleton_get_match_value()
10384 g_mutex_lock (&skeleton->priv->lock); in sensor_match_skeleton_get_state()
10385 value = g_marshal_value_peek_uchar (&(skeleton->priv->properties[1])); in sensor_match_skeleton_get_state()
10386 g_mutex_unlock (&skeleton->priv->lock); in sensor_match_skeleton_get_state()
10397 gobject_class->finalize = sensor_match_skeleton_finalize; in sensor_match_skeleton_class_init()
10398 gobject_class->get_property = sensor_match_skeleton_get_property; in sensor_match_skeleton_class_init()
10399 gobject_class->set_property = sensor_match_skeleton_set_property; in sensor_match_skeleton_class_init()
10400 gobject_class->notify = sensor_match_skeleton_notify; in sensor_match_skeleton_class_init()
10406 skeleton_class->get_info = sensor_match_skeleton_dbus_interface_get_info; in sensor_match_skeleton_class_init()
10407 skeleton_class->get_properties = sensor_match_skeleton_dbus_interface_get_properties; in sensor_match_skeleton_class_init()
10408 skeleton_class->flush = sensor_match_skeleton_dbus_interface_flush; in sensor_match_skeleton_class_init()
10409 skeleton_class->get_vtable = sensor_match_skeleton_dbus_interface_get_vtable; in sensor_match_skeleton_class_init()
10419 iface->sensor_match = _sensor_match_on_signal_sensor_match; in sensor_match_skeleton_iface_init()
10420 iface->get_match_value = sensor_match_skeleton_get_match_value; in sensor_match_skeleton_iface_init()
10421 iface->get_state = sensor_match_skeleton_get_state; in sensor_match_skeleton_iface_init()
10427 …ton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
10437 /* ------------------------------------------------------------------------
10439 * ------------------------------------------------------------------------
10445 * @short_description: Generated C code for the org.openbmc.Process D-Bus interface
10447 …ns code for working with the <link linkend="gdbus-interface-org-openbmc-Process.top_of_page">org.o…
10450 /* ---- Introspection data for org.openbmc.Process ---- */
10455 -1,
10461 "handle-stop",
10474 -1,
10488 … Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Process.top…
10511 return property_id_begin - 1; in process_override_properties()
10532 …interface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
10538 * @handle_stop: Handler for the #Process::handle-stop signal.
10540 … Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
10549 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
10551 * Process::handle-stop: in G_DEFINE_INTERFACE()
10555 …ted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Process.stop">sto… in G_DEFINE_INTERFACE()
10557 …ler will handle the invocation (e.g. take a reference to @invocation and eventually call process_c… in G_DEFINE_INTERFACE()
10561 g_signal_new ("handle-stop", in G_DEFINE_INTERFACE()
10581 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Process.stop">stop()</link> D…
10582 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
10598 -1, in process_call_stop()
10637 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Process.stop">stop()</link> D-…
10654 -1, in process_call_stop_sync()
10671 …ns to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Process.stop">sto…
10684 /* ------------------------------------------------------------------------ */
10720 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
10721 G_OBJECT_CLASS (process_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
10764 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in process_proxy_g_signal()
10765 if (arg_info->use_gvariant) in process_proxy_g_signal()
10775 signal_id = g_signal_lookup (info->signal_name, TYPE_PROCESS); in process_proxy_g_signal()
10796 g_datalist_remove_data (&proxy->priv->qdata, key); in process_proxy_g_properties_changed()
10798 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in process_proxy_g_properties_changed()
10804 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in process_proxy_g_properties_changed()
10806 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in process_proxy_g_properties_changed()
10814 proxy->priv = process_proxy_get_instance_private (proxy); in process_proxy_init()
10816 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_PROCESS_PROXY, ProcessProxyPrivate); in process_proxy_init()
10829 gobject_class->finalize = process_proxy_finalize; in process_proxy_class_init()
10830 gobject_class->get_property = process_proxy_get_property; in process_proxy_class_init()
10831 gobject_class->set_property = process_proxy_set_property; in process_proxy_class_init()
10834 proxy_class->g_signal = process_proxy_g_signal; in process_proxy_class_init()
10835 proxy_class->g_properties_changed = process_proxy_g_properties_changed; in process_proxy_class_init()
10851 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
10857 …reates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
10859 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
10874 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in process_proxy_new()
10906 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
10911 …reates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
10929 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in process_proxy_new_sync()
10941 * @name: A bus name (well-known or unique).
10949 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
10964 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in process_proxy_new_for_bus()
10996 * @name: A bus name (well-known or unique).
11019 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in process_proxy_new_for_bus_sync()
11027 /* ------------------------------------------------------------------------ */
11075 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _process_skeleton_handle_method_call()
11081 if (info->pass_fdlist) in _process_skeleton_handle_method_call()
11093 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _process_skeleton_handle_method_call()
11094 if (arg_info->use_gvariant) in _process_skeleton_handle_method_call()
11104 signal_id = g_signal_lookup (info->signal_name, TYPE_PROCESS); in _process_skeleton_handle_method_call()
11133 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _process_skeleton_handle_get_property()
11140 g_value_init (&value, pspec->value_type); in _process_skeleton_handle_get_property()
11141 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _process_skeleton_handle_get_property()
11142 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _process_skeleton_handle_get_property()
11167 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _process_skeleton_handle_set_property()
11174 if (info->use_gvariant) in _process_skeleton_handle_set_property()
11178 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _process_skeleton_handle_set_property()
11218 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in process_skeleton_dbus_interface_get_properties()
11221 …ect_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Process", info->name, NULL, skeleton… in process_skeleton_dbus_interface_get_properties()
11225 g_variant_builder_add (&builder, "{sv}", info->name, value); in process_skeleton_dbus_interface_get_properties()
11254 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
11255 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
11256 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
11257 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
11258 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
11259 G_OBJECT_CLASS (process_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
11266 skeleton->priv = process_skeleton_get_instance_private (skeleton); in process_skeleton_init()
11268 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_PROCESS_SKELETON, ProcessSkeletonPriv… in process_skeleton_init()
11271 g_mutex_init (&skeleton->priv->lock); in process_skeleton_init()
11272 skeleton->priv->context = g_main_context_ref_thread_default (); in process_skeleton_init()
11282 gobject_class->finalize = process_skeleton_finalize; in process_skeleton_class_init()
11285 skeleton_class->get_info = process_skeleton_dbus_interface_get_info; in process_skeleton_class_init()
11286 skeleton_class->get_properties = process_skeleton_dbus_interface_get_properties; in process_skeleton_class_init()
11287 skeleton_class->flush = process_skeleton_dbus_interface_flush; in process_skeleton_class_init()
11288 skeleton_class->get_vtable = process_skeleton_dbus_interface_get_vtable; in process_skeleton_class_init()
11303 …keleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
11313 /* ------------------------------------------------------------------------
11315 * ------------------------------------------------------------------------
11321 * @short_description: Generated C code for the org.openbmc.SharedResource D-Bus interface
11323 … for working with the <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_page">org.o…
11326 /* ---- Introspection data for org.openbmc.SharedResource ---- */
11331 -1,
11348 -1,
11354 "handle-lock",
11361 -1,
11367 "handle-unlock",
11374 -1,
11385 -1,
11403 -1,
11409 "handle-is-locked",
11424 -1,
11438 -1,
11459 -1,
11466 "shared-resource",
11473 … machine-readable description of the <link linkend="gdbus-interface-org-openbmc-SharedResource.top…
11498 return property_id_begin - 1; in shared_resource_override_properties()
11545 …ce type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
11551 * @handle_is_locked: Handler for the #SharedResource::handle-is-locked signal.
11552 * @handle_lock: Handler for the #SharedResource::handle-lock signal.
11553 * @handle_unlock: Handler for the #SharedResource::handle-unlock signal.
11557 …l table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
11566 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
11568 * SharedResource::handle-lock: in G_DEFINE_INTERFACE()
11573 …when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-SharedResource.lock">… in G_DEFINE_INTERFACE()
11575 …will handle the invocation (e.g. take a reference to @invocation and eventually call shared_resour… in G_DEFINE_INTERFACE()
11579 g_signal_new ("handle-lock", in G_DEFINE_INTERFACE()
11591 * SharedResource::handle-unlock: in G_DEFINE_INTERFACE()
11595 …en a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-SharedResource.unlock">… in G_DEFINE_INTERFACE()
11597 …ill handle the invocation (e.g. take a reference to @invocation and eventually call shared_resourc… in G_DEFINE_INTERFACE()
11601 g_signal_new ("handle-unlock", in G_DEFINE_INTERFACE()
11613 * SharedResource::handle-is-locked: in G_DEFINE_INTERFACE()
11617 … a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-SharedResource.isLocked">… in G_DEFINE_INTERFACE()
11619 …l handle the invocation (e.g. take a reference to @invocation and eventually call shared_resource_… in G_DEFINE_INTERFACE()
11623 g_signal_new ("handle-is-locked", in G_DEFINE_INTERFACE()
11634 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
11638 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SharedResource.lock">"lo… in G_DEFINE_INTERFACE()
11640 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
11647 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-SharedResource.name">"na… in G_DEFINE_INTERFACE()
11649 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
11659 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SharedResource.lock">"lock"</lin…
11661 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
11670 return SHARED_RESOURCE_GET_IFACE (object)->get_lock (object); in shared_resource_get_lock()
11678 …* Sets the <link linkend="gdbus-property-org-openbmc-SharedResource.lock">"lock"</link> D-Bus prop…
11680 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
11692 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-SharedResource.name">"name"</lin…
11694 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
11696 …* The returned value is only valid until the property changes so on the client-side it is only saf…
11705 return SHARED_RESOURCE_GET_IFACE (object)->get_name (object); in shared_resource_get_name()
11712 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-SharedResource.name">"name"</link> …
11714 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
11731 …* Sets the <link linkend="gdbus-property-org-openbmc-SharedResource.name">"name"</link> D-Bus prop…
11733 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
11749 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-SharedResource.lock">lock()</…
11750 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
11768 -1, in shared_resource_call_lock()
11808 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-SharedResource.lock">lock()</l…
11827 -1, in shared_resource_call_lock_sync()
11846 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-SharedResource.unlock">unlock…
11847 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
11863 -1, in shared_resource_call_unlock()
11902 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-SharedResource.unlock">unlock(…
11919 -1, in shared_resource_call_unlock_sync()
11938 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-SharedResource.isLocked">isLo…
11939 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
11955 -1, in shared_resource_call_is_locked()
12002 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-SharedResource.isLocked">isLoc…
12021 -1, in shared_resource_call_is_locked_sync()
12040 …o finish handling invocations of the <link linkend="gdbus-method-org-openbmc-SharedResource.lock">…
12058 …finish handling invocations of the <link linkend="gdbus-method-org-openbmc-SharedResource.unlock">…
12078 …nish handling invocations of the <link linkend="gdbus-method-org-openbmc-SharedResource.isLocked">…
12095 /* ------------------------------------------------------------------------ */
12131 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
12132 G_OBJECT_CLASS (shared_resource_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
12143 g_assert (prop_id != 0 && prop_id - 1 < 2); in shared_resource_proxy_get_property()
12144 info = (const _ExtendedGDBusPropertyInfo *) _shared_resource_property_info_pointers[prop_id - 1]; in shared_resource_proxy_get_property()
12145 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in shared_resource_proxy_get_property()
12146 if (info->use_gvariant) in shared_resource_proxy_get_property()
12172 info->parent_struct.name, in shared_resource_proxy_set_property_cb()
12173 error->message, g_quark_to_string (error->domain), error->code); in shared_resource_proxy_set_property_cb()
12190 g_assert (prop_id != 0 && prop_id - 1 < 2); in shared_resource_proxy_set_property()
12191 info = (const _ExtendedGDBusPropertyInfo *) _shared_resource_property_info_pointers[prop_id - 1]; in shared_resource_proxy_set_property()
12192 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in shared_resource_proxy_set_property()
12195 g_variant_new ("(ssv)", "org.openbmc.SharedResource", info->parent_struct.name, variant), in shared_resource_proxy_set_property()
12197 -1, in shared_resource_proxy_set_property()
12198 …NULL, (GAsyncReadyCallback) shared_resource_proxy_set_property_cb, (GDBusPropertyInfo *) &info->pa… in shared_resource_proxy_set_property()
12226 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in shared_resource_proxy_g_signal()
12227 if (arg_info->use_gvariant) in shared_resource_proxy_g_signal()
12237 signal_id = g_signal_lookup (info->signal_name, TYPE_SHARED_RESOURCE); in shared_resource_proxy_g_signal()
12258 g_datalist_remove_data (&proxy->priv->qdata, key); in shared_resource_proxy_g_properties_changed()
12260 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in shared_resource_proxy_g_properties_changed()
12266 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in shared_resource_proxy_g_properties_changed()
12268 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in shared_resource_proxy_g_properties_changed()
12306 proxy->priv = shared_resource_proxy_get_instance_private (proxy); in shared_resource_proxy_init()
12308 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_SHARED_RESOURCE_PROXY, SharedResourceProxyP… in shared_resource_proxy_init()
12321 gobject_class->finalize = shared_resource_proxy_finalize; in shared_resource_proxy_class_init()
12322 gobject_class->get_property = shared_resource_proxy_get_property; in shared_resource_proxy_class_init()
12323 gobject_class->set_property = shared_resource_proxy_set_property; in shared_resource_proxy_class_init()
12326 proxy_class->g_signal = shared_resource_proxy_g_signal; in shared_resource_proxy_class_init()
12327 proxy_class->g_properties_changed = shared_resource_proxy_g_properties_changed; in shared_resource_proxy_class_init()
12339 iface->get_lock = shared_resource_proxy_get_lock; in shared_resource_proxy_iface_init()
12340 iface->get_name = shared_resource_proxy_get_name; in shared_resource_proxy_iface_init()
12347 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
12353 …a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
12355 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
12370 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in shared_resource_proxy_new()
12402 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
12407 …a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
12425 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in shared_resource_proxy_new_sync()
12437 * @name: A bus name (well-known or unique).
12445 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
12460 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in shared_resource_proxy_new_for_bus()
12492 * @name: A bus name (well-known or unique).
12515 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in shared_resource_proxy_new_for_bus_sync()
12523 /* ------------------------------------------------------------------------ */
12571 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _shared_resource_skeleton_handle_method_call()
12577 if (info->pass_fdlist) in _shared_resource_skeleton_handle_method_call()
12589 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _shared_resource_skeleton_handle_method_call()
12590 if (arg_info->use_gvariant) in _shared_resource_skeleton_handle_method_call()
12600 signal_id = g_signal_lookup (info->signal_name, TYPE_SHARED_RESOURCE); in _shared_resource_skeleton_handle_method_call()
12629 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _shared_resource_skeleton_handle_get_property()
12636 g_value_init (&value, pspec->value_type); in _shared_resource_skeleton_handle_get_property()
12637 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _shared_resource_skeleton_handle_get_property()
12638 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _shared_resource_skeleton_handle_get_property()
12663 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _shared_resource_skeleton_handle_set_property()
12670 if (info->use_gvariant) in _shared_resource_skeleton_handle_set_property()
12674 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _shared_resource_skeleton_handle_set_property()
12714 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in shared_resource_skeleton_dbus_interface_get_properties()
12717 …h (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.SharedResource", info->name, NULL, skeleton… in shared_resource_skeleton_dbus_interface_get_properties()
12721 g_variant_builder_add (&builder, "{sv}", info->name, value); in shared_resource_skeleton_dbus_interface_get_properties()
12738 g_mutex_lock (&skeleton->priv->lock); in shared_resource_skeleton_dbus_interface_flush()
12739 if (skeleton->priv->changed_properties_idle_source != NULL) in shared_resource_skeleton_dbus_interface_flush()
12741 g_source_destroy (skeleton->priv->changed_properties_idle_source); in shared_resource_skeleton_dbus_interface_flush()
12742 skeleton->priv->changed_properties_idle_source = NULL; in shared_resource_skeleton_dbus_interface_flush()
12745 g_mutex_unlock (&skeleton->priv->lock); in shared_resource_skeleton_dbus_interface_flush()
12768 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
12769 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
12770 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
12771 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
12772 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
12773 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
12774 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
12775 G_OBJECT_CLASS (shared_resource_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
12785 g_assert (prop_id != 0 && prop_id - 1 < 2); in shared_resource_skeleton_get_property()
12786 g_mutex_lock (&skeleton->priv->lock); in shared_resource_skeleton_get_property()
12787 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in shared_resource_skeleton_get_property()
12788 g_mutex_unlock (&skeleton->priv->lock); in shared_resource_skeleton_get_property()
12800 g_mutex_lock (&skeleton->priv->lock); in _shared_resource_emit_changed()
12803 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _shared_resource_emit_changed()
12805 ChangedProperty *cp = l->data; in _shared_resource_emit_changed()
12809 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _shared_resource_emit_changed()
12810 if (!_g_value_equal (cur_value, &cp->orig_value)) in _shared_resource_emit_changed()
12812 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _shared_resource_emit_changed()
12813 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _shared_resource_emit_changed()
12825 for (ll = connections; ll != NULL; ll = ll->next) in _shared_resource_emit_changed()
12827 GDBusConnection *connection = ll->data; in _shared_resource_emit_changed()
12844 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _shared_resource_emit_changed()
12845 skeleton->priv->changed_properties = NULL; in _shared_resource_emit_changed()
12846 skeleton->priv->changed_properties_idle_source = NULL; in _shared_resource_emit_changed()
12847 g_mutex_unlock (&skeleton->priv->lock); in _shared_resource_emit_changed()
12857 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _shared_resource_schedule_emit_changed()
12859 ChangedProperty *i_cp = l->data; in _shared_resource_schedule_emit_changed()
12860 if (i_cp->info == info) in _shared_resource_schedule_emit_changed()
12869 cp->prop_id = prop_id; in _shared_resource_schedule_emit_changed()
12870 cp->info = info; in _shared_resource_schedule_emit_changed()
12871 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _shared_resource_schedule_emit_changed()
12872 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _shared_resource_schedule_emit_changed()
12873 g_value_copy (orig_value, &cp->orig_value); in _shared_resource_schedule_emit_changed()
12882 g_mutex_lock (&skeleton->priv->lock); in shared_resource_skeleton_notify()
12883 if (skeleton->priv->changed_properties != NULL && in shared_resource_skeleton_notify()
12884 skeleton->priv->changed_properties_idle_source == NULL) in shared_resource_skeleton_notify()
12886 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in shared_resource_skeleton_notify()
12887 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in shared_resource_skeleton_notify()
12888 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _shared_resource_emit_chang… in shared_resource_skeleton_notify()
12889 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _shared_resource_e… in shared_resource_skeleton_notify()
12890 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in shared_resource_skeleton_notify()
12891 g_source_unref (skeleton->priv->changed_properties_idle_source); in shared_resource_skeleton_notify()
12893 g_mutex_unlock (&skeleton->priv->lock); in shared_resource_skeleton_notify()
12904 g_assert (prop_id != 0 && prop_id - 1 < 2); in shared_resource_skeleton_set_property()
12905 info = (const _ExtendedGDBusPropertyInfo *) _shared_resource_property_info_pointers[prop_id - 1]; in shared_resource_skeleton_set_property()
12906 g_mutex_lock (&skeleton->priv->lock); in shared_resource_skeleton_set_property()
12908 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in shared_resource_skeleton_set_property()
12911 info->emits_changed_signal) in shared_resource_skeleton_set_property()
12912 …resource_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in shared_resource_skeleton_set_property()
12913 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in shared_resource_skeleton_set_property()
12916 g_mutex_unlock (&skeleton->priv->lock); in shared_resource_skeleton_set_property()
12924 skeleton->priv = shared_resource_skeleton_get_instance_private (skeleton); in shared_resource_skeleton_init()
12926 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_SHARED_RESOURCE_SKELETON, SharedResou… in shared_resource_skeleton_init()
12929 g_mutex_init (&skeleton->priv->lock); in shared_resource_skeleton_init()
12930 skeleton->priv->context = g_main_context_ref_thread_default (); in shared_resource_skeleton_init()
12931 skeleton->priv->properties = g_new0 (GValue, 2); in shared_resource_skeleton_init()
12932 g_value_init (&skeleton->priv->properties[0], G_TYPE_BOOLEAN); in shared_resource_skeleton_init()
12933 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in shared_resource_skeleton_init()
12941 g_mutex_lock (&skeleton->priv->lock); in shared_resource_skeleton_get_lock()
12942 value = g_marshal_value_peek_boolean (&(skeleton->priv->properties[0])); in shared_resource_skeleton_get_lock()
12943 g_mutex_unlock (&skeleton->priv->lock); in shared_resource_skeleton_get_lock()
12952 g_mutex_lock (&skeleton->priv->lock); in shared_resource_skeleton_get_name()
12953 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in shared_resource_skeleton_get_name()
12954 g_mutex_unlock (&skeleton->priv->lock); in shared_resource_skeleton_get_name()
12965 gobject_class->finalize = shared_resource_skeleton_finalize; in shared_resource_skeleton_class_init()
12966 gobject_class->get_property = shared_resource_skeleton_get_property; in shared_resource_skeleton_class_init()
12967 gobject_class->set_property = shared_resource_skeleton_set_property; in shared_resource_skeleton_class_init()
12968 gobject_class->notify = shared_resource_skeleton_notify; in shared_resource_skeleton_class_init()
12974 skeleton_class->get_info = shared_resource_skeleton_dbus_interface_get_info; in shared_resource_skeleton_class_init()
12975 skeleton_class->get_properties = shared_resource_skeleton_dbus_interface_get_properties; in shared_resource_skeleton_class_init()
12976 skeleton_class->flush = shared_resource_skeleton_dbus_interface_flush; in shared_resource_skeleton_class_init()
12977 skeleton_class->get_vtable = shared_resource_skeleton_dbus_interface_get_vtable; in shared_resource_skeleton_class_init()
12987 iface->get_lock = shared_resource_skeleton_get_lock; in shared_resource_skeleton_iface_init()
12988 iface->get_name = shared_resource_skeleton_get_name; in shared_resource_skeleton_iface_init()
12994 … object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
13004 /* ------------------------------------------------------------------------
13006 * ------------------------------------------------------------------------
13012 * @short_description: Generated C code for the org.openbmc.Control D-Bus interface
13014 …ns code for working with the <link linkend="gdbus-interface-org-openbmc-Control.top_of_page">org.o…
13025 /* ---- Introspection data for org.openbmc.Control ---- */
13030 -1,
13036 "handle-init",
13049 -1,
13066 -1,
13077 -1,
13095 -1,
13101 "poll-interval",
13109 -1,
13130 -1,
13144 … Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Control.top…
13167 g_object_class_override_property (klass, property_id_begin++, "poll-interval"); in control_override_properties()
13169 return property_id_begin - 1; in control_override_properties()
13216 …interface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
13222 * @handle_init: Handler for the #Control::handle-init signal.
13224 * @get_poll_interval: Getter for the #Control:poll-interval property.
13228 … Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
13237 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
13239 * Control::handle-init: in G_DEFINE_INTERFACE()
13243 …ted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Control.init">ini… in G_DEFINE_INTERFACE()
13245 …ler will handle the invocation (e.g. take a reference to @invocation and eventually call control_c… in G_DEFINE_INTERFACE()
13249 g_signal_new ("handle-init", in G_DEFINE_INTERFACE()
13260 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
13266 …the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-… in G_DEFINE_INTERFACE()
13268 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
13285 …n the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-or… in G_DEFINE_INTERFACE()
13287 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
13300 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
13302 * Control:poll-interval: in G_DEFINE_INTERFACE()
13304 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Control.poll_interval">"… in G_DEFINE_INTERFACE()
13306 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
13309 …g_param_spec_int ("poll-interval", "poll_interval", "poll_interval", G_MININT32, G_MAXINT32, 0, G_… in G_DEFINE_INTERFACE()
13313 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Control.heatbeat">"heatb… in G_DEFINE_INTERFACE()
13315 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
13325 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Control.poll_interval">"poll_int…
13327 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
13336 return CONTROL_GET_IFACE (object)->get_poll_interval (object); in control_get_poll_interval()
13344 …* Sets the <link linkend="gdbus-property-org-openbmc-Control.poll_interval">"poll_interval"</link>…
13346 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
13351 g_object_set (G_OBJECT (object), "poll-interval", value, NULL); in control_set_poll_interval()
13358 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Control.heatbeat">"heatbeat"</li…
13360 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
13369 return CONTROL_GET_IFACE (object)->get_heatbeat (object); in control_get_heatbeat()
13377 …* Sets the <link linkend="gdbus-property-org-openbmc-Control.heatbeat">"heatbeat"</link> D-Bus pro…
13379 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
13392 …* Emits the <link linkend="gdbus-signal-org-openbmc-Control.Heartbeat">"Heartbeat"</link> D-Bus si…
13406 * Emits the <link linkend="gdbus-signal-org-openbmc-Control.Started">"Started"</link> D-Bus signal.
13422 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Control.init">init()</link> D…
13423 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
13439 -1, in control_call_init()
13478 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Control.init">init()</link> D-…
13495 -1, in control_call_init_sync()
13512 …ns to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Control.init">ini…
13525 /* ------------------------------------------------------------------------ */
13561 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
13562 G_OBJECT_CLASS (control_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
13573 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_proxy_get_property()
13574 info = (const _ExtendedGDBusPropertyInfo *) _control_property_info_pointers[prop_id - 1]; in control_proxy_get_property()
13575 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in control_proxy_get_property()
13576 if (info->use_gvariant) in control_proxy_get_property()
13602 info->parent_struct.name, in control_proxy_set_property_cb()
13603 error->message, g_quark_to_string (error->domain), error->code); in control_proxy_set_property_cb()
13620 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_proxy_set_property()
13621 info = (const _ExtendedGDBusPropertyInfo *) _control_property_info_pointers[prop_id - 1]; in control_proxy_set_property()
13622 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in control_proxy_set_property()
13625 g_variant_new ("(ssv)", "org.openbmc.Control", info->parent_struct.name, variant), in control_proxy_set_property()
13627 -1, in control_proxy_set_property()
13628 …NULL, (GAsyncReadyCallback) control_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_str… in control_proxy_set_property()
13656 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in control_proxy_g_signal()
13657 if (arg_info->use_gvariant) in control_proxy_g_signal()
13667 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL); in control_proxy_g_signal()
13688 g_datalist_remove_data (&proxy->priv->qdata, key); in control_proxy_g_properties_changed()
13690 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_proxy_g_properties_changed()
13696 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in control_proxy_g_properties_changed()
13698 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_proxy_g_properties_changed()
13736 proxy->priv = control_proxy_get_instance_private (proxy); in control_proxy_init()
13738 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_CONTROL_PROXY, ControlProxyPrivate); in control_proxy_init()
13751 gobject_class->finalize = control_proxy_finalize; in control_proxy_class_init()
13752 gobject_class->get_property = control_proxy_get_property; in control_proxy_class_init()
13753 gobject_class->set_property = control_proxy_set_property; in control_proxy_class_init()
13756 proxy_class->g_signal = control_proxy_g_signal; in control_proxy_class_init()
13757 proxy_class->g_properties_changed = control_proxy_g_properties_changed; in control_proxy_class_init()
13769 iface->get_poll_interval = control_proxy_get_poll_interval; in control_proxy_iface_init()
13770 iface->get_heatbeat = control_proxy_get_heatbeat; in control_proxy_iface_init()
13777 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
13783 …reates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
13785 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
13800 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_proxy_new()
13832 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
13837 …reates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
13855 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_proxy_new_sync()
13867 * @name: A bus name (well-known or unique).
13875 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
13890 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_proxy_new_for_bus()
13922 * @name: A bus name (well-known or unique).
13945 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_proxy_new_for_bus_sync()
13953 /* ------------------------------------------------------------------------ */
14001 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _control_skeleton_handle_method_call()
14007 if (info->pass_fdlist) in _control_skeleton_handle_method_call()
14019 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _control_skeleton_handle_method_call()
14020 if (arg_info->use_gvariant) in _control_skeleton_handle_method_call()
14030 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL); in _control_skeleton_handle_method_call()
14059 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_skeleton_handle_get_property()
14066 g_value_init (&value, pspec->value_type); in _control_skeleton_handle_get_property()
14067 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_skeleton_handle_get_property()
14068 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _control_skeleton_handle_get_property()
14093 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_skeleton_handle_set_property()
14100 if (info->use_gvariant) in _control_skeleton_handle_set_property()
14104 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_skeleton_handle_set_property()
14144 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in control_skeleton_dbus_interface_get_properties()
14147 …ect_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Control", info->name, NULL, skeleton… in control_skeleton_dbus_interface_get_properties()
14151 g_variant_builder_add (&builder, "{sv}", info->name, value); in control_skeleton_dbus_interface_get_properties()
14168 g_mutex_lock (&skeleton->priv->lock); in control_skeleton_dbus_interface_flush()
14169 if (skeleton->priv->changed_properties_idle_source != NULL) in control_skeleton_dbus_interface_flush()
14171 g_source_destroy (skeleton->priv->changed_properties_idle_source); in control_skeleton_dbus_interface_flush()
14172 skeleton->priv->changed_properties_idle_source = NULL; in control_skeleton_dbus_interface_flush()
14175 g_mutex_unlock (&skeleton->priv->lock); in control_skeleton_dbus_interface_flush()
14194 for (l = connections; l != NULL; l = l->next) in _control_on_signal_heartbeat()
14196 GDBusConnection *connection = l->data; in _control_on_signal_heartbeat()
14216 for (l = connections; l != NULL; l = l->next) in _control_on_signal_started()
14218 GDBusConnection *connection = l->data; in _control_on_signal_started()
14244 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
14245 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
14246 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
14247 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
14248 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
14249 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
14250 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
14251 G_OBJECT_CLASS (control_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
14261 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_skeleton_get_property()
14262 g_mutex_lock (&skeleton->priv->lock); in control_skeleton_get_property()
14263 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in control_skeleton_get_property()
14264 g_mutex_unlock (&skeleton->priv->lock); in control_skeleton_get_property()
14276 g_mutex_lock (&skeleton->priv->lock); in _control_emit_changed()
14279 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _control_emit_changed()
14281 ChangedProperty *cp = l->data; in _control_emit_changed()
14285 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _control_emit_changed()
14286 if (!_g_value_equal (cur_value, &cp->orig_value)) in _control_emit_changed()
14288 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _control_emit_changed()
14289 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _control_emit_changed()
14301 for (ll = connections; ll != NULL; ll = ll->next) in _control_emit_changed()
14303 GDBusConnection *connection = ll->data; in _control_emit_changed()
14320 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _control_emit_changed()
14321 skeleton->priv->changed_properties = NULL; in _control_emit_changed()
14322 skeleton->priv->changed_properties_idle_source = NULL; in _control_emit_changed()
14323 g_mutex_unlock (&skeleton->priv->lock); in _control_emit_changed()
14333 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _control_schedule_emit_changed()
14335 ChangedProperty *i_cp = l->data; in _control_schedule_emit_changed()
14336 if (i_cp->info == info) in _control_schedule_emit_changed()
14345 cp->prop_id = prop_id; in _control_schedule_emit_changed()
14346 cp->info = info; in _control_schedule_emit_changed()
14347 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _control_schedule_emit_changed()
14348 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _control_schedule_emit_changed()
14349 g_value_copy (orig_value, &cp->orig_value); in _control_schedule_emit_changed()
14358 g_mutex_lock (&skeleton->priv->lock); in control_skeleton_notify()
14359 if (skeleton->priv->changed_properties != NULL && in control_skeleton_notify()
14360 skeleton->priv->changed_properties_idle_source == NULL) in control_skeleton_notify()
14362 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in control_skeleton_notify()
14363 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in control_skeleton_notify()
14364 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _control_emit_changed, g_ob… in control_skeleton_notify()
14365 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _control_emit_chan… in control_skeleton_notify()
14366 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in control_skeleton_notify()
14367 g_source_unref (skeleton->priv->changed_properties_idle_source); in control_skeleton_notify()
14369 g_mutex_unlock (&skeleton->priv->lock); in control_skeleton_notify()
14380 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_skeleton_set_property()
14381 info = (const _ExtendedGDBusPropertyInfo *) _control_property_info_pointers[prop_id - 1]; in control_skeleton_set_property()
14382 g_mutex_lock (&skeleton->priv->lock); in control_skeleton_set_property()
14384 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in control_skeleton_set_property()
14387 info->emits_changed_signal) in control_skeleton_set_property()
14388 …_control_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in control_skeleton_set_property()
14389 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in control_skeleton_set_property()
14392 g_mutex_unlock (&skeleton->priv->lock); in control_skeleton_set_property()
14400 skeleton->priv = control_skeleton_get_instance_private (skeleton); in control_skeleton_init()
14402 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_CONTROL_SKELETON, ControlSkeletonPriv… in control_skeleton_init()
14405 g_mutex_init (&skeleton->priv->lock); in control_skeleton_init()
14406 skeleton->priv->context = g_main_context_ref_thread_default (); in control_skeleton_init()
14407 skeleton->priv->properties = g_new0 (GValue, 2); in control_skeleton_init()
14408 g_value_init (&skeleton->priv->properties[0], G_TYPE_INT); in control_skeleton_init()
14409 g_value_init (&skeleton->priv->properties[1], G_TYPE_INT); in control_skeleton_init()
14417 g_mutex_lock (&skeleton->priv->lock); in control_skeleton_get_poll_interval()
14418 value = g_marshal_value_peek_int (&(skeleton->priv->properties[0])); in control_skeleton_get_poll_interval()
14419 g_mutex_unlock (&skeleton->priv->lock); in control_skeleton_get_poll_interval()
14428 g_mutex_lock (&skeleton->priv->lock); in control_skeleton_get_heatbeat()
14429 value = g_marshal_value_peek_int (&(skeleton->priv->properties[1])); in control_skeleton_get_heatbeat()
14430 g_mutex_unlock (&skeleton->priv->lock); in control_skeleton_get_heatbeat()
14441 gobject_class->finalize = control_skeleton_finalize; in control_skeleton_class_init()
14442 gobject_class->get_property = control_skeleton_get_property; in control_skeleton_class_init()
14443 gobject_class->set_property = control_skeleton_set_property; in control_skeleton_class_init()
14444 gobject_class->notify = control_skeleton_notify; in control_skeleton_class_init()
14450 skeleton_class->get_info = control_skeleton_dbus_interface_get_info; in control_skeleton_class_init()
14451 skeleton_class->get_properties = control_skeleton_dbus_interface_get_properties; in control_skeleton_class_init()
14452 skeleton_class->flush = control_skeleton_dbus_interface_flush; in control_skeleton_class_init()
14453 skeleton_class->get_vtable = control_skeleton_dbus_interface_get_vtable; in control_skeleton_class_init()
14463 iface->heartbeat = _control_on_signal_heartbeat; in control_skeleton_iface_init()
14464 iface->started = _control_on_signal_started; in control_skeleton_iface_init()
14465 iface->get_poll_interval = control_skeleton_get_poll_interval; in control_skeleton_iface_init()
14466 iface->get_heatbeat = control_skeleton_get_heatbeat; in control_skeleton_iface_init()
14472 …keleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
14482 /* ------------------------------------------------------------------------
14484 * ------------------------------------------------------------------------
14490 * @short_description: Generated C code for the org.openbmc.control.Bmc D-Bus interface
14492 …ode for working with the <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_page">org.o…
14495 /* ---- Introspection data for org.openbmc.control.Bmc ---- */
14500 -1,
14506 "handle-cold-reset",
14513 -1,
14519 "handle-warm-reset",
14533 -1,
14540 "control-bmc",
14547 …s a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-control-Bmc.top…
14570 return property_id_begin - 1; in control_bmc_override_properties()
14604 …rface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
14610 * @handle_cold_reset: Handler for the #ControlBmc::handle-cold-reset signal.
14611 * @handle_warm_reset: Handler for the #ControlBmc::handle-warm-reset signal.
14613 …tual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
14622 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
14624 * ControlBmc::handle-cold-reset: in G_DEFINE_INTERFACE()
14628 …n a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">c… in G_DEFINE_INTERFACE()
14630 …ill handle the invocation (e.g. take a reference to @invocation and eventually call control_bmc_co… in G_DEFINE_INTERFACE()
14634 g_signal_new ("handle-cold-reset", in G_DEFINE_INTERFACE()
14646 * ControlBmc::handle-warm-reset: in G_DEFINE_INTERFACE()
14650 …n a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Bmc.warmReset">w… in G_DEFINE_INTERFACE()
14652 …ill handle the invocation (e.g. take a reference to @invocation and eventually call control_bmc_co… in G_DEFINE_INTERFACE()
14656 g_signal_new ("handle-warm-reset", in G_DEFINE_INTERFACE()
14676 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">coldRe…
14677 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
14693 -1, in control_bmc_call_cold_reset()
14732 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">coldRes…
14749 -1, in control_bmc_call_cold_reset_sync()
14768 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Bmc.warmReset">warmRe…
14769 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
14785 -1, in control_bmc_call_warm_reset()
14824 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Bmc.warmReset">warmRes…
14841 -1, in control_bmc_call_warm_reset_sync()
14858 …inish handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">c…
14876 …inish handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Bmc.warmReset">w…
14889 /* ------------------------------------------------------------------------ */
14925 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
14926 G_OBJECT_CLASS (control_bmc_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
14969 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in control_bmc_proxy_g_signal()
14970 if (arg_info->use_gvariant) in control_bmc_proxy_g_signal()
14980 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_BMC); in control_bmc_proxy_g_signal()
15001 g_datalist_remove_data (&proxy->priv->qdata, key); in control_bmc_proxy_g_properties_changed()
15003 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_bmc_proxy_g_properties_changed()
15009 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in control_bmc_proxy_g_properties_changed()
15011 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_bmc_proxy_g_properties_changed()
15019 proxy->priv = control_bmc_proxy_get_instance_private (proxy); in control_bmc_proxy_init()
15021 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_CONTROL_BMC_PROXY, ControlBmcProxyPrivate); in control_bmc_proxy_init()
15034 gobject_class->finalize = control_bmc_proxy_finalize; in control_bmc_proxy_class_init()
15035 gobject_class->get_property = control_bmc_proxy_get_property; in control_bmc_proxy_class_init()
15036 gobject_class->set_property = control_bmc_proxy_set_property; in control_bmc_proxy_class_init()
15039 proxy_class->g_signal = control_bmc_proxy_g_signal; in control_bmc_proxy_class_init()
15040 proxy_class->g_properties_changed = control_bmc_proxy_g_properties_changed; in control_bmc_proxy_class_init()
15056 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
15062 …es a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
15064 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
15079 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_bmc_proxy_new()
15111 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
15116 …es a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
15134 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_bmc_proxy_new_sync()
15146 * @name: A bus name (well-known or unique).
15154 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
15169 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_bmc_proxy_new_for_bus()
15201 * @name: A bus name (well-known or unique).
15224 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_bmc_proxy_new_for_bus_sync()
15232 /* ------------------------------------------------------------------------ */
15280 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _control_bmc_skeleton_handle_method_call()
15286 if (info->pass_fdlist) in _control_bmc_skeleton_handle_method_call()
15298 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _control_bmc_skeleton_handle_method_call()
15299 if (arg_info->use_gvariant) in _control_bmc_skeleton_handle_method_call()
15309 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_BMC); in _control_bmc_skeleton_handle_method_call()
15338 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_bmc_skeleton_handle_get_property()
15345 g_value_init (&value, pspec->value_type); in _control_bmc_skeleton_handle_get_property()
15346 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_bmc_skeleton_handle_get_property()
15347 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _control_bmc_skeleton_handle_get_property()
15372 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_bmc_skeleton_handle_set_property()
15379 if (info->use_gvariant) in _control_bmc_skeleton_handle_set_property()
15383 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_bmc_skeleton_handle_set_property()
15423 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in control_bmc_skeleton_dbus_interface_get_properties()
15426 …path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.control.Bmc", info->name, NULL, skeleton… in control_bmc_skeleton_dbus_interface_get_properties()
15430 g_variant_builder_add (&builder, "{sv}", info->name, value); in control_bmc_skeleton_dbus_interface_get_properties()
15459 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
15460 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
15461 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
15462 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
15463 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
15464 G_OBJECT_CLASS (control_bmc_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
15471 skeleton->priv = control_bmc_skeleton_get_instance_private (skeleton); in control_bmc_skeleton_init()
15473 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_CONTROL_BMC_SKELETON, ControlBmcSkele… in control_bmc_skeleton_init()
15476 g_mutex_init (&skeleton->priv->lock); in control_bmc_skeleton_init()
15477 skeleton->priv->context = g_main_context_ref_thread_default (); in control_bmc_skeleton_init()
15487 gobject_class->finalize = control_bmc_skeleton_finalize; in control_bmc_skeleton_class_init()
15490 skeleton_class->get_info = control_bmc_skeleton_dbus_interface_get_info; in control_bmc_skeleton_class_init()
15491 skeleton_class->get_properties = control_bmc_skeleton_dbus_interface_get_properties; in control_bmc_skeleton_class_init()
15492 skeleton_class->flush = control_bmc_skeleton_dbus_interface_flush; in control_bmc_skeleton_class_init()
15493 skeleton_class->get_vtable = control_bmc_skeleton_dbus_interface_get_vtable; in control_bmc_skeleton_class_init()
15508 …ton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
15518 /* ------------------------------------------------------------------------
15520 * ------------------------------------------------------------------------
15526 * @short_description: Generated C code for the org.openbmc.control.Host D-Bus interface
15528 …de for working with the <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_page">org.o…
15538 /* ---- Introspection data for org.openbmc.control.Host ---- */
15543 -1,
15549 "handle-boot",
15556 -1,
15562 "handle-shutdown",
15569 -1,
15575 "handle-reboot",
15590 -1,
15607 -1,
15613 "debug-mode",
15621 -1,
15627 "flash-side",
15642 -1,
15649 "control-host",
15656 … a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-control-Host.top…
15679 g_object_class_override_property (klass, property_id_begin++, "debug-mode"); in control_host_override_properties()
15680 g_object_class_override_property (klass, property_id_begin++, "flash-side"); in control_host_override_properties()
15681 return property_id_begin - 1; in control_host_override_properties()
15741 …face type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
15747 * @handle_boot: Handler for the #ControlHost::handle-boot signal.
15748 * @handle_reboot: Handler for the #ControlHost::handle-reboot signal.
15749 * @handle_shutdown: Handler for the #ControlHost::handle-shutdown signal.
15750 * @get_debug_mode: Getter for the #ControlHost:debug-mode property.
15751 * @get_flash_side: Getter for the #ControlHost:flash-side property.
15754 …ual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
15763 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
15765 * ControlHost::handle-boot: in G_DEFINE_INTERFACE()
15769 … when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Host.boot">b… in G_DEFINE_INTERFACE()
15771 … will handle the invocation (e.g. take a reference to @invocation and eventually call control_host… in G_DEFINE_INTERFACE()
15775 g_signal_new ("handle-boot", in G_DEFINE_INTERFACE()
15787 * ControlHost::handle-shutdown: in G_DEFINE_INTERFACE()
15791 …n a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Host.shutdown">s… in G_DEFINE_INTERFACE()
15793 …ill handle the invocation (e.g. take a reference to @invocation and eventually call control_host_c… in G_DEFINE_INTERFACE()
15797 g_signal_new ("handle-shutdown", in G_DEFINE_INTERFACE()
15809 * ControlHost::handle-reboot: in G_DEFINE_INTERFACE()
15813 …hen a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Host.reboot">r… in G_DEFINE_INTERFACE()
15815 …will handle the invocation (e.g. take a reference to @invocation and eventually call control_host_… in G_DEFINE_INTERFACE()
15819 g_signal_new ("handle-reboot", in G_DEFINE_INTERFACE()
15830 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
15835 … the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org… in G_DEFINE_INTERFACE()
15837 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
15850 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
15852 * ControlHost:debug-mode: in G_DEFINE_INTERFACE()
15854 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-control-Host.debug_mode"… in G_DEFINE_INTERFACE()
15856 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
15859 …g_param_spec_int ("debug-mode", "debug_mode", "debug_mode", G_MININT32, G_MAXINT32, 0, G_PARAM_REA… in G_DEFINE_INTERFACE()
15861 * ControlHost:flash-side: in G_DEFINE_INTERFACE()
15863 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-control-Host.flash_side"… in G_DEFINE_INTERFACE()
15865 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
15868 …g_param_spec_string ("flash-side", "flash_side", "flash_side", NULL, G_PARAM_READWRITE | G_PARAM_S… in G_DEFINE_INTERFACE()
15875 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-control-Host.debug_mode">"debug_…
15877 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
15886 return CONTROL_HOST_GET_IFACE (object)->get_debug_mode (object); in control_host_get_debug_mode()
15894 …* Sets the <link linkend="gdbus-property-org-openbmc-control-Host.debug_mode">"debug_mode"</link> …
15896 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
15901 g_object_set (G_OBJECT (object), "debug-mode", value, NULL); in control_host_set_debug_mode()
15908 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-control-Host.flash_side">"flash_…
15910 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
15912 …* The returned value is only valid until the property changes so on the client-side it is only saf…
15921 return CONTROL_HOST_GET_IFACE (object)->get_flash_side (object); in control_host_get_flash_side()
15928 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-control-Host.flash_side">"flash_sid…
15930 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
15938 g_object_get (G_OBJECT (object), "flash-side", &value, NULL); in control_host_dup_flash_side()
15947 …* Sets the <link linkend="gdbus-property-org-openbmc-control-Host.flash_side">"flash_side"</link> …
15949 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
15954 g_object_set (G_OBJECT (object), "flash-side", value, NULL); in control_host_set_flash_side()
15961 …* Emits the <link linkend="gdbus-signal-org-openbmc-control-Host.Booted">"Booted"</link> D-Bus sig…
15977 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Host.boot">boot()</li…
15978 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
15994 -1, in control_host_call_boot()
16033 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Host.boot">boot()</lin…
16050 -1, in control_host_call_boot_sync()
16069 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Host.shutdown">shutdo…
16070 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
16086 -1, in control_host_call_shutdown()
16125 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Host.shutdown">shutdow…
16142 -1, in control_host_call_shutdown_sync()
16161 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Host.reboot">reboot()…
16162 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
16178 -1, in control_host_call_reboot()
16217 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Host.reboot">reboot()<…
16234 -1, in control_host_call_reboot_sync()
16251 …to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Host.boot">b…
16269 …inish handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Host.shutdown">s…
16287 … finish handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Host.reboot">r…
16300 /* ------------------------------------------------------------------------ */
16336 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
16337 G_OBJECT_CLASS (control_host_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
16348 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_host_proxy_get_property()
16349 info = (const _ExtendedGDBusPropertyInfo *) _control_host_property_info_pointers[prop_id - 1]; in control_host_proxy_get_property()
16350 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in control_host_proxy_get_property()
16351 if (info->use_gvariant) in control_host_proxy_get_property()
16377 info->parent_struct.name, in control_host_proxy_set_property_cb()
16378 error->message, g_quark_to_string (error->domain), error->code); in control_host_proxy_set_property_cb()
16395 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_host_proxy_set_property()
16396 info = (const _ExtendedGDBusPropertyInfo *) _control_host_property_info_pointers[prop_id - 1]; in control_host_proxy_set_property()
16397 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in control_host_proxy_set_property()
16400 g_variant_new ("(ssv)", "org.openbmc.control.Host", info->parent_struct.name, variant), in control_host_proxy_set_property()
16402 -1, in control_host_proxy_set_property()
16403 …NULL, (GAsyncReadyCallback) control_host_proxy_set_property_cb, (GDBusPropertyInfo *) &info->paren… in control_host_proxy_set_property()
16431 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in control_host_proxy_g_signal()
16432 if (arg_info->use_gvariant) in control_host_proxy_g_signal()
16442 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_HOST); in control_host_proxy_g_signal()
16463 g_datalist_remove_data (&proxy->priv->qdata, key); in control_host_proxy_g_properties_changed()
16465 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_host_proxy_g_properties_changed()
16471 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in control_host_proxy_g_properties_changed()
16473 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_host_proxy_g_properties_changed()
16511 proxy->priv = control_host_proxy_get_instance_private (proxy); in control_host_proxy_init()
16513 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_CONTROL_HOST_PROXY, ControlHostProxyPrivate… in control_host_proxy_init()
16526 gobject_class->finalize = control_host_proxy_finalize; in control_host_proxy_class_init()
16527 gobject_class->get_property = control_host_proxy_get_property; in control_host_proxy_class_init()
16528 gobject_class->set_property = control_host_proxy_set_property; in control_host_proxy_class_init()
16531 proxy_class->g_signal = control_host_proxy_g_signal; in control_host_proxy_class_init()
16532 proxy_class->g_properties_changed = control_host_proxy_g_properties_changed; in control_host_proxy_class_init()
16544 iface->get_debug_mode = control_host_proxy_get_debug_mode; in control_host_proxy_iface_init()
16545 iface->get_flash_side = control_host_proxy_get_flash_side; in control_host_proxy_iface_init()
16552 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
16558 …s a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
16560 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
16575 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_host_proxy_new()
16607 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
16612 …s a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
16630 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_host_proxy_new_sync()
16642 * @name: A bus name (well-known or unique).
16650 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
16665 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_host_proxy_new_for_bus()
16697 * @name: A bus name (well-known or unique).
16720 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_host_proxy_new_for_bus_sync()
16728 /* ------------------------------------------------------------------------ */
16776 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _control_host_skeleton_handle_method_call()
16782 if (info->pass_fdlist) in _control_host_skeleton_handle_method_call()
16794 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _control_host_skeleton_handle_method_call()
16795 if (arg_info->use_gvariant) in _control_host_skeleton_handle_method_call()
16805 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_HOST); in _control_host_skeleton_handle_method_call()
16834 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_host_skeleton_handle_get_property()
16841 g_value_init (&value, pspec->value_type); in _control_host_skeleton_handle_get_property()
16842 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_host_skeleton_handle_get_property()
16843 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _control_host_skeleton_handle_get_property()
16868 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_host_skeleton_handle_set_property()
16875 if (info->use_gvariant) in _control_host_skeleton_handle_set_property()
16879 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_host_skeleton_handle_set_property()
16919 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in control_host_skeleton_dbus_interface_get_properties()
16922 …ath (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.control.Host", info->name, NULL, skeleton… in control_host_skeleton_dbus_interface_get_properties()
16926 g_variant_builder_add (&builder, "{sv}", info->name, value); in control_host_skeleton_dbus_interface_get_properties()
16943 g_mutex_lock (&skeleton->priv->lock); in control_host_skeleton_dbus_interface_flush()
16944 if (skeleton->priv->changed_properties_idle_source != NULL) in control_host_skeleton_dbus_interface_flush()
16946 g_source_destroy (skeleton->priv->changed_properties_idle_source); in control_host_skeleton_dbus_interface_flush()
16947 skeleton->priv->changed_properties_idle_source = NULL; in control_host_skeleton_dbus_interface_flush()
16950 g_mutex_unlock (&skeleton->priv->lock); in control_host_skeleton_dbus_interface_flush()
16967 for (l = connections; l != NULL; l = l->next) in _control_host_on_signal_booted()
16969 GDBusConnection *connection = l->data; in _control_host_on_signal_booted()
16995 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
16996 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
16997 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
16998 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
16999 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
17000 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
17001 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
17002 G_OBJECT_CLASS (control_host_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
17012 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_host_skeleton_get_property()
17013 g_mutex_lock (&skeleton->priv->lock); in control_host_skeleton_get_property()
17014 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in control_host_skeleton_get_property()
17015 g_mutex_unlock (&skeleton->priv->lock); in control_host_skeleton_get_property()
17027 g_mutex_lock (&skeleton->priv->lock); in _control_host_emit_changed()
17030 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _control_host_emit_changed()
17032 ChangedProperty *cp = l->data; in _control_host_emit_changed()
17036 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _control_host_emit_changed()
17037 if (!_g_value_equal (cur_value, &cp->orig_value)) in _control_host_emit_changed()
17039 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _control_host_emit_changed()
17040 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _control_host_emit_changed()
17052 for (ll = connections; ll != NULL; ll = ll->next) in _control_host_emit_changed()
17054 GDBusConnection *connection = ll->data; in _control_host_emit_changed()
17071 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _control_host_emit_changed()
17072 skeleton->priv->changed_properties = NULL; in _control_host_emit_changed()
17073 skeleton->priv->changed_properties_idle_source = NULL; in _control_host_emit_changed()
17074 g_mutex_unlock (&skeleton->priv->lock); in _control_host_emit_changed()
17084 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _control_host_schedule_emit_changed()
17086 ChangedProperty *i_cp = l->data; in _control_host_schedule_emit_changed()
17087 if (i_cp->info == info) in _control_host_schedule_emit_changed()
17096 cp->prop_id = prop_id; in _control_host_schedule_emit_changed()
17097 cp->info = info; in _control_host_schedule_emit_changed()
17098 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _control_host_schedule_emit_changed()
17099 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _control_host_schedule_emit_changed()
17100 g_value_copy (orig_value, &cp->orig_value); in _control_host_schedule_emit_changed()
17109 g_mutex_lock (&skeleton->priv->lock); in control_host_skeleton_notify()
17110 if (skeleton->priv->changed_properties != NULL && in control_host_skeleton_notify()
17111 skeleton->priv->changed_properties_idle_source == NULL) in control_host_skeleton_notify()
17113 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in control_host_skeleton_notify()
17114 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in control_host_skeleton_notify()
17115 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _control_host_emit_changed,… in control_host_skeleton_notify()
17116 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _control_host_emit… in control_host_skeleton_notify()
17117 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in control_host_skeleton_notify()
17118 g_source_unref (skeleton->priv->changed_properties_idle_source); in control_host_skeleton_notify()
17120 g_mutex_unlock (&skeleton->priv->lock); in control_host_skeleton_notify()
17131 g_assert (prop_id != 0 && prop_id - 1 < 2); in control_host_skeleton_set_property()
17132 info = (const _ExtendedGDBusPropertyInfo *) _control_host_property_info_pointers[prop_id - 1]; in control_host_skeleton_set_property()
17133 g_mutex_lock (&skeleton->priv->lock); in control_host_skeleton_set_property()
17135 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in control_host_skeleton_set_property()
17138 info->emits_changed_signal) in control_host_skeleton_set_property()
17139 …rol_host_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in control_host_skeleton_set_property()
17140 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in control_host_skeleton_set_property()
17143 g_mutex_unlock (&skeleton->priv->lock); in control_host_skeleton_set_property()
17151 skeleton->priv = control_host_skeleton_get_instance_private (skeleton); in control_host_skeleton_init()
17153 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_CONTROL_HOST_SKELETON, ControlHostSke… in control_host_skeleton_init()
17156 g_mutex_init (&skeleton->priv->lock); in control_host_skeleton_init()
17157 skeleton->priv->context = g_main_context_ref_thread_default (); in control_host_skeleton_init()
17158 skeleton->priv->properties = g_new0 (GValue, 2); in control_host_skeleton_init()
17159 g_value_init (&skeleton->priv->properties[0], G_TYPE_INT); in control_host_skeleton_init()
17160 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in control_host_skeleton_init()
17168 g_mutex_lock (&skeleton->priv->lock); in control_host_skeleton_get_debug_mode()
17169 value = g_marshal_value_peek_int (&(skeleton->priv->properties[0])); in control_host_skeleton_get_debug_mode()
17170 g_mutex_unlock (&skeleton->priv->lock); in control_host_skeleton_get_debug_mode()
17179 g_mutex_lock (&skeleton->priv->lock); in control_host_skeleton_get_flash_side()
17180 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in control_host_skeleton_get_flash_side()
17181 g_mutex_unlock (&skeleton->priv->lock); in control_host_skeleton_get_flash_side()
17192 gobject_class->finalize = control_host_skeleton_finalize; in control_host_skeleton_class_init()
17193 gobject_class->get_property = control_host_skeleton_get_property; in control_host_skeleton_class_init()
17194 gobject_class->set_property = control_host_skeleton_set_property; in control_host_skeleton_class_init()
17195 gobject_class->notify = control_host_skeleton_notify; in control_host_skeleton_class_init()
17201 skeleton_class->get_info = control_host_skeleton_dbus_interface_get_info; in control_host_skeleton_class_init()
17202 skeleton_class->get_properties = control_host_skeleton_dbus_interface_get_properties; in control_host_skeleton_class_init()
17203 skeleton_class->flush = control_host_skeleton_dbus_interface_flush; in control_host_skeleton_class_init()
17204 skeleton_class->get_vtable = control_host_skeleton_dbus_interface_get_vtable; in control_host_skeleton_class_init()
17214 iface->booted = _control_host_on_signal_booted; in control_host_skeleton_iface_init()
17215 iface->get_debug_mode = control_host_skeleton_get_debug_mode; in control_host_skeleton_iface_init()
17216 iface->get_flash_side = control_host_skeleton_get_flash_side; in control_host_skeleton_iface_init()
17222 …on object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
17232 /* ------------------------------------------------------------------------
17234 * ------------------------------------------------------------------------
17240 * @short_description: Generated C code for the org.openbmc.control.Power D-Bus interface
17242 …e for working with the <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_page">org.o…
17253 /* ---- Introspection data for org.openbmc.control.Power ---- */
17258 -1,
17275 -1,
17281 "handle-set-power-state",
17288 -1,
17305 -1,
17311 "handle-get-power-state",
17325 -1,
17330 "power-good"
17336 -1,
17341 "power-lost"
17354 -1,
17368 -1,
17382 -1,
17388 "pgood-timeout",
17404 -1,
17411 "control-power",
17418 …a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-control-Power.top…
17443 g_object_class_override_property (klass, property_id_begin++, "pgood-timeout"); in control_power_override_properties()
17444 return property_id_begin - 1; in control_power_override_properties()
17504 …ace type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
17510 * @handle_get_power_state: Handler for the #ControlPower::handle-get-power-state signal.
17511 * @handle_set_power_state: Handler for the #ControlPower::handle-set-power-state signal.
17513 * @get_pgood_timeout: Getter for the #ControlPower:pgood-timeout property.
17515 * @power_good: Handler for the #ControlPower::power-good signal.
17516 * @power_lost: Handler for the #ControlPower::power-lost signal.
17518 …al table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
17527 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
17529 * ControlPower::handle-set-power-state: in G_DEFINE_INTERFACE()
17534 …emote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Power.setPowerState">… in G_DEFINE_INTERFACE()
17536 …handle the invocation (e.g. take a reference to @invocation and eventually call control_power_comp… in G_DEFINE_INTERFACE()
17540 g_signal_new ("handle-set-power-state", in G_DEFINE_INTERFACE()
17552 * ControlPower::handle-get-power-state: in G_DEFINE_INTERFACE()
17556 …emote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Power.getPowerState">… in G_DEFINE_INTERFACE()
17558 …handle the invocation (e.g. take a reference to @invocation and eventually call control_power_comp… in G_DEFINE_INTERFACE()
17562 g_signal_new ("handle-get-power-state", in G_DEFINE_INTERFACE()
17573 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
17575 * ControlPower::power-good: in G_DEFINE_INTERFACE()
17578 … client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ope… in G_DEFINE_INTERFACE()
17580 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
17583 g_signal_new ("power-good", in G_DEFINE_INTERFACE()
17594 * ControlPower::power-lost: in G_DEFINE_INTERFACE()
17597 … client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ope… in G_DEFINE_INTERFACE()
17599 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
17602 g_signal_new ("power-lost", in G_DEFINE_INTERFACE()
17612 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
17616 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-control-Power.pgood">"pg… in G_DEFINE_INTERFACE()
17618 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
17625 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-control-Power.state">"st… in G_DEFINE_INTERFACE()
17627 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
17632 * ControlPower:pgood-timeout: in G_DEFINE_INTERFACE()
17634 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-control-Power.pgood_time… in G_DEFINE_INTERFACE()
17636 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
17639 …g_param_spec_int ("pgood-timeout", "pgood_timeout", "pgood_timeout", G_MININT32, G_MAXINT32, 0, G_… in G_DEFINE_INTERFACE()
17646 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-control-Power.pgood">"pgood"</li…
17648 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
17657 return CONTROL_POWER_GET_IFACE (object)->get_pgood (object); in control_power_get_pgood()
17665 …* Sets the <link linkend="gdbus-property-org-openbmc-control-Power.pgood">"pgood"</link> D-Bus pro…
17667 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
17679 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-control-Power.state">"state"</li…
17681 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
17690 return CONTROL_POWER_GET_IFACE (object)->get_state (object); in control_power_get_state()
17698 …* Sets the <link linkend="gdbus-property-org-openbmc-control-Power.state">"state"</link> D-Bus pro…
17700 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
17712 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-control-Power.pgood_timeout">"pg…
17714 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
17723 return CONTROL_POWER_GET_IFACE (object)->get_pgood_timeout (object); in control_power_get_pgood_timeout()
17731 …* Sets the <link linkend="gdbus-property-org-openbmc-control-Power.pgood_timeout">"pgood_timeout"<…
17733 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
17738 g_object_set (G_OBJECT (object), "pgood-timeout", value, NULL); in control_power_set_pgood_timeout()
17745 …* Emits the <link linkend="gdbus-signal-org-openbmc-control-Power.PowerGood">"PowerGood"</link> D-…
17758 …* Emits the <link linkend="gdbus-signal-org-openbmc-control-Power.PowerLost">"PowerLost"</link> D-…
17775 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Power.setPowerState">…
17776 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
17794 -1, in control_power_call_set_power_state()
17834 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Power.setPowerState">s…
17853 -1, in control_power_call_set_power_state_sync()
17872 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Power.getPowerState">…
17873 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
17889 -1, in control_power_call_get_power_state()
17932 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Power.getPowerState">g…
17950 -1, in control_power_call_get_power_state_sync()
17968 … handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Power.setPowerState">…
17987 … handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Power.getPowerState">…
18002 /* ------------------------------------------------------------------------ */
18038 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
18039 G_OBJECT_CLASS (control_power_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
18050 g_assert (prop_id != 0 && prop_id - 1 < 3); in control_power_proxy_get_property()
18051 info = (const _ExtendedGDBusPropertyInfo *) _control_power_property_info_pointers[prop_id - 1]; in control_power_proxy_get_property()
18052 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in control_power_proxy_get_property()
18053 if (info->use_gvariant) in control_power_proxy_get_property()
18079 info->parent_struct.name, in control_power_proxy_set_property_cb()
18080 error->message, g_quark_to_string (error->domain), error->code); in control_power_proxy_set_property_cb()
18097 g_assert (prop_id != 0 && prop_id - 1 < 3); in control_power_proxy_set_property()
18098 info = (const _ExtendedGDBusPropertyInfo *) _control_power_property_info_pointers[prop_id - 1]; in control_power_proxy_set_property()
18099 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in control_power_proxy_set_property()
18102 g_variant_new ("(ssv)", "org.openbmc.control.Power", info->parent_struct.name, variant), in control_power_proxy_set_property()
18104 -1, in control_power_proxy_set_property()
18105 …NULL, (GAsyncReadyCallback) control_power_proxy_set_property_cb, (GDBusPropertyInfo *) &info->pare… in control_power_proxy_set_property()
18133 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in control_power_proxy_g_signal()
18134 if (arg_info->use_gvariant) in control_power_proxy_g_signal()
18144 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_POWER); in control_power_proxy_g_signal()
18165 g_datalist_remove_data (&proxy->priv->qdata, key); in control_power_proxy_g_properties_changed()
18167 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_power_proxy_g_properties_changed()
18173 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in control_power_proxy_g_properties_changed()
18175 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_power_proxy_g_properties_changed()
18228 proxy->priv = control_power_proxy_get_instance_private (proxy); in control_power_proxy_init()
18230 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_CONTROL_POWER_PROXY, ControlPowerProxyPriva… in control_power_proxy_init()
18243 gobject_class->finalize = control_power_proxy_finalize; in control_power_proxy_class_init()
18244 gobject_class->get_property = control_power_proxy_get_property; in control_power_proxy_class_init()
18245 gobject_class->set_property = control_power_proxy_set_property; in control_power_proxy_class_init()
18248 proxy_class->g_signal = control_power_proxy_g_signal; in control_power_proxy_class_init()
18249 proxy_class->g_properties_changed = control_power_proxy_g_properties_changed; in control_power_proxy_class_init()
18261 iface->get_pgood = control_power_proxy_get_pgood; in control_power_proxy_iface_init()
18262 iface->get_state = control_power_proxy_get_state; in control_power_proxy_iface_init()
18263 iface->get_pgood_timeout = control_power_proxy_get_pgood_timeout; in control_power_proxy_iface_init()
18270 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
18276 … a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
18278 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
18293 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_power_proxy_new()
18325 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
18330 … a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
18348 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_power_proxy_new_sync()
18360 * @name: A bus name (well-known or unique).
18368 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
18383 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_power_proxy_new_for_bus()
18415 * @name: A bus name (well-known or unique).
18438 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_power_proxy_new_for_bus_sync()
18446 /* ------------------------------------------------------------------------ */
18494 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _control_power_skeleton_handle_method_call()
18500 if (info->pass_fdlist) in _control_power_skeleton_handle_method_call()
18512 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _control_power_skeleton_handle_method_call()
18513 if (arg_info->use_gvariant) in _control_power_skeleton_handle_method_call()
18523 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_POWER); in _control_power_skeleton_handle_method_call()
18552 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_power_skeleton_handle_get_property()
18559 g_value_init (&value, pspec->value_type); in _control_power_skeleton_handle_get_property()
18560 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_power_skeleton_handle_get_property()
18561 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _control_power_skeleton_handle_get_property()
18586 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_power_skeleton_handle_set_property()
18593 if (info->use_gvariant) in _control_power_skeleton_handle_set_property()
18597 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_power_skeleton_handle_set_property()
18637 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in control_power_skeleton_dbus_interface_get_properties()
18640 …th (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.control.Power", info->name, NULL, skeleton… in control_power_skeleton_dbus_interface_get_properties()
18644 g_variant_builder_add (&builder, "{sv}", info->name, value); in control_power_skeleton_dbus_interface_get_properties()
18661 g_mutex_lock (&skeleton->priv->lock); in control_power_skeleton_dbus_interface_flush()
18662 if (skeleton->priv->changed_properties_idle_source != NULL) in control_power_skeleton_dbus_interface_flush()
18664 g_source_destroy (skeleton->priv->changed_properties_idle_source); in control_power_skeleton_dbus_interface_flush()
18665 skeleton->priv->changed_properties_idle_source = NULL; in control_power_skeleton_dbus_interface_flush()
18668 g_mutex_unlock (&skeleton->priv->lock); in control_power_skeleton_dbus_interface_flush()
18685 for (l = connections; l != NULL; l = l->next) in _control_power_on_signal_power_good()
18687 GDBusConnection *connection = l->data; in _control_power_on_signal_power_good()
18707 for (l = connections; l != NULL; l = l->next) in _control_power_on_signal_power_lost()
18709 GDBusConnection *connection = l->data; in _control_power_on_signal_power_lost()
18735 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
18736 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
18737 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
18738 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
18739 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
18740 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
18741 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
18742 G_OBJECT_CLASS (control_power_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
18752 g_assert (prop_id != 0 && prop_id - 1 < 3); in control_power_skeleton_get_property()
18753 g_mutex_lock (&skeleton->priv->lock); in control_power_skeleton_get_property()
18754 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in control_power_skeleton_get_property()
18755 g_mutex_unlock (&skeleton->priv->lock); in control_power_skeleton_get_property()
18767 g_mutex_lock (&skeleton->priv->lock); in _control_power_emit_changed()
18770 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _control_power_emit_changed()
18772 ChangedProperty *cp = l->data; in _control_power_emit_changed()
18776 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _control_power_emit_changed()
18777 if (!_g_value_equal (cur_value, &cp->orig_value)) in _control_power_emit_changed()
18779 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _control_power_emit_changed()
18780 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _control_power_emit_changed()
18792 for (ll = connections; ll != NULL; ll = ll->next) in _control_power_emit_changed()
18794 GDBusConnection *connection = ll->data; in _control_power_emit_changed()
18811 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _control_power_emit_changed()
18812 skeleton->priv->changed_properties = NULL; in _control_power_emit_changed()
18813 skeleton->priv->changed_properties_idle_source = NULL; in _control_power_emit_changed()
18814 g_mutex_unlock (&skeleton->priv->lock); in _control_power_emit_changed()
18824 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _control_power_schedule_emit_changed()
18826 ChangedProperty *i_cp = l->data; in _control_power_schedule_emit_changed()
18827 if (i_cp->info == info) in _control_power_schedule_emit_changed()
18836 cp->prop_id = prop_id; in _control_power_schedule_emit_changed()
18837 cp->info = info; in _control_power_schedule_emit_changed()
18838 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _control_power_schedule_emit_changed()
18839 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _control_power_schedule_emit_changed()
18840 g_value_copy (orig_value, &cp->orig_value); in _control_power_schedule_emit_changed()
18849 g_mutex_lock (&skeleton->priv->lock); in control_power_skeleton_notify()
18850 if (skeleton->priv->changed_properties != NULL && in control_power_skeleton_notify()
18851 skeleton->priv->changed_properties_idle_source == NULL) in control_power_skeleton_notify()
18853 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in control_power_skeleton_notify()
18854 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in control_power_skeleton_notify()
18855 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _control_power_emit_changed… in control_power_skeleton_notify()
18856 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _control_power_emi… in control_power_skeleton_notify()
18857 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in control_power_skeleton_notify()
18858 g_source_unref (skeleton->priv->changed_properties_idle_source); in control_power_skeleton_notify()
18860 g_mutex_unlock (&skeleton->priv->lock); in control_power_skeleton_notify()
18871 g_assert (prop_id != 0 && prop_id - 1 < 3); in control_power_skeleton_set_property()
18872 info = (const _ExtendedGDBusPropertyInfo *) _control_power_property_info_pointers[prop_id - 1]; in control_power_skeleton_set_property()
18873 g_mutex_lock (&skeleton->priv->lock); in control_power_skeleton_set_property()
18875 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in control_power_skeleton_set_property()
18878 info->emits_changed_signal) in control_power_skeleton_set_property()
18879 …ol_power_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in control_power_skeleton_set_property()
18880 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in control_power_skeleton_set_property()
18883 g_mutex_unlock (&skeleton->priv->lock); in control_power_skeleton_set_property()
18891 skeleton->priv = control_power_skeleton_get_instance_private (skeleton); in control_power_skeleton_init()
18893 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_CONTROL_POWER_SKELETON, ControlPowerS… in control_power_skeleton_init()
18896 g_mutex_init (&skeleton->priv->lock); in control_power_skeleton_init()
18897 skeleton->priv->context = g_main_context_ref_thread_default (); in control_power_skeleton_init()
18898 skeleton->priv->properties = g_new0 (GValue, 3); in control_power_skeleton_init()
18899 g_value_init (&skeleton->priv->properties[0], G_TYPE_INT); in control_power_skeleton_init()
18900 g_value_init (&skeleton->priv->properties[1], G_TYPE_INT); in control_power_skeleton_init()
18901 g_value_init (&skeleton->priv->properties[2], G_TYPE_INT); in control_power_skeleton_init()
18909 g_mutex_lock (&skeleton->priv->lock); in control_power_skeleton_get_pgood()
18910 value = g_marshal_value_peek_int (&(skeleton->priv->properties[0])); in control_power_skeleton_get_pgood()
18911 g_mutex_unlock (&skeleton->priv->lock); in control_power_skeleton_get_pgood()
18920 g_mutex_lock (&skeleton->priv->lock); in control_power_skeleton_get_state()
18921 value = g_marshal_value_peek_int (&(skeleton->priv->properties[1])); in control_power_skeleton_get_state()
18922 g_mutex_unlock (&skeleton->priv->lock); in control_power_skeleton_get_state()
18931 g_mutex_lock (&skeleton->priv->lock); in control_power_skeleton_get_pgood_timeout()
18932 value = g_marshal_value_peek_int (&(skeleton->priv->properties[2])); in control_power_skeleton_get_pgood_timeout()
18933 g_mutex_unlock (&skeleton->priv->lock); in control_power_skeleton_get_pgood_timeout()
18944 gobject_class->finalize = control_power_skeleton_finalize; in control_power_skeleton_class_init()
18945 gobject_class->get_property = control_power_skeleton_get_property; in control_power_skeleton_class_init()
18946 gobject_class->set_property = control_power_skeleton_set_property; in control_power_skeleton_class_init()
18947 gobject_class->notify = control_power_skeleton_notify; in control_power_skeleton_class_init()
18953 skeleton_class->get_info = control_power_skeleton_dbus_interface_get_info; in control_power_skeleton_class_init()
18954 skeleton_class->get_properties = control_power_skeleton_dbus_interface_get_properties; in control_power_skeleton_class_init()
18955 skeleton_class->flush = control_power_skeleton_dbus_interface_flush; in control_power_skeleton_class_init()
18956 skeleton_class->get_vtable = control_power_skeleton_dbus_interface_get_vtable; in control_power_skeleton_class_init()
18966 iface->power_good = _control_power_on_signal_power_good; in control_power_skeleton_iface_init()
18967 iface->power_lost = _control_power_on_signal_power_lost; in control_power_skeleton_iface_init()
18968 iface->get_pgood = control_power_skeleton_get_pgood; in control_power_skeleton_iface_init()
18969 iface->get_state = control_power_skeleton_get_state; in control_power_skeleton_iface_init()
18970 iface->get_pgood_timeout = control_power_skeleton_get_pgood_timeout; in control_power_skeleton_iface_init()
18976 …n object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
18986 /* ------------------------------------------------------------------------
18988 * ------------------------------------------------------------------------
18994 * @short_description: Generated C code for the org.openbmc.control.Checkstop D-Bus interface
18996 …r working with the <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_page">org.o…
18999 /* ---- Introspection data for org.openbmc.control.Checkstop ---- */
19004 -1,
19011 "control-checkstop",
19018 …chine-readable description of the <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top…
19041 return property_id_begin - 1; in control_checkstop_override_properties()
19049 …type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
19056 …able for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
19067 /* ------------------------------------------------------------------------ */
19103 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
19104 G_OBJECT_CLASS (control_checkstop_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
19147 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in control_checkstop_proxy_g_signal()
19148 if (arg_info->use_gvariant) in control_checkstop_proxy_g_signal()
19158 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_CHECKSTOP); in control_checkstop_proxy_g_signal()
19179 g_datalist_remove_data (&proxy->priv->qdata, key); in control_checkstop_proxy_g_properties_changed()
19181 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_checkstop_proxy_g_properties_changed()
19187 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in control_checkstop_proxy_g_properties_changed()
19189 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in control_checkstop_proxy_g_properties_changed()
19197 proxy->priv = control_checkstop_proxy_get_instance_private (proxy); in control_checkstop_proxy_init()
19199 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopPr… in control_checkstop_proxy_init()
19212 gobject_class->finalize = control_checkstop_proxy_finalize; in control_checkstop_proxy_class_init()
19213 gobject_class->get_property = control_checkstop_proxy_get_property; in control_checkstop_proxy_class_init()
19214 gobject_class->set_property = control_checkstop_proxy_set_property; in control_checkstop_proxy_class_init()
19217 proxy_class->g_signal = control_checkstop_proxy_g_signal; in control_checkstop_proxy_class_init()
19218 proxy_class->g_properties_changed = control_checkstop_proxy_g_properties_changed; in control_checkstop_proxy_class_init()
19234 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
19240 …roxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
19242 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
19257 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_checkstop_proxy_new()
19289 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
19294 …roxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
19312 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in control_checkstop_proxy_new_sync()
19324 * @name: A bus name (well-known or unique).
19332 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
19347 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_checkstop_proxy_new_for_bus()
19379 * @name: A bus name (well-known or unique).
19402 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in control_checkstop_proxy_new_for_bus_sync()
19410 /* ------------------------------------------------------------------------ */
19458 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _control_checkstop_skeleton_handle_method_call()
19464 if (info->pass_fdlist) in _control_checkstop_skeleton_handle_method_call()
19476 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _control_checkstop_skeleton_handle_method_call()
19477 if (arg_info->use_gvariant) in _control_checkstop_skeleton_handle_method_call()
19487 signal_id = g_signal_lookup (info->signal_name, TYPE_CONTROL_CHECKSTOP); in _control_checkstop_skeleton_handle_method_call()
19516 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_checkstop_skeleton_handle_get_property()
19523 g_value_init (&value, pspec->value_type); in _control_checkstop_skeleton_handle_get_property()
19524 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_checkstop_skeleton_handle_get_property()
19525 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _control_checkstop_skeleton_handle_get_property()
19550 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _control_checkstop_skeleton_handle_set_property()
19557 if (info->use_gvariant) in _control_checkstop_skeleton_handle_set_property()
19561 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _control_checkstop_skeleton_handle_set_property()
19601 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in control_checkstop_skeleton_dbus_interface_get_properties()
19604 …G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.control.Checkstop", info->name, NULL, skeleton… in control_checkstop_skeleton_dbus_interface_get_properties()
19608 g_variant_builder_add (&builder, "{sv}", info->name, value); in control_checkstop_skeleton_dbus_interface_get_properties()
19637 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
19638 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
19639 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
19640 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
19641 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
19642 G_OBJECT_CLASS (control_checkstop_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
19649 skeleton->priv = control_checkstop_skeleton_get_instance_private (skeleton); in control_checkstop_skeleton_init()
19651 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCh… in control_checkstop_skeleton_init()
19654 g_mutex_init (&skeleton->priv->lock); in control_checkstop_skeleton_init()
19655 skeleton->priv->context = g_main_context_ref_thread_default (); in control_checkstop_skeleton_init()
19665 gobject_class->finalize = control_checkstop_skeleton_finalize; in control_checkstop_skeleton_class_init()
19668 skeleton_class->get_info = control_checkstop_skeleton_dbus_interface_get_info; in control_checkstop_skeleton_class_init()
19669 skeleton_class->get_properties = control_checkstop_skeleton_dbus_interface_get_properties; in control_checkstop_skeleton_class_init()
19670 skeleton_class->flush = control_checkstop_skeleton_dbus_interface_flush; in control_checkstop_skeleton_class_init()
19671 skeleton_class->get_vtable = control_checkstop_skeleton_dbus_interface_get_vtable; in control_checkstop_skeleton_class_init()
19686 …ject for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
19696 /* ------------------------------------------------------------------------
19698 * ------------------------------------------------------------------------
19704 * @short_description: Generated C code for the org.openbmc.Watchdog D-Bus interface
19706 …s code for working with the <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_page">org.o…
19716 /* ---- Introspection data for org.openbmc.Watchdog ---- */
19721 -1,
19727 "handle-start",
19734 -1,
19740 "handle-poke",
19747 -1,
19753 "handle-stop",
19760 -1,
19777 -1,
19783 "handle-set",
19799 -1,
19804 "watchdog-error"
19816 -1,
19830 -1,
19836 "poll-interval",
19851 -1,
19865 …Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Watchdog.top…
19889 g_object_class_override_property (klass, property_id_begin++, "poll-interval"); in watchdog_override_properties()
19890 return property_id_begin - 1; in watchdog_override_properties()
19963 …nterface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
19969 * @handle_poke: Handler for the #Watchdog::handle-poke signal.
19970 * @handle_set: Handler for the #Watchdog::handle-set signal.
19971 * @handle_start: Handler for the #Watchdog::handle-start signal.
19972 * @handle_stop: Handler for the #Watchdog::handle-stop signal.
19973 * @get_poll_interval: Getter for the #Watchdog:poll-interval property.
19975 * @watchdog_error: Handler for the #Watchdog::watchdog-error signal.
19977 …Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
19986 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
19988 * Watchdog::handle-start: in G_DEFINE_INTERFACE()
19992 …d when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Watchdog.start">sta… in G_DEFINE_INTERFACE()
19994 …er will handle the invocation (e.g. take a reference to @invocation and eventually call watchdog_c… in G_DEFINE_INTERFACE()
19998 g_signal_new ("handle-start", in G_DEFINE_INTERFACE()
20010 * Watchdog::handle-poke: in G_DEFINE_INTERFACE()
20014 …ed when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Watchdog.poke">pok… in G_DEFINE_INTERFACE()
20016 …er will handle the invocation (e.g. take a reference to @invocation and eventually call watchdog_c… in G_DEFINE_INTERFACE()
20020 g_signal_new ("handle-poke", in G_DEFINE_INTERFACE()
20032 * Watchdog::handle-stop: in G_DEFINE_INTERFACE()
20036 …ed when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Watchdog.stop">sto… in G_DEFINE_INTERFACE()
20038 …er will handle the invocation (e.g. take a reference to @invocation and eventually call watchdog_c… in G_DEFINE_INTERFACE()
20042 g_signal_new ("handle-stop", in G_DEFINE_INTERFACE()
20054 * Watchdog::handle-set: in G_DEFINE_INTERFACE()
20059 …ted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Watchdog.set">set… in G_DEFINE_INTERFACE()
20061 …ler will handle the invocation (e.g. take a reference to @invocation and eventually call watchdog_… in G_DEFINE_INTERFACE()
20065 g_signal_new ("handle-set", in G_DEFINE_INTERFACE()
20076 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
20078 * Watchdog::watchdog-error: in G_DEFINE_INTERFACE()
20081 …client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-open… in G_DEFINE_INTERFACE()
20083 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
20086 g_signal_new ("watchdog-error", in G_DEFINE_INTERFACE()
20096 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
20100 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Watchdog.watchdog">"watc… in G_DEFINE_INTERFACE()
20102 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
20107 * Watchdog:poll-interval: in G_DEFINE_INTERFACE()
20109 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Watchdog.poll_interval">… in G_DEFINE_INTERFACE()
20111 …-Bus property for this #GObject property is both readable and writable, it is meaningful to both r… in G_DEFINE_INTERFACE()
20114 …g_param_spec_int ("poll-interval", "poll_interval", "poll_interval", G_MININT32, G_MAXINT32, 0, G_… in G_DEFINE_INTERFACE()
20121 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Watchdog.watchdog">"watchdog"</l…
20123 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
20132 return WATCHDOG_GET_IFACE (object)->get_watchdog (object); in watchdog_get_watchdog()
20140 …* Sets the <link linkend="gdbus-property-org-openbmc-Watchdog.watchdog">"watchdog"</link> D-Bus pr…
20142 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
20154 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Watchdog.poll_interval">"poll_in…
20156 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
20165 return WATCHDOG_GET_IFACE (object)->get_poll_interval (object); in watchdog_get_poll_interval()
20173 …* Sets the <link linkend="gdbus-property-org-openbmc-Watchdog.poll_interval">"poll_interval"</link…
20175 …* Since this D-Bus property is both readable and writable, it is meaningful to use this function o…
20180 g_object_set (G_OBJECT (object), "poll-interval", value, NULL); in watchdog_set_poll_interval()
20187 …* Emits the <link linkend="gdbus-signal-org-openbmc-Watchdog.WatchdogError">"WatchdogError"</link>…
20203 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.start">start()</link…
20204 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
20220 -1, in watchdog_call_start()
20259 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.start">start()</link>…
20276 -1, in watchdog_call_start_sync()
20295 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.poke">poke()</link> …
20296 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
20312 -1, in watchdog_call_poke()
20351 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.poke">poke()</link> D…
20368 -1, in watchdog_call_poke_sync()
20387 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.stop">stop()</link> …
20388 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
20404 -1, in watchdog_call_stop()
20443 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.stop">stop()</link> D…
20460 -1, in watchdog_call_stop_sync()
20480 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.set">set()</link> D-…
20481 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
20499 -1, in watchdog_call_set()
20539 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Watchdog.set">set()</link> D-B…
20558 -1, in watchdog_call_set_sync()
20575 … to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Watchdog.start">sta…
20593 …s to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Watchdog.poke">pok…
20611 …s to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Watchdog.stop">sto…
20629 …ns to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Watchdog.set">set…
20642 /* ------------------------------------------------------------------------ */
20678 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
20679 G_OBJECT_CLASS (watchdog_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
20690 g_assert (prop_id != 0 && prop_id - 1 < 2); in watchdog_proxy_get_property()
20691 info = (const _ExtendedGDBusPropertyInfo *) _watchdog_property_info_pointers[prop_id - 1]; in watchdog_proxy_get_property()
20692 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in watchdog_proxy_get_property()
20693 if (info->use_gvariant) in watchdog_proxy_get_property()
20719 info->parent_struct.name, in watchdog_proxy_set_property_cb()
20720 error->message, g_quark_to_string (error->domain), error->code); in watchdog_proxy_set_property_cb()
20737 g_assert (prop_id != 0 && prop_id - 1 < 2); in watchdog_proxy_set_property()
20738 info = (const _ExtendedGDBusPropertyInfo *) _watchdog_property_info_pointers[prop_id - 1]; in watchdog_proxy_set_property()
20739 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in watchdog_proxy_set_property()
20742 g_variant_new ("(ssv)", "org.openbmc.Watchdog", info->parent_struct.name, variant), in watchdog_proxy_set_property()
20744 -1, in watchdog_proxy_set_property()
20745 …NULL, (GAsyncReadyCallback) watchdog_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_st… in watchdog_proxy_set_property()
20773 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in watchdog_proxy_g_signal()
20774 if (arg_info->use_gvariant) in watchdog_proxy_g_signal()
20784 signal_id = g_signal_lookup (info->signal_name, TYPE_WATCHDOG); in watchdog_proxy_g_signal()
20805 g_datalist_remove_data (&proxy->priv->qdata, key); in watchdog_proxy_g_properties_changed()
20807 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in watchdog_proxy_g_properties_changed()
20813 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in watchdog_proxy_g_properties_changed()
20815 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in watchdog_proxy_g_properties_changed()
20853 proxy->priv = watchdog_proxy_get_instance_private (proxy); in watchdog_proxy_init()
20855 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_WATCHDOG_PROXY, WatchdogProxyPrivate); in watchdog_proxy_init()
20868 gobject_class->finalize = watchdog_proxy_finalize; in watchdog_proxy_class_init()
20869 gobject_class->get_property = watchdog_proxy_get_property; in watchdog_proxy_class_init()
20870 gobject_class->set_property = watchdog_proxy_set_property; in watchdog_proxy_class_init()
20873 proxy_class->g_signal = watchdog_proxy_g_signal; in watchdog_proxy_class_init()
20874 proxy_class->g_properties_changed = watchdog_proxy_g_properties_changed; in watchdog_proxy_class_init()
20886 iface->get_watchdog = watchdog_proxy_get_watchdog; in watchdog_proxy_iface_init()
20887 iface->get_poll_interval = watchdog_proxy_get_poll_interval; in watchdog_proxy_iface_init()
20894 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
20900 …eates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
20902 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
20917 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in watchdog_proxy_new()
20949 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
20954 …eates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
20972 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in watchdog_proxy_new_sync()
20984 * @name: A bus name (well-known or unique).
20992 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
21007 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in watchdog_proxy_new_for_bus()
21039 * @name: A bus name (well-known or unique).
21062 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in watchdog_proxy_new_for_bus_sync()
21070 /* ------------------------------------------------------------------------ */
21118 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _watchdog_skeleton_handle_method_call()
21124 if (info->pass_fdlist) in _watchdog_skeleton_handle_method_call()
21136 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _watchdog_skeleton_handle_method_call()
21137 if (arg_info->use_gvariant) in _watchdog_skeleton_handle_method_call()
21147 signal_id = g_signal_lookup (info->signal_name, TYPE_WATCHDOG); in _watchdog_skeleton_handle_method_call()
21176 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _watchdog_skeleton_handle_get_property()
21183 g_value_init (&value, pspec->value_type); in _watchdog_skeleton_handle_get_property()
21184 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _watchdog_skeleton_handle_get_property()
21185 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _watchdog_skeleton_handle_get_property()
21210 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _watchdog_skeleton_handle_set_property()
21217 if (info->use_gvariant) in _watchdog_skeleton_handle_set_property()
21221 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _watchdog_skeleton_handle_set_property()
21261 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in watchdog_skeleton_dbus_interface_get_properties()
21264 …ct_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Watchdog", info->name, NULL, skeleton… in watchdog_skeleton_dbus_interface_get_properties()
21268 g_variant_builder_add (&builder, "{sv}", info->name, value); in watchdog_skeleton_dbus_interface_get_properties()
21285 g_mutex_lock (&skeleton->priv->lock); in watchdog_skeleton_dbus_interface_flush()
21286 if (skeleton->priv->changed_properties_idle_source != NULL) in watchdog_skeleton_dbus_interface_flush()
21288 g_source_destroy (skeleton->priv->changed_properties_idle_source); in watchdog_skeleton_dbus_interface_flush()
21289 skeleton->priv->changed_properties_idle_source = NULL; in watchdog_skeleton_dbus_interface_flush()
21292 g_mutex_unlock (&skeleton->priv->lock); in watchdog_skeleton_dbus_interface_flush()
21309 for (l = connections; l != NULL; l = l->next) in _watchdog_on_signal_watchdog_error()
21311 GDBusConnection *connection = l->data; in _watchdog_on_signal_watchdog_error()
21337 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
21338 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
21339 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
21340 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
21341 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
21342 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
21343 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
21344 G_OBJECT_CLASS (watchdog_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
21354 g_assert (prop_id != 0 && prop_id - 1 < 2); in watchdog_skeleton_get_property()
21355 g_mutex_lock (&skeleton->priv->lock); in watchdog_skeleton_get_property()
21356 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in watchdog_skeleton_get_property()
21357 g_mutex_unlock (&skeleton->priv->lock); in watchdog_skeleton_get_property()
21369 g_mutex_lock (&skeleton->priv->lock); in _watchdog_emit_changed()
21372 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _watchdog_emit_changed()
21374 ChangedProperty *cp = l->data; in _watchdog_emit_changed()
21378 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _watchdog_emit_changed()
21379 if (!_g_value_equal (cur_value, &cp->orig_value)) in _watchdog_emit_changed()
21381 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _watchdog_emit_changed()
21382 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _watchdog_emit_changed()
21394 for (ll = connections; ll != NULL; ll = ll->next) in _watchdog_emit_changed()
21396 GDBusConnection *connection = ll->data; in _watchdog_emit_changed()
21413 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _watchdog_emit_changed()
21414 skeleton->priv->changed_properties = NULL; in _watchdog_emit_changed()
21415 skeleton->priv->changed_properties_idle_source = NULL; in _watchdog_emit_changed()
21416 g_mutex_unlock (&skeleton->priv->lock); in _watchdog_emit_changed()
21426 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _watchdog_schedule_emit_changed()
21428 ChangedProperty *i_cp = l->data; in _watchdog_schedule_emit_changed()
21429 if (i_cp->info == info) in _watchdog_schedule_emit_changed()
21438 cp->prop_id = prop_id; in _watchdog_schedule_emit_changed()
21439 cp->info = info; in _watchdog_schedule_emit_changed()
21440 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _watchdog_schedule_emit_changed()
21441 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _watchdog_schedule_emit_changed()
21442 g_value_copy (orig_value, &cp->orig_value); in _watchdog_schedule_emit_changed()
21451 g_mutex_lock (&skeleton->priv->lock); in watchdog_skeleton_notify()
21452 if (skeleton->priv->changed_properties != NULL && in watchdog_skeleton_notify()
21453 skeleton->priv->changed_properties_idle_source == NULL) in watchdog_skeleton_notify()
21455 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in watchdog_skeleton_notify()
21456 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in watchdog_skeleton_notify()
21457 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _watchdog_emit_changed, g_o… in watchdog_skeleton_notify()
21458 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _watchdog_emit_cha… in watchdog_skeleton_notify()
21459 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in watchdog_skeleton_notify()
21460 g_source_unref (skeleton->priv->changed_properties_idle_source); in watchdog_skeleton_notify()
21462 g_mutex_unlock (&skeleton->priv->lock); in watchdog_skeleton_notify()
21473 g_assert (prop_id != 0 && prop_id - 1 < 2); in watchdog_skeleton_set_property()
21474 info = (const _ExtendedGDBusPropertyInfo *) _watchdog_property_info_pointers[prop_id - 1]; in watchdog_skeleton_set_property()
21475 g_mutex_lock (&skeleton->priv->lock); in watchdog_skeleton_set_property()
21477 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in watchdog_skeleton_set_property()
21480 info->emits_changed_signal) in watchdog_skeleton_set_property()
21481 …watchdog_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in watchdog_skeleton_set_property()
21482 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in watchdog_skeleton_set_property()
21485 g_mutex_unlock (&skeleton->priv->lock); in watchdog_skeleton_set_property()
21493 skeleton->priv = watchdog_skeleton_get_instance_private (skeleton); in watchdog_skeleton_init()
21495 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_WATCHDOG_SKELETON, WatchdogSkeletonPr… in watchdog_skeleton_init()
21498 g_mutex_init (&skeleton->priv->lock); in watchdog_skeleton_init()
21499 skeleton->priv->context = g_main_context_ref_thread_default (); in watchdog_skeleton_init()
21500 skeleton->priv->properties = g_new0 (GValue, 2); in watchdog_skeleton_init()
21501 g_value_init (&skeleton->priv->properties[0], G_TYPE_INT); in watchdog_skeleton_init()
21502 g_value_init (&skeleton->priv->properties[1], G_TYPE_INT); in watchdog_skeleton_init()
21510 g_mutex_lock (&skeleton->priv->lock); in watchdog_skeleton_get_watchdog()
21511 value = g_marshal_value_peek_int (&(skeleton->priv->properties[0])); in watchdog_skeleton_get_watchdog()
21512 g_mutex_unlock (&skeleton->priv->lock); in watchdog_skeleton_get_watchdog()
21521 g_mutex_lock (&skeleton->priv->lock); in watchdog_skeleton_get_poll_interval()
21522 value = g_marshal_value_peek_int (&(skeleton->priv->properties[1])); in watchdog_skeleton_get_poll_interval()
21523 g_mutex_unlock (&skeleton->priv->lock); in watchdog_skeleton_get_poll_interval()
21534 gobject_class->finalize = watchdog_skeleton_finalize; in watchdog_skeleton_class_init()
21535 gobject_class->get_property = watchdog_skeleton_get_property; in watchdog_skeleton_class_init()
21536 gobject_class->set_property = watchdog_skeleton_set_property; in watchdog_skeleton_class_init()
21537 gobject_class->notify = watchdog_skeleton_notify; in watchdog_skeleton_class_init()
21543 skeleton_class->get_info = watchdog_skeleton_dbus_interface_get_info; in watchdog_skeleton_class_init()
21544 skeleton_class->get_properties = watchdog_skeleton_dbus_interface_get_properties; in watchdog_skeleton_class_init()
21545 skeleton_class->flush = watchdog_skeleton_dbus_interface_flush; in watchdog_skeleton_class_init()
21546 skeleton_class->get_vtable = watchdog_skeleton_dbus_interface_get_vtable; in watchdog_skeleton_class_init()
21556 iface->watchdog_error = _watchdog_on_signal_watchdog_error; in watchdog_skeleton_iface_init()
21557 iface->get_watchdog = watchdog_skeleton_get_watchdog; in watchdog_skeleton_iface_init()
21558 iface->get_poll_interval = watchdog_skeleton_get_poll_interval; in watchdog_skeleton_iface_init()
21564 …eleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
21574 /* ------------------------------------------------------------------------
21576 * ------------------------------------------------------------------------
21582 * @short_description: Generated C code for the org.openbmc.EventLog D-Bus interface
21584 …s code for working with the <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_page">org.o…
21594 /* ---- Introspection data for org.openbmc.EventLog ---- */
21599 -1,
21616 -1,
21622 "handle-get-event-log",
21635 -1,
21646 -1,
21657 -1,
21676 -1,
21681 "event-log"
21693 -1,
21700 "event-log",
21707 …Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-EventLog.top…
21730 return property_id_begin - 1; in event_log_override_properties()
21764 …nterface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
21770 * @handle_get_event_log: Handler for the #EventLog::handle-get-event-log signal.
21771 * @event_log: Handler for the #EventLog::event-log signal.
21773 …Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
21782 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
21784 * EventLog::handle-get-event-log: in G_DEFINE_INTERFACE()
21788 … a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-EventLog.getEventLog">get… in G_DEFINE_INTERFACE()
21790 …ll handle the invocation (e.g. take a reference to @invocation and eventually call event_log_compl… in G_DEFINE_INTERFACE()
21794 g_signal_new ("handle-get-event-log", in G_DEFINE_INTERFACE()
21805 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
21807 * EventLog::event-log: in G_DEFINE_INTERFACE()
21813 … the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org… in G_DEFINE_INTERFACE()
21815 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
21818 g_signal_new ("event-log", in G_DEFINE_INTERFACE()
21837 …* Emits the <link linkend="gdbus-signal-org-openbmc-EventLog.EventLog">"EventLog"</link> D-Bus sig…
21856 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-EventLog.getEventLog">getEven…
21857 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
21873 -1, in event_log_call_get_event_log()
21916 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-EventLog.getEventLog">getEvent…
21934 -1, in event_log_call_get_event_log_sync()
21953 …nish handling invocations of the <link linkend="gdbus-method-org-openbmc-EventLog.getEventLog">get…
21968 /* ------------------------------------------------------------------------ */
22004 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
22005 G_OBJECT_CLASS (event_log_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
22048 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in event_log_proxy_g_signal()
22049 if (arg_info->use_gvariant) in event_log_proxy_g_signal()
22059 signal_id = g_signal_lookup (info->signal_name, TYPE_EVENT_LOG); in event_log_proxy_g_signal()
22080 g_datalist_remove_data (&proxy->priv->qdata, key); in event_log_proxy_g_properties_changed()
22082 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in event_log_proxy_g_properties_changed()
22088 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in event_log_proxy_g_properties_changed()
22090 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in event_log_proxy_g_properties_changed()
22098 proxy->priv = event_log_proxy_get_instance_private (proxy); in event_log_proxy_init()
22100 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_EVENT_LOG_PROXY, EventLogProxyPrivate); in event_log_proxy_init()
22113 gobject_class->finalize = event_log_proxy_finalize; in event_log_proxy_class_init()
22114 gobject_class->get_property = event_log_proxy_get_property; in event_log_proxy_class_init()
22115 gobject_class->set_property = event_log_proxy_set_property; in event_log_proxy_class_init()
22118 proxy_class->g_signal = event_log_proxy_g_signal; in event_log_proxy_class_init()
22119 proxy_class->g_properties_changed = event_log_proxy_g_properties_changed; in event_log_proxy_class_init()
22135 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
22141 …eates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
22143 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
22158 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in event_log_proxy_new()
22190 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
22195 …eates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
22213 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in event_log_proxy_new_sync()
22225 * @name: A bus name (well-known or unique).
22233 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
22248 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in event_log_proxy_new_for_bus()
22280 * @name: A bus name (well-known or unique).
22303 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in event_log_proxy_new_for_bus_sync()
22311 /* ------------------------------------------------------------------------ */
22359 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _event_log_skeleton_handle_method_call()
22365 if (info->pass_fdlist) in _event_log_skeleton_handle_method_call()
22377 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _event_log_skeleton_handle_method_call()
22378 if (arg_info->use_gvariant) in _event_log_skeleton_handle_method_call()
22388 signal_id = g_signal_lookup (info->signal_name, TYPE_EVENT_LOG); in _event_log_skeleton_handle_method_call()
22417 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _event_log_skeleton_handle_get_property()
22424 g_value_init (&value, pspec->value_type); in _event_log_skeleton_handle_get_property()
22425 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _event_log_skeleton_handle_get_property()
22426 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _event_log_skeleton_handle_get_property()
22451 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _event_log_skeleton_handle_set_property()
22458 if (info->use_gvariant) in _event_log_skeleton_handle_set_property()
22462 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _event_log_skeleton_handle_set_property()
22502 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in event_log_skeleton_dbus_interface_get_properties()
22505 …ct_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.EventLog", info->name, NULL, skeleton… in event_log_skeleton_dbus_interface_get_properties()
22509 g_variant_builder_add (&builder, "{sv}", info->name, value); in event_log_skeleton_dbus_interface_get_properties()
22540 for (l = connections; l != NULL; l = l->next) in _event_log_on_signal_event_log()
22542 GDBusConnection *connection = l->data; in _event_log_on_signal_event_log()
22566 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
22567 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
22568 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
22569 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
22570 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
22571 G_OBJECT_CLASS (event_log_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
22578 skeleton->priv = event_log_skeleton_get_instance_private (skeleton); in event_log_skeleton_init()
22580 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_EVENT_LOG_SKELETON, EventLogSkeletonP… in event_log_skeleton_init()
22583 g_mutex_init (&skeleton->priv->lock); in event_log_skeleton_init()
22584 skeleton->priv->context = g_main_context_ref_thread_default (); in event_log_skeleton_init()
22594 gobject_class->finalize = event_log_skeleton_finalize; in event_log_skeleton_class_init()
22597 skeleton_class->get_info = event_log_skeleton_dbus_interface_get_info; in event_log_skeleton_class_init()
22598 skeleton_class->get_properties = event_log_skeleton_dbus_interface_get_properties; in event_log_skeleton_class_init()
22599 skeleton_class->flush = event_log_skeleton_dbus_interface_flush; in event_log_skeleton_class_init()
22600 skeleton_class->get_vtable = event_log_skeleton_dbus_interface_get_vtable; in event_log_skeleton_class_init()
22610 iface->event_log = _event_log_on_signal_event_log; in event_log_skeleton_iface_init()
22616 …eleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
22626 /* ------------------------------------------------------------------------
22628 * ------------------------------------------------------------------------
22634 * @short_description: Generated C code for the org.openbmc.Flash D-Bus interface
22636 …ains code for working with the <link linkend="gdbus-interface-org-openbmc-Flash.top_of_page">org.o…
22647 /* ---- Introspection data for org.openbmc.Flash ---- */
22652 -1,
22669 -1,
22675 "handle-update",
22682 -1,
22699 -1,
22705 "handle-error",
22712 -1,
22718 "handle-done",
22725 -1,
22736 -1,
22754 -1,
22760 "handle-update-via-tftp",
22767 -1,
22773 "handle-init",
22790 -1,
22801 -1,
22812 -1,
22830 -1,
22848 -1,
22862 -1,
22868 "flasher-path",
22876 -1,
22882 "flasher-name",
22890 -1,
22896 "flasher-instance",
22904 -1,
22928 -1,
22942 …* Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Flash.top_…
22966 g_object_class_override_property (klass, property_id_begin++, "flasher-path"); in flash_override_properties()
22967 g_object_class_override_property (klass, property_id_begin++, "flasher-name"); in flash_override_properties()
22968 g_object_class_override_property (klass, property_id_begin++, "flasher-instance"); in flash_override_properties()
22970 return property_id_begin - 1; in flash_override_properties()
23069 …t interface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_p…
23075 * @handle_done: Handler for the #Flash::handle-done signal.
23076 * @handle_error: Handler for the #Flash::handle-error signal.
23077 * @handle_init: Handler for the #Flash::handle-init signal.
23078 * @handle_update: Handler for the #Flash::handle-update signal.
23079 * @handle_update_via_tftp: Handler for the #Flash::handle-update-via-tftp signal.
23081 * @get_flasher_instance: Getter for the #Flash:flasher-instance property.
23082 * @get_flasher_name: Getter for the #Flash:flasher-name property.
23083 * @get_flasher_path: Getter for the #Flash:flasher-path property.
23088 …* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_pa…
23097 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
23099 * Flash::handle-update: in G_DEFINE_INTERFACE()
23104 …ed when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Flash.update">upda… in G_DEFINE_INTERFACE()
23106 …ler will handle the invocation (e.g. take a reference to @invocation and eventually call flash_com… in G_DEFINE_INTERFACE()
23110 g_signal_new ("handle-update", in G_DEFINE_INTERFACE()
23122 * Flash::handle-error: in G_DEFINE_INTERFACE()
23127 …ted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Flash.error">erro… in G_DEFINE_INTERFACE()
23129 …ler will handle the invocation (e.g. take a reference to @invocation and eventually call flash_com… in G_DEFINE_INTERFACE()
23133 g_signal_new ("handle-error", in G_DEFINE_INTERFACE()
23145 * Flash::handle-done: in G_DEFINE_INTERFACE()
23149 …tted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Flash.done">done… in G_DEFINE_INTERFACE()
23151 …dler will handle the invocation (e.g. take a reference to @invocation and eventually call flash_co… in G_DEFINE_INTERFACE()
23155 g_signal_new ("handle-done", in G_DEFINE_INTERFACE()
23167 * Flash::handle-update-via-tftp: in G_DEFINE_INTERFACE()
23173 … a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Flash.updateViaTftp">upda… in G_DEFINE_INTERFACE()
23175 …ill handle the invocation (e.g. take a reference to @invocation and eventually call flash_complete… in G_DEFINE_INTERFACE()
23179 g_signal_new ("handle-update-via-tftp", in G_DEFINE_INTERFACE()
23191 * Flash::handle-init: in G_DEFINE_INTERFACE()
23195 …tted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Flash.init">init… in G_DEFINE_INTERFACE()
23197 …dler will handle the invocation (e.g. take a reference to @invocation and eventually call flash_co… in G_DEFINE_INTERFACE()
23201 g_signal_new ("handle-init", in G_DEFINE_INTERFACE()
23212 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
23217 …On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-o… in G_DEFINE_INTERFACE()
23219 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
23238 …n the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-or… in G_DEFINE_INTERFACE()
23240 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
23253 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
23257 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Flash.filename">"filenam… in G_DEFINE_INTERFACE()
23259 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
23264 * Flash:flasher-path: in G_DEFINE_INTERFACE()
23266 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Flash.flasher_path">"fla… in G_DEFINE_INTERFACE()
23268 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
23271 …g_param_spec_string ("flasher-path", "flasher_path", "flasher_path", NULL, G_PARAM_READWRITE | G_P… in G_DEFINE_INTERFACE()
23273 * Flash:flasher-name: in G_DEFINE_INTERFACE()
23275 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Flash.flasher_name">"fla… in G_DEFINE_INTERFACE()
23277 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
23280 …g_param_spec_string ("flasher-name", "flasher_name", "flasher_name", NULL, G_PARAM_READWRITE | G_P… in G_DEFINE_INTERFACE()
23282 * Flash:flasher-instance: in G_DEFINE_INTERFACE()
23284 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Flash.flasher_instance">… in G_DEFINE_INTERFACE()
23286 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
23289 …g_param_spec_string ("flasher-instance", "flasher_instance", "flasher_instance", NULL, G_PARAM_REA… in G_DEFINE_INTERFACE()
23293 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Flash.status">"status"</… in G_DEFINE_INTERFACE()
23295 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
23305 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Flash.filename">"filename"</link…
23307 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23309 …* The returned value is only valid until the property changes so on the client-side it is only saf…
23318 return FLASH_GET_IFACE (object)->get_filename (object); in flash_get_filename()
23325 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Flash.filename">"filename"</link> D…
23327 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23344 …* Sets the <link linkend="gdbus-property-org-openbmc-Flash.filename">"filename"</link> D-Bus prope…
23346 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
23358 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Flash.flasher_path">"flasher_pat…
23360 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23362 …* The returned value is only valid until the property changes so on the client-side it is only saf…
23371 return FLASH_GET_IFACE (object)->get_flasher_path (object); in flash_get_flasher_path()
23378 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Flash.flasher_path">"flasher_path"<…
23380 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23388 g_object_get (G_OBJECT (object), "flasher-path", &value, NULL); in flash_dup_flasher_path()
23397 …* Sets the <link linkend="gdbus-property-org-openbmc-Flash.flasher_path">"flasher_path"</link> D-B…
23399 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
23404 g_object_set (G_OBJECT (object), "flasher-path", value, NULL); in flash_set_flasher_path()
23411 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Flash.flasher_name">"flasher_nam…
23413 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23415 …* The returned value is only valid until the property changes so on the client-side it is only saf…
23424 return FLASH_GET_IFACE (object)->get_flasher_name (object); in flash_get_flasher_name()
23431 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Flash.flasher_name">"flasher_name"<…
23433 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23441 g_object_get (G_OBJECT (object), "flasher-name", &value, NULL); in flash_dup_flasher_name()
23450 …* Sets the <link linkend="gdbus-property-org-openbmc-Flash.flasher_name">"flasher_name"</link> D-B…
23452 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
23457 g_object_set (G_OBJECT (object), "flasher-name", value, NULL); in flash_set_flasher_name()
23464 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Flash.flasher_instance">"flasher…
23466 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23468 …* The returned value is only valid until the property changes so on the client-side it is only saf…
23477 return FLASH_GET_IFACE (object)->get_flasher_instance (object); in flash_get_flasher_instance()
23484 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Flash.flasher_instance">"flasher_in…
23486 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23494 g_object_get (G_OBJECT (object), "flasher-instance", &value, NULL); in flash_dup_flasher_instance()
23503 …* Sets the <link linkend="gdbus-property-org-openbmc-Flash.flasher_instance">"flasher_instance"</l…
23505 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
23510 g_object_set (G_OBJECT (object), "flasher-instance", value, NULL); in flash_set_flasher_instance()
23517 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Flash.status">"status"</link> D-…
23519 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23521 …* The returned value is only valid until the property changes so on the client-side it is only saf…
23530 return FLASH_GET_IFACE (object)->get_status (object); in flash_get_status()
23537 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Flash.status">"status"</link> D-Bus…
23539 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
23556 …* Sets the <link linkend="gdbus-property-org-openbmc-Flash.status">"status"</link> D-Bus property …
23558 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
23570 * Emits the <link linkend="gdbus-signal-org-openbmc-Flash.Updated">"Updated"</link> D-Bus signal.
23585 * Emits the <link linkend="gdbus-signal-org-openbmc-Flash.Download">"Download"</link> D-Bus signal.
23604 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.update">update()</link>…
23605 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
23623 -1, in flash_call_update()
23663 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.update">update()</link> …
23682 -1, in flash_call_update_sync()
23702 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.error">error()</link> D…
23703 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
23721 -1, in flash_call_error()
23761 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.error">error()</link> D-…
23780 -1, in flash_call_error_sync()
23799 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.done">done()</link> D-B…
23800 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
23816 -1, in flash_call_done()
23855 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.done">done()</link> D-Bu…
23872 -1, in flash_call_done_sync()
23893 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.updateViaTftp">updateVi…
23894 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
23914 -1, in flash_call_update_via_tftp()
23955 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.updateViaTftp">updateVia…
23976 -1, in flash_call_update_via_tftp_sync()
23995 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.init">init()</link> D-B…
23996 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
24012 -1, in flash_call_init()
24051 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Flash.init">init()</link> D-Bu…
24068 -1, in flash_call_init_sync()
24085 …s to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Flash.update">upda…
24103 …ns to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Flash.error">erro…
24121 …ons to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Flash.done">done…
24139 …nish handling invocations of the <link linkend="gdbus-method-org-openbmc-Flash.updateViaTftp">upda…
24157 …ons to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Flash.init">init…
24170 /* ------------------------------------------------------------------------ */
24206 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
24207 G_OBJECT_CLASS (flash_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
24218 g_assert (prop_id != 0 && prop_id - 1 < 5); in flash_proxy_get_property()
24219 info = (const _ExtendedGDBusPropertyInfo *) _flash_property_info_pointers[prop_id - 1]; in flash_proxy_get_property()
24220 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in flash_proxy_get_property()
24221 if (info->use_gvariant) in flash_proxy_get_property()
24247 info->parent_struct.name, in flash_proxy_set_property_cb()
24248 error->message, g_quark_to_string (error->domain), error->code); in flash_proxy_set_property_cb()
24265 g_assert (prop_id != 0 && prop_id - 1 < 5); in flash_proxy_set_property()
24266 info = (const _ExtendedGDBusPropertyInfo *) _flash_property_info_pointers[prop_id - 1]; in flash_proxy_set_property()
24267 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in flash_proxy_set_property()
24270 g_variant_new ("(ssv)", "org.openbmc.Flash", info->parent_struct.name, variant), in flash_proxy_set_property()
24272 -1, in flash_proxy_set_property()
24273 …NULL, (GAsyncReadyCallback) flash_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struc… in flash_proxy_set_property()
24301 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in flash_proxy_g_signal()
24302 if (arg_info->use_gvariant) in flash_proxy_g_signal()
24312 signal_id = g_signal_lookup (info->signal_name, TYPE_FLASH); in flash_proxy_g_signal()
24333 g_datalist_remove_data (&proxy->priv->qdata, key); in flash_proxy_g_properties_changed()
24335 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in flash_proxy_g_properties_changed()
24341 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in flash_proxy_g_properties_changed()
24343 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in flash_proxy_g_properties_changed()
24426 proxy->priv = flash_proxy_get_instance_private (proxy); in flash_proxy_init()
24428 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_FLASH_PROXY, FlashProxyPrivate); in flash_proxy_init()
24441 gobject_class->finalize = flash_proxy_finalize; in flash_proxy_class_init()
24442 gobject_class->get_property = flash_proxy_get_property; in flash_proxy_class_init()
24443 gobject_class->set_property = flash_proxy_set_property; in flash_proxy_class_init()
24446 proxy_class->g_signal = flash_proxy_g_signal; in flash_proxy_class_init()
24447 proxy_class->g_properties_changed = flash_proxy_g_properties_changed; in flash_proxy_class_init()
24459 iface->get_filename = flash_proxy_get_filename; in flash_proxy_iface_init()
24460 iface->get_flasher_path = flash_proxy_get_flasher_path; in flash_proxy_iface_init()
24461 iface->get_flasher_name = flash_proxy_get_flasher_name; in flash_proxy_iface_init()
24462 iface->get_flasher_instance = flash_proxy_get_flasher_instance; in flash_proxy_iface_init()
24463 iface->get_status = flash_proxy_get_status; in flash_proxy_iface_init()
24470 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
24476 … creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_p…
24478 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
24493 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in flash_proxy_new()
24525 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
24530 … creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_p…
24548 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in flash_proxy_new_sync()
24560 * @name: A bus name (well-known or unique).
24568 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
24583 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in flash_proxy_new_for_bus()
24615 * @name: A bus name (well-known or unique).
24638 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in flash_proxy_new_for_bus_sync()
24646 /* ------------------------------------------------------------------------ */
24694 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _flash_skeleton_handle_method_call()
24700 if (info->pass_fdlist) in _flash_skeleton_handle_method_call()
24712 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _flash_skeleton_handle_method_call()
24713 if (arg_info->use_gvariant) in _flash_skeleton_handle_method_call()
24723 signal_id = g_signal_lookup (info->signal_name, TYPE_FLASH); in _flash_skeleton_handle_method_call()
24752 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _flash_skeleton_handle_get_property()
24759 g_value_init (&value, pspec->value_type); in _flash_skeleton_handle_get_property()
24760 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _flash_skeleton_handle_get_property()
24761 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _flash_skeleton_handle_get_property()
24786 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _flash_skeleton_handle_set_property()
24793 if (info->use_gvariant) in _flash_skeleton_handle_set_property()
24797 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _flash_skeleton_handle_set_property()
24837 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in flash_skeleton_dbus_interface_get_properties()
24840 …bject_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Flash", info->name, NULL, skeleton… in flash_skeleton_dbus_interface_get_properties()
24844 g_variant_builder_add (&builder, "{sv}", info->name, value); in flash_skeleton_dbus_interface_get_properties()
24861 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_dbus_interface_flush()
24862 if (skeleton->priv->changed_properties_idle_source != NULL) in flash_skeleton_dbus_interface_flush()
24864 g_source_destroy (skeleton->priv->changed_properties_idle_source); in flash_skeleton_dbus_interface_flush()
24865 skeleton->priv->changed_properties_idle_source = NULL; in flash_skeleton_dbus_interface_flush()
24868 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_dbus_interface_flush()
24885 for (l = connections; l != NULL; l = l->next) in _flash_on_signal_updated()
24887 GDBusConnection *connection = l->data; in _flash_on_signal_updated()
24911 for (l = connections; l != NULL; l = l->next) in _flash_on_signal_download()
24913 GDBusConnection *connection = l->data; in _flash_on_signal_download()
24939 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
24940 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
24941 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
24942 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
24943 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
24944 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
24945 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
24946 G_OBJECT_CLASS (flash_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
24956 g_assert (prop_id != 0 && prop_id - 1 < 5); in flash_skeleton_get_property()
24957 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_get_property()
24958 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in flash_skeleton_get_property()
24959 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_get_property()
24971 g_mutex_lock (&skeleton->priv->lock); in _flash_emit_changed()
24974 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _flash_emit_changed()
24976 ChangedProperty *cp = l->data; in _flash_emit_changed()
24980 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _flash_emit_changed()
24981 if (!_g_value_equal (cur_value, &cp->orig_value)) in _flash_emit_changed()
24983 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _flash_emit_changed()
24984 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _flash_emit_changed()
24996 for (ll = connections; ll != NULL; ll = ll->next) in _flash_emit_changed()
24998 GDBusConnection *connection = ll->data; in _flash_emit_changed()
25015 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _flash_emit_changed()
25016 skeleton->priv->changed_properties = NULL; in _flash_emit_changed()
25017 skeleton->priv->changed_properties_idle_source = NULL; in _flash_emit_changed()
25018 g_mutex_unlock (&skeleton->priv->lock); in _flash_emit_changed()
25028 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _flash_schedule_emit_changed()
25030 ChangedProperty *i_cp = l->data; in _flash_schedule_emit_changed()
25031 if (i_cp->info == info) in _flash_schedule_emit_changed()
25040 cp->prop_id = prop_id; in _flash_schedule_emit_changed()
25041 cp->info = info; in _flash_schedule_emit_changed()
25042 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _flash_schedule_emit_changed()
25043 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _flash_schedule_emit_changed()
25044 g_value_copy (orig_value, &cp->orig_value); in _flash_schedule_emit_changed()
25053 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_notify()
25054 if (skeleton->priv->changed_properties != NULL && in flash_skeleton_notify()
25055 skeleton->priv->changed_properties_idle_source == NULL) in flash_skeleton_notify()
25057 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in flash_skeleton_notify()
25058 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in flash_skeleton_notify()
25059 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _flash_emit_changed, g_obje… in flash_skeleton_notify()
25060 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _flash_emit_change… in flash_skeleton_notify()
25061 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in flash_skeleton_notify()
25062 g_source_unref (skeleton->priv->changed_properties_idle_source); in flash_skeleton_notify()
25064 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_notify()
25075 g_assert (prop_id != 0 && prop_id - 1 < 5); in flash_skeleton_set_property()
25076 info = (const _ExtendedGDBusPropertyInfo *) _flash_property_info_pointers[prop_id - 1]; in flash_skeleton_set_property()
25077 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_set_property()
25079 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in flash_skeleton_set_property()
25082 info->emits_changed_signal) in flash_skeleton_set_property()
25083 … _flash_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in flash_skeleton_set_property()
25084 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in flash_skeleton_set_property()
25087 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_set_property()
25095 skeleton->priv = flash_skeleton_get_instance_private (skeleton); in flash_skeleton_init()
25097 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_FLASH_SKELETON, FlashSkeletonPrivate); in flash_skeleton_init()
25100 g_mutex_init (&skeleton->priv->lock); in flash_skeleton_init()
25101 skeleton->priv->context = g_main_context_ref_thread_default (); in flash_skeleton_init()
25102 skeleton->priv->properties = g_new0 (GValue, 5); in flash_skeleton_init()
25103 g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); in flash_skeleton_init()
25104 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in flash_skeleton_init()
25105 g_value_init (&skeleton->priv->properties[2], G_TYPE_STRING); in flash_skeleton_init()
25106 g_value_init (&skeleton->priv->properties[3], G_TYPE_STRING); in flash_skeleton_init()
25107 g_value_init (&skeleton->priv->properties[4], G_TYPE_STRING); in flash_skeleton_init()
25115 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_get_filename()
25116 value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); in flash_skeleton_get_filename()
25117 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_get_filename()
25126 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_get_flasher_path()
25127 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in flash_skeleton_get_flasher_path()
25128 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_get_flasher_path()
25137 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_get_flasher_name()
25138 value = g_marshal_value_peek_string (&(skeleton->priv->properties[2])); in flash_skeleton_get_flasher_name()
25139 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_get_flasher_name()
25148 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_get_flasher_instance()
25149 value = g_marshal_value_peek_string (&(skeleton->priv->properties[3])); in flash_skeleton_get_flasher_instance()
25150 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_get_flasher_instance()
25159 g_mutex_lock (&skeleton->priv->lock); in flash_skeleton_get_status()
25160 value = g_marshal_value_peek_string (&(skeleton->priv->properties[4])); in flash_skeleton_get_status()
25161 g_mutex_unlock (&skeleton->priv->lock); in flash_skeleton_get_status()
25172 gobject_class->finalize = flash_skeleton_finalize; in flash_skeleton_class_init()
25173 gobject_class->get_property = flash_skeleton_get_property; in flash_skeleton_class_init()
25174 gobject_class->set_property = flash_skeleton_set_property; in flash_skeleton_class_init()
25175 gobject_class->notify = flash_skeleton_notify; in flash_skeleton_class_init()
25181 skeleton_class->get_info = flash_skeleton_dbus_interface_get_info; in flash_skeleton_class_init()
25182 skeleton_class->get_properties = flash_skeleton_dbus_interface_get_properties; in flash_skeleton_class_init()
25183 skeleton_class->flush = flash_skeleton_dbus_interface_flush; in flash_skeleton_class_init()
25184 skeleton_class->get_vtable = flash_skeleton_dbus_interface_get_vtable; in flash_skeleton_class_init()
25194 iface->updated = _flash_on_signal_updated; in flash_skeleton_iface_init()
25195 iface->download = _flash_on_signal_download; in flash_skeleton_iface_init()
25196 iface->get_filename = flash_skeleton_get_filename; in flash_skeleton_iface_init()
25197 iface->get_flasher_path = flash_skeleton_get_flasher_path; in flash_skeleton_iface_init()
25198 iface->get_flasher_name = flash_skeleton_get_flasher_name; in flash_skeleton_iface_init()
25199 iface->get_flasher_instance = flash_skeleton_get_flasher_instance; in flash_skeleton_iface_init()
25200 iface->get_status = flash_skeleton_get_status; in flash_skeleton_iface_init()
25206 … skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_p…
25216 /* ------------------------------------------------------------------------
25218 * ------------------------------------------------------------------------
25224 * @short_description: Generated C code for the org.openbmc.FlashControl D-Bus interface
25226 …de for working with the <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_page">org.o…
25238 /* ---- Introspection data for org.openbmc.FlashControl ---- */
25243 -1,
25254 -1,
25272 -1,
25278 "handle-flash",
25291 -1,
25308 -1,
25319 -1,
25336 -1,
25347 -1,
25358 -1,
25376 -1,
25395 -1,
25409 -1,
25430 -1,
25437 "flash-control",
25444 … a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-FlashControl.top…
25469 return property_id_begin - 1; in flash_control_override_properties()
25529 …face type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
25535 * @handle_flash: Handler for the #FlashControl::handle-flash signal.
25542 …ual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
25551 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
25553 * FlashControl::handle-flash: in G_DEFINE_INTERFACE()
25559 …when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-FlashControl.flash">f… in G_DEFINE_INTERFACE()
25561 …will handle the invocation (e.g. take a reference to @invocation and eventually call flash_control… in G_DEFINE_INTERFACE()
25565 g_signal_new ("handle-flash", in G_DEFINE_INTERFACE()
25576 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
25582 …On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-o… in G_DEFINE_INTERFACE()
25584 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
25602 …n the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-or… in G_DEFINE_INTERFACE()
25604 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
25623 …he client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-o… in G_DEFINE_INTERFACE()
25625 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
25638 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
25642 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-FlashControl.filename">"… in G_DEFINE_INTERFACE()
25644 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
25651 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-FlashControl.type">"type… in G_DEFINE_INTERFACE()
25653 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
25663 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-FlashControl.filename">"filename…
25665 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
25667 …* The returned value is only valid until the property changes so on the client-side it is only saf…
25676 return FLASH_CONTROL_GET_IFACE (object)->get_filename (object); in flash_control_get_filename()
25683 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-FlashControl.filename">"filename"</…
25685 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
25702 …* Sets the <link linkend="gdbus-property-org-openbmc-FlashControl.filename">"filename"</link> D-Bu…
25704 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
25716 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-FlashControl.type">"type"</link>…
25718 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
25720 …* The returned value is only valid until the property changes so on the client-side it is only saf…
25729 return FLASH_CONTROL_GET_IFACE (object)->get_type_ (object); in flash_control_get_type_()
25736 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-FlashControl.type">"type"</link> D-…
25738 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
25755 …* Sets the <link linkend="gdbus-property-org-openbmc-FlashControl.type">"type"</link> D-Bus proper…
25757 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
25770 * Emits the <link linkend="gdbus-signal-org-openbmc-FlashControl.Done">"Done"</link> D-Bus signal.
25785 …* Emits the <link linkend="gdbus-signal-org-openbmc-FlashControl.Error">"Error"</link> D-Bus signa…
25801 …* Emits the <link linkend="gdbus-signal-org-openbmc-FlashControl.Progress">"Progress"</link> D-Bus…
25821 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-FlashControl.flash">flash()</…
25822 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
25842 -1, in flash_control_call_flash()
25883 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-FlashControl.flash">flash()</l…
25904 -1, in flash_control_call_flash_sync()
25921 …o finish handling invocations of the <link linkend="gdbus-method-org-openbmc-FlashControl.flash">f…
25934 /* ------------------------------------------------------------------------ */
25970 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
25971 G_OBJECT_CLASS (flash_control_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
25982 g_assert (prop_id != 0 && prop_id - 1 < 2); in flash_control_proxy_get_property()
25983 info = (const _ExtendedGDBusPropertyInfo *) _flash_control_property_info_pointers[prop_id - 1]; in flash_control_proxy_get_property()
25984 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in flash_control_proxy_get_property()
25985 if (info->use_gvariant) in flash_control_proxy_get_property()
26011 info->parent_struct.name, in flash_control_proxy_set_property_cb()
26012 error->message, g_quark_to_string (error->domain), error->code); in flash_control_proxy_set_property_cb()
26029 g_assert (prop_id != 0 && prop_id - 1 < 2); in flash_control_proxy_set_property()
26030 info = (const _ExtendedGDBusPropertyInfo *) _flash_control_property_info_pointers[prop_id - 1]; in flash_control_proxy_set_property()
26031 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in flash_control_proxy_set_property()
26034 g_variant_new ("(ssv)", "org.openbmc.FlashControl", info->parent_struct.name, variant), in flash_control_proxy_set_property()
26036 -1, in flash_control_proxy_set_property()
26037 …NULL, (GAsyncReadyCallback) flash_control_proxy_set_property_cb, (GDBusPropertyInfo *) &info->pare… in flash_control_proxy_set_property()
26065 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in flash_control_proxy_g_signal()
26066 if (arg_info->use_gvariant) in flash_control_proxy_g_signal()
26076 signal_id = g_signal_lookup (info->signal_name, TYPE_FLASH_CONTROL); in flash_control_proxy_g_signal()
26097 g_datalist_remove_data (&proxy->priv->qdata, key); in flash_control_proxy_g_properties_changed()
26099 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in flash_control_proxy_g_properties_changed()
26105 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in flash_control_proxy_g_properties_changed()
26107 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in flash_control_proxy_g_properties_changed()
26145 proxy->priv = flash_control_proxy_get_instance_private (proxy); in flash_control_proxy_init()
26147 …proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_FLASH_CONTROL_PROXY, FlashControlProxyPriva… in flash_control_proxy_init()
26160 gobject_class->finalize = flash_control_proxy_finalize; in flash_control_proxy_class_init()
26161 gobject_class->get_property = flash_control_proxy_get_property; in flash_control_proxy_class_init()
26162 gobject_class->set_property = flash_control_proxy_set_property; in flash_control_proxy_class_init()
26165 proxy_class->g_signal = flash_control_proxy_g_signal; in flash_control_proxy_class_init()
26166 proxy_class->g_properties_changed = flash_control_proxy_g_properties_changed; in flash_control_proxy_class_init()
26178 iface->get_filename = flash_control_proxy_get_filename; in flash_control_proxy_iface_init()
26179 iface->get_type_ = flash_control_proxy_get_type_; in flash_control_proxy_iface_init()
26186 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
26192 …s a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
26194 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
26209 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in flash_control_proxy_new()
26241 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
26246 …s a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
26264 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in flash_control_proxy_new_sync()
26276 * @name: A bus name (well-known or unique).
26284 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
26299 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in flash_control_proxy_new_for_bus()
26331 * @name: A bus name (well-known or unique).
26354 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in flash_control_proxy_new_for_bus_sync()
26362 /* ------------------------------------------------------------------------ */
26410 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _flash_control_skeleton_handle_method_call()
26416 if (info->pass_fdlist) in _flash_control_skeleton_handle_method_call()
26428 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _flash_control_skeleton_handle_method_call()
26429 if (arg_info->use_gvariant) in _flash_control_skeleton_handle_method_call()
26439 signal_id = g_signal_lookup (info->signal_name, TYPE_FLASH_CONTROL); in _flash_control_skeleton_handle_method_call()
26468 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _flash_control_skeleton_handle_get_property()
26475 g_value_init (&value, pspec->value_type); in _flash_control_skeleton_handle_get_property()
26476 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _flash_control_skeleton_handle_get_property()
26477 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _flash_control_skeleton_handle_get_property()
26502 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _flash_control_skeleton_handle_set_property()
26509 if (info->use_gvariant) in _flash_control_skeleton_handle_set_property()
26513 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _flash_control_skeleton_handle_set_property()
26553 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in flash_control_skeleton_dbus_interface_get_properties()
26556 …ath (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.FlashControl", info->name, NULL, skeleton… in flash_control_skeleton_dbus_interface_get_properties()
26560 g_variant_builder_add (&builder, "{sv}", info->name, value); in flash_control_skeleton_dbus_interface_get_properties()
26577 g_mutex_lock (&skeleton->priv->lock); in flash_control_skeleton_dbus_interface_flush()
26578 if (skeleton->priv->changed_properties_idle_source != NULL) in flash_control_skeleton_dbus_interface_flush()
26580 g_source_destroy (skeleton->priv->changed_properties_idle_source); in flash_control_skeleton_dbus_interface_flush()
26581 skeleton->priv->changed_properties_idle_source = NULL; in flash_control_skeleton_dbus_interface_flush()
26584 g_mutex_unlock (&skeleton->priv->lock); in flash_control_skeleton_dbus_interface_flush()
26603 for (l = connections; l != NULL; l = l->next) in _flash_control_on_signal_done()
26605 GDBusConnection *connection = l->data; in _flash_control_on_signal_done()
26627 for (l = connections; l != NULL; l = l->next) in _flash_control_on_signal_error()
26629 GDBusConnection *connection = l->data; in _flash_control_on_signal_error()
26653 for (l = connections; l != NULL; l = l->next) in _flash_control_on_signal_progress()
26655 GDBusConnection *connection = l->data; in _flash_control_on_signal_progress()
26681 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
26682 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
26683 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
26684 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
26685 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
26686 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
26687 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
26688 G_OBJECT_CLASS (flash_control_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
26698 g_assert (prop_id != 0 && prop_id - 1 < 2); in flash_control_skeleton_get_property()
26699 g_mutex_lock (&skeleton->priv->lock); in flash_control_skeleton_get_property()
26700 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in flash_control_skeleton_get_property()
26701 g_mutex_unlock (&skeleton->priv->lock); in flash_control_skeleton_get_property()
26713 g_mutex_lock (&skeleton->priv->lock); in _flash_control_emit_changed()
26716 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _flash_control_emit_changed()
26718 ChangedProperty *cp = l->data; in _flash_control_emit_changed()
26722 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _flash_control_emit_changed()
26723 if (!_g_value_equal (cur_value, &cp->orig_value)) in _flash_control_emit_changed()
26725 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _flash_control_emit_changed()
26726 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _flash_control_emit_changed()
26738 for (ll = connections; ll != NULL; ll = ll->next) in _flash_control_emit_changed()
26740 GDBusConnection *connection = ll->data; in _flash_control_emit_changed()
26757 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _flash_control_emit_changed()
26758 skeleton->priv->changed_properties = NULL; in _flash_control_emit_changed()
26759 skeleton->priv->changed_properties_idle_source = NULL; in _flash_control_emit_changed()
26760 g_mutex_unlock (&skeleton->priv->lock); in _flash_control_emit_changed()
26770 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _flash_control_schedule_emit_changed()
26772 ChangedProperty *i_cp = l->data; in _flash_control_schedule_emit_changed()
26773 if (i_cp->info == info) in _flash_control_schedule_emit_changed()
26782 cp->prop_id = prop_id; in _flash_control_schedule_emit_changed()
26783 cp->info = info; in _flash_control_schedule_emit_changed()
26784 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _flash_control_schedule_emit_changed()
26785 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _flash_control_schedule_emit_changed()
26786 g_value_copy (orig_value, &cp->orig_value); in _flash_control_schedule_emit_changed()
26795 g_mutex_lock (&skeleton->priv->lock); in flash_control_skeleton_notify()
26796 if (skeleton->priv->changed_properties != NULL && in flash_control_skeleton_notify()
26797 skeleton->priv->changed_properties_idle_source == NULL) in flash_control_skeleton_notify()
26799 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in flash_control_skeleton_notify()
26800 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in flash_control_skeleton_notify()
26801 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _flash_control_emit_changed… in flash_control_skeleton_notify()
26802 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _flash_control_emi… in flash_control_skeleton_notify()
26803 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in flash_control_skeleton_notify()
26804 g_source_unref (skeleton->priv->changed_properties_idle_source); in flash_control_skeleton_notify()
26806 g_mutex_unlock (&skeleton->priv->lock); in flash_control_skeleton_notify()
26817 g_assert (prop_id != 0 && prop_id - 1 < 2); in flash_control_skeleton_set_property()
26818 info = (const _ExtendedGDBusPropertyInfo *) _flash_control_property_info_pointers[prop_id - 1]; in flash_control_skeleton_set_property()
26819 g_mutex_lock (&skeleton->priv->lock); in flash_control_skeleton_set_property()
26821 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in flash_control_skeleton_set_property()
26824 info->emits_changed_signal) in flash_control_skeleton_set_property()
26825 …_control_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in flash_control_skeleton_set_property()
26826 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in flash_control_skeleton_set_property()
26829 g_mutex_unlock (&skeleton->priv->lock); in flash_control_skeleton_set_property()
26837 skeleton->priv = flash_control_skeleton_get_instance_private (skeleton); in flash_control_skeleton_init()
26839 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_FLASH_CONTROL_SKELETON, FlashControlS… in flash_control_skeleton_init()
26842 g_mutex_init (&skeleton->priv->lock); in flash_control_skeleton_init()
26843 skeleton->priv->context = g_main_context_ref_thread_default (); in flash_control_skeleton_init()
26844 skeleton->priv->properties = g_new0 (GValue, 2); in flash_control_skeleton_init()
26845 g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); in flash_control_skeleton_init()
26846 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in flash_control_skeleton_init()
26854 g_mutex_lock (&skeleton->priv->lock); in flash_control_skeleton_get_filename()
26855 value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); in flash_control_skeleton_get_filename()
26856 g_mutex_unlock (&skeleton->priv->lock); in flash_control_skeleton_get_filename()
26865 g_mutex_lock (&skeleton->priv->lock); in flash_control_skeleton_get_type_()
26866 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in flash_control_skeleton_get_type_()
26867 g_mutex_unlock (&skeleton->priv->lock); in flash_control_skeleton_get_type_()
26878 gobject_class->finalize = flash_control_skeleton_finalize; in flash_control_skeleton_class_init()
26879 gobject_class->get_property = flash_control_skeleton_get_property; in flash_control_skeleton_class_init()
26880 gobject_class->set_property = flash_control_skeleton_set_property; in flash_control_skeleton_class_init()
26881 gobject_class->notify = flash_control_skeleton_notify; in flash_control_skeleton_class_init()
26887 skeleton_class->get_info = flash_control_skeleton_dbus_interface_get_info; in flash_control_skeleton_class_init()
26888 skeleton_class->get_properties = flash_control_skeleton_dbus_interface_get_properties; in flash_control_skeleton_class_init()
26889 skeleton_class->flush = flash_control_skeleton_dbus_interface_flush; in flash_control_skeleton_class_init()
26890 skeleton_class->get_vtable = flash_control_skeleton_dbus_interface_get_vtable; in flash_control_skeleton_class_init()
26900 iface->done = _flash_control_on_signal_done; in flash_control_skeleton_iface_init()
26901 iface->error = _flash_control_on_signal_error; in flash_control_skeleton_iface_init()
26902 iface->progress = _flash_control_on_signal_progress; in flash_control_skeleton_iface_init()
26903 iface->get_filename = flash_control_skeleton_get_filename; in flash_control_skeleton_iface_init()
26904 iface->get_type_ = flash_control_skeleton_get_type_; in flash_control_skeleton_iface_init()
26910 …on object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
26920 /* ------------------------------------------------------------------------
26922 * ------------------------------------------------------------------------
26928 * @short_description: Generated C code for the org.openbmc.Button D-Bus interface
26930 …ins code for working with the <link linkend="gdbus-interface-org-openbmc-Button.top_of_page">org.o…
26942 /* ---- Introspection data for org.openbmc.Button ---- */
26947 -1,
26964 -1,
26970 "handle-is-on",
26977 -1,
26983 "handle-sim-press",
26990 -1,
26996 "handle-sim-long-press",
27011 -1,
27022 -1,
27033 -1,
27038 "pressed-long"
27052 -1,
27066 -1,
27087 -1,
27101 …* Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Button.top…
27126 return property_id_begin - 1; in button_override_properties()
27212 … interface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
27218 * @handle_is_on: Handler for the #Button::handle-is-on signal.
27219 * @handle_sim_long_press: Handler for the #Button::handle-sim-long-press signal.
27220 * @handle_sim_press: Handler for the #Button::handle-sim-press signal.
27224 * @pressed_long: Handler for the #Button::pressed-long signal.
27227 …* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
27236 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
27238 * Button::handle-is-on: in G_DEFINE_INTERFACE()
27242 …ted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Button.isOn">isOn… in G_DEFINE_INTERFACE()
27244 …ler will handle the invocation (e.g. take a reference to @invocation and eventually call button_co… in G_DEFINE_INTERFACE()
27248 g_signal_new ("handle-is-on", in G_DEFINE_INTERFACE()
27260 * Button::handle-sim-press: in G_DEFINE_INTERFACE()
27264 …when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Button.simPress">simP… in G_DEFINE_INTERFACE()
27266 …r will handle the invocation (e.g. take a reference to @invocation and eventually call button_comp… in G_DEFINE_INTERFACE()
27270 g_signal_new ("handle-sim-press", in G_DEFINE_INTERFACE()
27282 * Button::handle-sim-long-press: in G_DEFINE_INTERFACE()
27286 … a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Button.simLongPress">simL… in G_DEFINE_INTERFACE()
27288 …ill handle the invocation (e.g. take a reference to @invocation and eventually call button_complet… in G_DEFINE_INTERFACE()
27292 g_signal_new ("handle-sim-long-press", in G_DEFINE_INTERFACE()
27303 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
27308 …n the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-or… in G_DEFINE_INTERFACE()
27310 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
27327 …On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-o… in G_DEFINE_INTERFACE()
27329 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
27343 * Button::pressed-long: in G_DEFINE_INTERFACE()
27346 …he client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-o… in G_DEFINE_INTERFACE()
27348 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
27351 g_signal_new ("pressed-long", in G_DEFINE_INTERFACE()
27361 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
27365 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Button.state">"state"</l… in G_DEFINE_INTERFACE()
27367 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
27374 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Button.timer">"timer"</l… in G_DEFINE_INTERFACE()
27376 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
27386 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Button.state">"state"</link> D-B…
27388 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
27397 return BUTTON_GET_IFACE (object)->get_state (object); in button_get_state()
27405 …* Sets the <link linkend="gdbus-property-org-openbmc-Button.state">"state"</link> D-Bus property t…
27407 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
27419 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Button.timer">"timer"</link> D-B…
27421 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
27430 return BUTTON_GET_IFACE (object)->get_timer (object); in button_get_timer()
27438 …* Sets the <link linkend="gdbus-property-org-openbmc-Button.timer">"timer"</link> D-Bus property t…
27440 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
27452 …* Emits the <link linkend="gdbus-signal-org-openbmc-Button.Released">"Released"</link> D-Bus signa…
27465 * Emits the <link linkend="gdbus-signal-org-openbmc-Button.Pressed">"Pressed"</link> D-Bus signal.
27478 …* Emits the <link linkend="gdbus-signal-org-openbmc-Button.PressedLong">"PressedLong"</link> D-Bus…
27494 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Button.isOn">isOn()</link> D-…
27495 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
27511 -1, in button_call_is_on()
27554 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Button.isOn">isOn()</link> D-B…
27572 -1, in button_call_is_on_sync()
27592 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Button.simPress">simPress()</…
27593 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
27609 -1, in button_call_sim_press()
27648 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Button.simPress">simPress()</l…
27665 -1, in button_call_sim_press_sync()
27684 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Button.simLongPress">simLongP…
27685 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
27701 -1, in button_call_sim_long_press()
27740 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Button.simLongPress">simLongPr…
27757 -1, in button_call_sim_long_press_sync()
27775 …ns to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Button.isOn">isOn…
27795 …o finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Button.simPress">simP…
27813 …nish handling invocations of the <link linkend="gdbus-method-org-openbmc-Button.simLongPress">simL…
27826 /* ------------------------------------------------------------------------ */
27862 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
27863 G_OBJECT_CLASS (button_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
27874 g_assert (prop_id != 0 && prop_id - 1 < 2); in button_proxy_get_property()
27875 info = (const _ExtendedGDBusPropertyInfo *) _button_property_info_pointers[prop_id - 1]; in button_proxy_get_property()
27876 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in button_proxy_get_property()
27877 if (info->use_gvariant) in button_proxy_get_property()
27903 info->parent_struct.name, in button_proxy_set_property_cb()
27904 error->message, g_quark_to_string (error->domain), error->code); in button_proxy_set_property_cb()
27921 g_assert (prop_id != 0 && prop_id - 1 < 2); in button_proxy_set_property()
27922 info = (const _ExtendedGDBusPropertyInfo *) _button_property_info_pointers[prop_id - 1]; in button_proxy_set_property()
27923 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in button_proxy_set_property()
27926 g_variant_new ("(ssv)", "org.openbmc.Button", info->parent_struct.name, variant), in button_proxy_set_property()
27928 -1, in button_proxy_set_property()
27929 …NULL, (GAsyncReadyCallback) button_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_stru… in button_proxy_set_property()
27957 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in button_proxy_g_signal()
27958 if (arg_info->use_gvariant) in button_proxy_g_signal()
27968 signal_id = g_signal_lookup (info->signal_name, TYPE_BUTTON); in button_proxy_g_signal()
27989 g_datalist_remove_data (&proxy->priv->qdata, key); in button_proxy_g_properties_changed()
27991 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in button_proxy_g_properties_changed()
27997 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in button_proxy_g_properties_changed()
27999 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in button_proxy_g_properties_changed()
28037 proxy->priv = button_proxy_get_instance_private (proxy); in button_proxy_init()
28039 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_BUTTON_PROXY, ButtonProxyPrivate); in button_proxy_init()
28052 gobject_class->finalize = button_proxy_finalize; in button_proxy_class_init()
28053 gobject_class->get_property = button_proxy_get_property; in button_proxy_class_init()
28054 gobject_class->set_property = button_proxy_set_property; in button_proxy_class_init()
28057 proxy_class->g_signal = button_proxy_g_signal; in button_proxy_class_init()
28058 proxy_class->g_properties_changed = button_proxy_g_properties_changed; in button_proxy_class_init()
28070 iface->get_state = button_proxy_get_state; in button_proxy_iface_init()
28071 iface->get_timer = button_proxy_get_timer; in button_proxy_iface_init()
28078 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
28084 …creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
28086 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
28101 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in button_proxy_new()
28133 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
28138 …creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
28156 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in button_proxy_new_sync()
28168 * @name: A bus name (well-known or unique).
28176 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
28191 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in button_proxy_new_for_bus()
28223 * @name: A bus name (well-known or unique).
28246 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in button_proxy_new_for_bus_sync()
28254 /* ------------------------------------------------------------------------ */
28302 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _button_skeleton_handle_method_call()
28308 if (info->pass_fdlist) in _button_skeleton_handle_method_call()
28320 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _button_skeleton_handle_method_call()
28321 if (arg_info->use_gvariant) in _button_skeleton_handle_method_call()
28331 signal_id = g_signal_lookup (info->signal_name, TYPE_BUTTON); in _button_skeleton_handle_method_call()
28360 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _button_skeleton_handle_get_property()
28367 g_value_init (&value, pspec->value_type); in _button_skeleton_handle_get_property()
28368 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _button_skeleton_handle_get_property()
28369 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _button_skeleton_handle_get_property()
28394 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _button_skeleton_handle_set_property()
28401 if (info->use_gvariant) in _button_skeleton_handle_set_property()
28405 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _button_skeleton_handle_set_property()
28445 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in button_skeleton_dbus_interface_get_properties()
28448 …ject_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Button", info->name, NULL, skeleton… in button_skeleton_dbus_interface_get_properties()
28452 g_variant_builder_add (&builder, "{sv}", info->name, value); in button_skeleton_dbus_interface_get_properties()
28469 g_mutex_lock (&skeleton->priv->lock); in button_skeleton_dbus_interface_flush()
28470 if (skeleton->priv->changed_properties_idle_source != NULL) in button_skeleton_dbus_interface_flush()
28472 g_source_destroy (skeleton->priv->changed_properties_idle_source); in button_skeleton_dbus_interface_flush()
28473 skeleton->priv->changed_properties_idle_source = NULL; in button_skeleton_dbus_interface_flush()
28476 g_mutex_unlock (&skeleton->priv->lock); in button_skeleton_dbus_interface_flush()
28493 for (l = connections; l != NULL; l = l->next) in _button_on_signal_released()
28495 GDBusConnection *connection = l->data; in _button_on_signal_released()
28515 for (l = connections; l != NULL; l = l->next) in _button_on_signal_pressed()
28517 GDBusConnection *connection = l->data; in _button_on_signal_pressed()
28537 for (l = connections; l != NULL; l = l->next) in _button_on_signal_pressed_long()
28539 GDBusConnection *connection = l->data; in _button_on_signal_pressed_long()
28565 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
28566 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
28567 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
28568 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
28569 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
28570 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
28571 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
28572 G_OBJECT_CLASS (button_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
28582 g_assert (prop_id != 0 && prop_id - 1 < 2); in button_skeleton_get_property()
28583 g_mutex_lock (&skeleton->priv->lock); in button_skeleton_get_property()
28584 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in button_skeleton_get_property()
28585 g_mutex_unlock (&skeleton->priv->lock); in button_skeleton_get_property()
28597 g_mutex_lock (&skeleton->priv->lock); in _button_emit_changed()
28600 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _button_emit_changed()
28602 ChangedProperty *cp = l->data; in _button_emit_changed()
28606 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _button_emit_changed()
28607 if (!_g_value_equal (cur_value, &cp->orig_value)) in _button_emit_changed()
28609 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _button_emit_changed()
28610 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _button_emit_changed()
28622 for (ll = connections; ll != NULL; ll = ll->next) in _button_emit_changed()
28624 GDBusConnection *connection = ll->data; in _button_emit_changed()
28641 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _button_emit_changed()
28642 skeleton->priv->changed_properties = NULL; in _button_emit_changed()
28643 skeleton->priv->changed_properties_idle_source = NULL; in _button_emit_changed()
28644 g_mutex_unlock (&skeleton->priv->lock); in _button_emit_changed()
28654 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _button_schedule_emit_changed()
28656 ChangedProperty *i_cp = l->data; in _button_schedule_emit_changed()
28657 if (i_cp->info == info) in _button_schedule_emit_changed()
28666 cp->prop_id = prop_id; in _button_schedule_emit_changed()
28667 cp->info = info; in _button_schedule_emit_changed()
28668 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _button_schedule_emit_changed()
28669 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _button_schedule_emit_changed()
28670 g_value_copy (orig_value, &cp->orig_value); in _button_schedule_emit_changed()
28679 g_mutex_lock (&skeleton->priv->lock); in button_skeleton_notify()
28680 if (skeleton->priv->changed_properties != NULL && in button_skeleton_notify()
28681 skeleton->priv->changed_properties_idle_source == NULL) in button_skeleton_notify()
28683 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in button_skeleton_notify()
28684 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in button_skeleton_notify()
28685 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _button_emit_changed, g_obj… in button_skeleton_notify()
28686 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _button_emit_chang… in button_skeleton_notify()
28687 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in button_skeleton_notify()
28688 g_source_unref (skeleton->priv->changed_properties_idle_source); in button_skeleton_notify()
28690 g_mutex_unlock (&skeleton->priv->lock); in button_skeleton_notify()
28701 g_assert (prop_id != 0 && prop_id - 1 < 2); in button_skeleton_set_property()
28702 info = (const _ExtendedGDBusPropertyInfo *) _button_property_info_pointers[prop_id - 1]; in button_skeleton_set_property()
28703 g_mutex_lock (&skeleton->priv->lock); in button_skeleton_set_property()
28705 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in button_skeleton_set_property()
28708 info->emits_changed_signal) in button_skeleton_set_property()
28709 … _button_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in button_skeleton_set_property()
28710 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in button_skeleton_set_property()
28713 g_mutex_unlock (&skeleton->priv->lock); in button_skeleton_set_property()
28721 skeleton->priv = button_skeleton_get_instance_private (skeleton); in button_skeleton_init()
28723 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_BUTTON_SKELETON, ButtonSkeletonPrivat… in button_skeleton_init()
28726 g_mutex_init (&skeleton->priv->lock); in button_skeleton_init()
28727 skeleton->priv->context = g_main_context_ref_thread_default (); in button_skeleton_init()
28728 skeleton->priv->properties = g_new0 (GValue, 2); in button_skeleton_init()
28729 g_value_init (&skeleton->priv->properties[0], G_TYPE_BOOLEAN); in button_skeleton_init()
28730 g_value_init (&skeleton->priv->properties[1], G_TYPE_UINT64); in button_skeleton_init()
28738 g_mutex_lock (&skeleton->priv->lock); in button_skeleton_get_state()
28739 value = g_marshal_value_peek_boolean (&(skeleton->priv->properties[0])); in button_skeleton_get_state()
28740 g_mutex_unlock (&skeleton->priv->lock); in button_skeleton_get_state()
28749 g_mutex_lock (&skeleton->priv->lock); in button_skeleton_get_timer()
28750 value = g_marshal_value_peek_uint64 (&(skeleton->priv->properties[1])); in button_skeleton_get_timer()
28751 g_mutex_unlock (&skeleton->priv->lock); in button_skeleton_get_timer()
28762 gobject_class->finalize = button_skeleton_finalize; in button_skeleton_class_init()
28763 gobject_class->get_property = button_skeleton_get_property; in button_skeleton_class_init()
28764 gobject_class->set_property = button_skeleton_set_property; in button_skeleton_class_init()
28765 gobject_class->notify = button_skeleton_notify; in button_skeleton_class_init()
28771 skeleton_class->get_info = button_skeleton_dbus_interface_get_info; in button_skeleton_class_init()
28772 skeleton_class->get_properties = button_skeleton_dbus_interface_get_properties; in button_skeleton_class_init()
28773 skeleton_class->flush = button_skeleton_dbus_interface_flush; in button_skeleton_class_init()
28774 skeleton_class->get_vtable = button_skeleton_dbus_interface_get_vtable; in button_skeleton_class_init()
28784 iface->released = _button_on_signal_released; in button_skeleton_iface_init()
28785 iface->pressed = _button_on_signal_pressed; in button_skeleton_iface_init()
28786 iface->pressed_long = _button_on_signal_pressed_long; in button_skeleton_iface_init()
28787 iface->get_state = button_skeleton_get_state; in button_skeleton_iface_init()
28788 iface->get_timer = button_skeleton_get_timer; in button_skeleton_iface_init()
28794 …skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
28804 /* ------------------------------------------------------------------------
28806 * ------------------------------------------------------------------------
28812 * @short_description: Generated C code for the org.openbmc.Led D-Bus interface
28814 …ntains code for working with the <link linkend="gdbus-interface-org-openbmc-Led.top_of_page">org.o…
28817 /* ---- Introspection data for org.openbmc.Led ---- */
28822 -1,
28828 "handle-set-on",
28835 -1,
28841 "handle-set-off",
28848 -1,
28854 "handle-set-blink-slow",
28861 -1,
28867 "handle-set-blink-fast",
28883 -1,
28897 -1,
28911 -1,
28933 -1,
28947 …* Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-Led.top_of…
28973 return property_id_begin - 1; in led_override_properties()
29033 …act interface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_p…
29039 * @handle_set_blink_fast: Handler for the #Led::handle-set-blink-fast signal.
29040 * @handle_set_blink_slow: Handler for the #Led::handle-set-blink-slow signal.
29041 * @handle_set_off: Handler for the #Led::handle-set-off signal.
29042 * @handle_set_on: Handler for the #Led::handle-set-on signal.
29047 …* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_page…
29056 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
29058 * Led::handle-set-on: in G_DEFINE_INTERFACE()
29062 …tted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Led.setOn">setOn… in G_DEFINE_INTERFACE()
29064 …dler will handle the invocation (e.g. take a reference to @invocation and eventually call led_comp… in G_DEFINE_INTERFACE()
29068 g_signal_new ("handle-set-on", in G_DEFINE_INTERFACE()
29080 * Led::handle-set-off: in G_DEFINE_INTERFACE()
29084 …ted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Led.setOff">setOf… in G_DEFINE_INTERFACE()
29086 …ler will handle the invocation (e.g. take a reference to @invocation and eventually call led_compl… in G_DEFINE_INTERFACE()
29090 g_signal_new ("handle-set-off", in G_DEFINE_INTERFACE()
29102 * Led::handle-set-blink-slow: in G_DEFINE_INTERFACE()
29106 …en a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Led.setBlinkSlow">setBl… in G_DEFINE_INTERFACE()
29108 … will handle the invocation (e.g. take a reference to @invocation and eventually call led_complete… in G_DEFINE_INTERFACE()
29112 g_signal_new ("handle-set-blink-slow", in G_DEFINE_INTERFACE()
29124 * Led::handle-set-blink-fast: in G_DEFINE_INTERFACE()
29128 …en a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-Led.setBlinkFast">setBl… in G_DEFINE_INTERFACE()
29130 … will handle the invocation (e.g. take a reference to @invocation and eventually call led_complete… in G_DEFINE_INTERFACE()
29134 g_signal_new ("handle-set-blink-fast", in G_DEFINE_INTERFACE()
29145 /* GObject properties for D-Bus properties: */ in G_DEFINE_INTERFACE()
29149 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Led.color">"color"</link… in G_DEFINE_INTERFACE()
29151 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
29158 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Led.function">"function"… in G_DEFINE_INTERFACE()
29160 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
29167 …* Represents the D-Bus property <link linkend="gdbus-property-org-openbmc-Led.state">"state"</link… in G_DEFINE_INTERFACE()
29169 …-Bus property for this #GObject property is readable but not writable, it is meaningful to read fr… in G_DEFINE_INTERFACE()
29179 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Led.color">"color"</link> D-Bus …
29181 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
29190 return LED_GET_IFACE (object)->get_color (object); in led_get_color()
29198 …* Sets the <link linkend="gdbus-property-org-openbmc-Led.color">"color"</link> D-Bus property to @…
29200 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
29212 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Led.function">"function"</link> …
29214 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
29216 …* The returned value is only valid until the property changes so on the client-side it is only saf…
29225 return LED_GET_IFACE (object)->get_function (object); in led_get_function()
29232 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Led.function">"function"</link> D-B…
29234 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
29251 …* Sets the <link linkend="gdbus-property-org-openbmc-Led.function">"function"</link> D-Bus propert…
29253 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
29265 …* Gets the value of the <link linkend="gdbus-property-org-openbmc-Led.state">"state"</link> D-Bus …
29267 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
29269 …* The returned value is only valid until the property changes so on the client-side it is only saf…
29278 return LED_GET_IFACE (object)->get_state (object); in led_get_state()
29285 …* Gets a copy of the <link linkend="gdbus-property-org-openbmc-Led.state">"state"</link> D-Bus pro…
29287 …* Since this D-Bus property is readable, it is meaningful to use this function on both the client-…
29304 …* Sets the <link linkend="gdbus-property-org-openbmc-Led.state">"state"</link> D-Bus property to @…
29306 …* Since this D-Bus property is not writable, it is only meaningful to use this function on the ser…
29321 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setOn">setOn()</link> D-B…
29322 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
29338 -1, in led_call_set_on()
29377 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setOn">setOn()</link> D-Bu…
29394 -1, in led_call_set_on_sync()
29413 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setOff">setOff()</link> D…
29414 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
29430 -1, in led_call_set_off()
29469 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setOff">setOff()</link> D-…
29486 -1, in led_call_set_off_sync()
29505 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setBlinkSlow">setBlinkSlo…
29506 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
29522 -1, in led_call_set_blink_slow()
29561 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setBlinkSlow">setBlinkSlow…
29578 -1, in led_call_set_blink_slow_sync()
29597 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setBlinkFast">setBlinkFas…
29598 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
29614 -1, in led_call_set_blink_fast()
29653 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-Led.setBlinkFast">setBlinkFast…
29670 -1, in led_call_set_blink_fast_sync()
29687 …ons to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Led.setOn">setOn…
29705 …ns to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Led.setOff">setOf…
29723 …finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Led.setBlinkSlow">setBl…
29741 …finish handling invocations of the <link linkend="gdbus-method-org-openbmc-Led.setBlinkFast">setBl…
29754 /* ------------------------------------------------------------------------ */
29790 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
29791 G_OBJECT_CLASS (led_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
29802 g_assert (prop_id != 0 && prop_id - 1 < 3); in led_proxy_get_property()
29803 info = (const _ExtendedGDBusPropertyInfo *) _led_property_info_pointers[prop_id - 1]; in led_proxy_get_property()
29804 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); in led_proxy_get_property()
29805 if (info->use_gvariant) in led_proxy_get_property()
29831 info->parent_struct.name, in led_proxy_set_property_cb()
29832 error->message, g_quark_to_string (error->domain), error->code); in led_proxy_set_property_cb()
29849 g_assert (prop_id != 0 && prop_id - 1 < 3); in led_proxy_set_property()
29850 info = (const _ExtendedGDBusPropertyInfo *) _led_property_info_pointers[prop_id - 1]; in led_proxy_set_property()
29851 variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); in led_proxy_set_property()
29854 g_variant_new ("(ssv)", "org.openbmc.Led", info->parent_struct.name, variant), in led_proxy_set_property()
29856 -1, in led_proxy_set_property()
29857 …NULL, (GAsyncReadyCallback) led_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); in led_proxy_set_property()
29885 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in led_proxy_g_signal()
29886 if (arg_info->use_gvariant) in led_proxy_g_signal()
29896 signal_id = g_signal_lookup (info->signal_name, TYPE_LED); in led_proxy_g_signal()
29917 g_datalist_remove_data (&proxy->priv->qdata, key); in led_proxy_g_properties_changed()
29919 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in led_proxy_g_properties_changed()
29925 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in led_proxy_g_properties_changed()
29927 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in led_proxy_g_properties_changed()
29980 proxy->priv = led_proxy_get_instance_private (proxy); in led_proxy_init()
29982 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_LED_PROXY, LedProxyPrivate); in led_proxy_init()
29995 gobject_class->finalize = led_proxy_finalize; in led_proxy_class_init()
29996 gobject_class->get_property = led_proxy_get_property; in led_proxy_class_init()
29997 gobject_class->set_property = led_proxy_set_property; in led_proxy_class_init()
30000 proxy_class->g_signal = led_proxy_g_signal; in led_proxy_class_init()
30001 proxy_class->g_properties_changed = led_proxy_g_properties_changed; in led_proxy_class_init()
30013 iface->get_color = led_proxy_get_color; in led_proxy_iface_init()
30014 iface->get_function = led_proxy_get_function; in led_proxy_iface_init()
30015 iface->get_state = led_proxy_get_state; in led_proxy_iface_init()
30022 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
30028 …ly creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_p…
30030 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
30045 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in led_proxy_new()
30077 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
30082 …ly creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_p…
30100 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in led_proxy_new_sync()
30112 * @name: A bus name (well-known or unique).
30120 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
30135 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in led_proxy_new_for_bus()
30167 * @name: A bus name (well-known or unique).
30190 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in led_proxy_new_for_bus_sync()
30198 /* ------------------------------------------------------------------------ */
30246 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _led_skeleton_handle_method_call()
30252 if (info->pass_fdlist) in _led_skeleton_handle_method_call()
30264 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _led_skeleton_handle_method_call()
30265 if (arg_info->use_gvariant) in _led_skeleton_handle_method_call()
30275 signal_id = g_signal_lookup (info->signal_name, TYPE_LED); in _led_skeleton_handle_method_call()
30304 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _led_skeleton_handle_get_property()
30311 g_value_init (&value, pspec->value_type); in _led_skeleton_handle_get_property()
30312 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _led_skeleton_handle_get_property()
30313 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _led_skeleton_handle_get_property()
30338 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _led_skeleton_handle_set_property()
30345 if (info->use_gvariant) in _led_skeleton_handle_set_property()
30349 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _led_skeleton_handle_set_property()
30389 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in led_skeleton_dbus_interface_get_properties()
30392 …_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.Led", info->name, NULL, skeleton… in led_skeleton_dbus_interface_get_properties()
30396 g_variant_builder_add (&builder, "{sv}", info->name, value); in led_skeleton_dbus_interface_get_properties()
30413 g_mutex_lock (&skeleton->priv->lock); in led_skeleton_dbus_interface_flush()
30414 if (skeleton->priv->changed_properties_idle_source != NULL) in led_skeleton_dbus_interface_flush()
30416 g_source_destroy (skeleton->priv->changed_properties_idle_source); in led_skeleton_dbus_interface_flush()
30417 skeleton->priv->changed_properties_idle_source = NULL; in led_skeleton_dbus_interface_flush()
30420 g_mutex_unlock (&skeleton->priv->lock); in led_skeleton_dbus_interface_flush()
30443 g_value_unset (&skeleton->priv->properties[n]); in G_DEFINE_TYPE_WITH_CODE()
30444 g_free (skeleton->priv->properties); in G_DEFINE_TYPE_WITH_CODE()
30445 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
30446 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
30447 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
30448 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
30449 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
30450 G_OBJECT_CLASS (led_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
30460 g_assert (prop_id != 0 && prop_id - 1 < 3); in led_skeleton_get_property()
30461 g_mutex_lock (&skeleton->priv->lock); in led_skeleton_get_property()
30462 g_value_copy (&skeleton->priv->properties[prop_id - 1], value); in led_skeleton_get_property()
30463 g_mutex_unlock (&skeleton->priv->lock); in led_skeleton_get_property()
30475 g_mutex_lock (&skeleton->priv->lock); in _led_emit_changed()
30478 for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) in _led_emit_changed()
30480 ChangedProperty *cp = l->data; in _led_emit_changed()
30484 cur_value = &skeleton->priv->properties[cp->prop_id - 1]; in _led_emit_changed()
30485 if (!_g_value_equal (cur_value, &cp->orig_value)) in _led_emit_changed()
30487 …variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)… in _led_emit_changed()
30488 g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); in _led_emit_changed()
30500 for (ll = connections; ll != NULL; ll = ll->next) in _led_emit_changed()
30502 GDBusConnection *connection = ll->data; in _led_emit_changed()
30519 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in _led_emit_changed()
30520 skeleton->priv->changed_properties = NULL; in _led_emit_changed()
30521 skeleton->priv->changed_properties_idle_source = NULL; in _led_emit_changed()
30522 g_mutex_unlock (&skeleton->priv->lock); in _led_emit_changed()
30532 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) in _led_schedule_emit_changed()
30534 ChangedProperty *i_cp = l->data; in _led_schedule_emit_changed()
30535 if (i_cp->info == info) in _led_schedule_emit_changed()
30544 cp->prop_id = prop_id; in _led_schedule_emit_changed()
30545 cp->info = info; in _led_schedule_emit_changed()
30546 skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); in _led_schedule_emit_changed()
30547 g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); in _led_schedule_emit_changed()
30548 g_value_copy (orig_value, &cp->orig_value); in _led_schedule_emit_changed()
30557 g_mutex_lock (&skeleton->priv->lock); in led_skeleton_notify()
30558 if (skeleton->priv->changed_properties != NULL && in led_skeleton_notify()
30559 skeleton->priv->changed_properties_idle_source == NULL) in led_skeleton_notify()
30561 skeleton->priv->changed_properties_idle_source = g_idle_source_new (); in led_skeleton_notify()
30562 g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); in led_skeleton_notify()
30563 …g_source_set_callback (skeleton->priv->changed_properties_idle_source, _led_emit_changed, g_object… in led_skeleton_notify()
30564 …g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _led_emit_changed"… in led_skeleton_notify()
30565 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); in led_skeleton_notify()
30566 g_source_unref (skeleton->priv->changed_properties_idle_source); in led_skeleton_notify()
30568 g_mutex_unlock (&skeleton->priv->lock); in led_skeleton_notify()
30579 g_assert (prop_id != 0 && prop_id - 1 < 3); in led_skeleton_set_property()
30580 info = (const _ExtendedGDBusPropertyInfo *) _led_property_info_pointers[prop_id - 1]; in led_skeleton_set_property()
30581 g_mutex_lock (&skeleton->priv->lock); in led_skeleton_set_property()
30583 if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) in led_skeleton_set_property()
30586 info->emits_changed_signal) in led_skeleton_set_property()
30587 … _led_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); in led_skeleton_set_property()
30588 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); in led_skeleton_set_property()
30591 g_mutex_unlock (&skeleton->priv->lock); in led_skeleton_set_property()
30599 skeleton->priv = led_skeleton_get_instance_private (skeleton); in led_skeleton_init()
30601 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_LED_SKELETON, LedSkeletonPrivate); in led_skeleton_init()
30604 g_mutex_init (&skeleton->priv->lock); in led_skeleton_init()
30605 skeleton->priv->context = g_main_context_ref_thread_default (); in led_skeleton_init()
30606 skeleton->priv->properties = g_new0 (GValue, 3); in led_skeleton_init()
30607 g_value_init (&skeleton->priv->properties[0], G_TYPE_INT); in led_skeleton_init()
30608 g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING); in led_skeleton_init()
30609 g_value_init (&skeleton->priv->properties[2], G_TYPE_STRING); in led_skeleton_init()
30617 g_mutex_lock (&skeleton->priv->lock); in led_skeleton_get_color()
30618 value = g_marshal_value_peek_int (&(skeleton->priv->properties[0])); in led_skeleton_get_color()
30619 g_mutex_unlock (&skeleton->priv->lock); in led_skeleton_get_color()
30628 g_mutex_lock (&skeleton->priv->lock); in led_skeleton_get_function()
30629 value = g_marshal_value_peek_string (&(skeleton->priv->properties[1])); in led_skeleton_get_function()
30630 g_mutex_unlock (&skeleton->priv->lock); in led_skeleton_get_function()
30639 g_mutex_lock (&skeleton->priv->lock); in led_skeleton_get_state()
30640 value = g_marshal_value_peek_string (&(skeleton->priv->properties[2])); in led_skeleton_get_state()
30641 g_mutex_unlock (&skeleton->priv->lock); in led_skeleton_get_state()
30652 gobject_class->finalize = led_skeleton_finalize; in led_skeleton_class_init()
30653 gobject_class->get_property = led_skeleton_get_property; in led_skeleton_class_init()
30654 gobject_class->set_property = led_skeleton_set_property; in led_skeleton_class_init()
30655 gobject_class->notify = led_skeleton_notify; in led_skeleton_class_init()
30661 skeleton_class->get_info = led_skeleton_dbus_interface_get_info; in led_skeleton_class_init()
30662 skeleton_class->get_properties = led_skeleton_dbus_interface_get_properties; in led_skeleton_class_init()
30663 skeleton_class->flush = led_skeleton_dbus_interface_flush; in led_skeleton_class_init()
30664 skeleton_class->get_vtable = led_skeleton_dbus_interface_get_vtable; in led_skeleton_class_init()
30674 iface->get_color = led_skeleton_get_color; in led_skeleton_iface_init()
30675 iface->get_function = led_skeleton_get_function; in led_skeleton_iface_init()
30676 iface->get_state = led_skeleton_get_state; in led_skeleton_iface_init()
30682 … a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_p…
30692 /* ------------------------------------------------------------------------
30694 * ------------------------------------------------------------------------
30700 * @short_description: Generated C code for the org.openbmc.HostIpmi D-Bus interface
30702 …s code for working with the <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_page">org.o…
30712 /* ---- Introspection data for org.openbmc.HostIpmi ---- */
30717 -1,
30728 -1,
30739 -1,
30750 -1,
30770 -1,
30787 -1,
30793 "handle-send-message",
30806 -1,
30817 -1,
30828 -1,
30839 -1,
30859 -1,
30864 "received-message"
30876 -1,
30883 "host-ipmi",
30890 …Gets a machine-readable description of the <link linkend="gdbus-interface-org-openbmc-HostIpmi.top…
30913 return property_id_begin - 1; in host_ipmi_override_properties()
30947 …nterface type for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
30953 * @handle_send_message: Handler for the #HostIpmi::handle-send-message signal.
30954 * @received_message: Handler for the #HostIpmi::received-message signal.
30956 …Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
30965 /* GObject signals for incoming D-Bus method calls: */ in G_DEFINE_INTERFACE()
30967 * HostIpmi::handle-send-message: in G_DEFINE_INTERFACE()
30975 … a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-HostIpmi.sendMessage">sen… in G_DEFINE_INTERFACE()
30977 …ill handle the invocation (e.g. take a reference to @invocation and eventually call host_ipmi_comp… in G_DEFINE_INTERFACE()
30981 g_signal_new ("handle-send-message", in G_DEFINE_INTERFACE()
30992 /* GObject signals for received D-Bus signals: */ in G_DEFINE_INTERFACE()
30994 * HostIpmi::received-message: in G_DEFINE_INTERFACE()
31001 …ient-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-openbm… in G_DEFINE_INTERFACE()
31003 …* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the objec… in G_DEFINE_INTERFACE()
31006 g_signal_new ("received-message", in G_DEFINE_INTERFACE()
31026 …* Emits the <link linkend="gdbus-signal-org-openbmc-HostIpmi.ReceivedMessage">"ReceivedMessage"</l…
31050 …* Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-HostIpmi.sendMessage">sendMes…
31051 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
31075 -1, in host_ipmi_call_send_message()
31122 …* Synchronously invokes the <link linkend="gdbus-method-org-openbmc-HostIpmi.sendMessage">sendMess…
31148 -1, in host_ipmi_call_send_message_sync()
31167 …nish handling invocations of the <link linkend="gdbus-method-org-openbmc-HostIpmi.sendMessage">sen…
31182 /* ------------------------------------------------------------------------ */
31218 g_datalist_clear (&proxy->priv->qdata); in G_DEFINE_TYPE_WITH_CODE()
31219 G_OBJECT_CLASS (host_ipmi_proxy_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
31262 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; in host_ipmi_proxy_g_signal()
31263 if (arg_info->use_gvariant) in host_ipmi_proxy_g_signal()
31273 signal_id = g_signal_lookup (info->signal_name, TYPE_HOST_IPMI); in host_ipmi_proxy_g_signal()
31294 g_datalist_remove_data (&proxy->priv->qdata, key); in host_ipmi_proxy_g_properties_changed()
31296 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in host_ipmi_proxy_g_properties_changed()
31302 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); in host_ipmi_proxy_g_properties_changed()
31304 g_object_notify (G_OBJECT (proxy), info->hyphen_name); in host_ipmi_proxy_g_properties_changed()
31312 proxy->priv = host_ipmi_proxy_get_instance_private (proxy); in host_ipmi_proxy_init()
31314 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_HOST_IPMI_PROXY, HostIpmiProxyPrivate); in host_ipmi_proxy_init()
31327 gobject_class->finalize = host_ipmi_proxy_finalize; in host_ipmi_proxy_class_init()
31328 gobject_class->get_property = host_ipmi_proxy_get_property; in host_ipmi_proxy_class_init()
31329 gobject_class->set_property = host_ipmi_proxy_set_property; in host_ipmi_proxy_class_init()
31332 proxy_class->g_signal = host_ipmi_proxy_g_signal; in host_ipmi_proxy_class_init()
31333 proxy_class->g_properties_changed = host_ipmi_proxy_g_properties_changed; in host_ipmi_proxy_class_init()
31349 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
31355 …eates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
31357 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
31372 …, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in host_ipmi_proxy_new()
31404 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
31409 …eates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
31427 …Y, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-pat… in host_ipmi_proxy_new_sync()
31439 * @name: A bus name (well-known or unique).
31447 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
31462 …le, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in host_ipmi_proxy_new_for_bus()
31494 * @name: A bus name (well-known or unique).
31517 …OXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path"… in host_ipmi_proxy_new_for_bus_sync()
31525 /* ------------------------------------------------------------------------ */
31573 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); in _host_ipmi_skeleton_handle_method_call()
31579 if (info->pass_fdlist) in _host_ipmi_skeleton_handle_method_call()
31591 …_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_ex… in _host_ipmi_skeleton_handle_method_call()
31592 if (arg_info->use_gvariant) in _host_ipmi_skeleton_handle_method_call()
31602 signal_id = g_signal_lookup (info->signal_name, TYPE_HOST_IPMI); in _host_ipmi_skeleton_handle_method_call()
31631 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _host_ipmi_skeleton_handle_get_property()
31638 g_value_init (&value, pspec->value_type); in _host_ipmi_skeleton_handle_get_property()
31639 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _host_ipmi_skeleton_handle_get_property()
31640 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); in _host_ipmi_skeleton_handle_get_property()
31665 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); in _host_ipmi_skeleton_handle_set_property()
31672 if (info->use_gvariant) in _host_ipmi_skeleton_handle_set_property()
31676 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); in _host_ipmi_skeleton_handle_set_property()
31716 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) in host_ipmi_skeleton_dbus_interface_get_properties()
31719 …ct_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.openbmc.HostIpmi", info->name, NULL, skeleton… in host_ipmi_skeleton_dbus_interface_get_properties()
31723 g_variant_builder_add (&builder, "{sv}", info->name, value); in host_ipmi_skeleton_dbus_interface_get_properties()
31756 for (l = connections; l != NULL; l = l->next) in _host_ipmi_on_signal_received_message()
31758 GDBusConnection *connection = l->data; in _host_ipmi_on_signal_received_message()
31782 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); in G_DEFINE_TYPE_WITH_CODE()
31783 if (skeleton->priv->changed_properties_idle_source != NULL) in G_DEFINE_TYPE_WITH_CODE()
31784 g_source_destroy (skeleton->priv->changed_properties_idle_source); in G_DEFINE_TYPE_WITH_CODE()
31785 g_main_context_unref (skeleton->priv->context); in G_DEFINE_TYPE_WITH_CODE()
31786 g_mutex_clear (&skeleton->priv->lock); in G_DEFINE_TYPE_WITH_CODE()
31787 G_OBJECT_CLASS (host_ipmi_skeleton_parent_class)->finalize (object); in G_DEFINE_TYPE_WITH_CODE()
31794 skeleton->priv = host_ipmi_skeleton_get_instance_private (skeleton); in host_ipmi_skeleton_init()
31796 …skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonP… in host_ipmi_skeleton_init()
31799 g_mutex_init (&skeleton->priv->lock); in host_ipmi_skeleton_init()
31800 skeleton->priv->context = g_main_context_ref_thread_default (); in host_ipmi_skeleton_init()
31810 gobject_class->finalize = host_ipmi_skeleton_finalize; in host_ipmi_skeleton_class_init()
31813 skeleton_class->get_info = host_ipmi_skeleton_dbus_interface_get_info; in host_ipmi_skeleton_class_init()
31814 skeleton_class->get_properties = host_ipmi_skeleton_dbus_interface_get_properties; in host_ipmi_skeleton_class_init()
31815 skeleton_class->flush = host_ipmi_skeleton_dbus_interface_flush; in host_ipmi_skeleton_class_init()
31816 skeleton_class->get_vtable = host_ipmi_skeleton_dbus_interface_get_vtable; in host_ipmi_skeleton_class_init()
31826 iface->received_message = _host_ipmi_on_signal_received_message; in host_ipmi_skeleton_iface_init()
31832 …eleton object for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
31842 /* ------------------------------------------------------------------------
31844 * ------------------------------------------------------------------------
31852 … types which make it easier to work with objects implementing generated types for D-Bus interfaces.
31877 …nce corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_p…
31886 …tance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_p…
31893 * Object:sensor-value:
31895 …rresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
31899 …erface_install_property (iface, g_param_spec_object ("sensor-value", "sensor-value", "sensor-value…
31902 * Object:sensor-threshold:
31904 …ponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
31908 …ce_install_property (iface, g_param_spec_object ("sensor-threshold", "sensor-threshold", "sensor-t…
31911 * Object:sensor-i2c:
31913 …corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
31917 …nterface_install_property (iface, g_param_spec_object ("sensor-i2c", "sensor-i2c", "sensor-i2c", T…
31920 * Object:sensor-match:
31922 …rresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
31926 …erface_install_property (iface, g_param_spec_object ("sensor-match", "sensor-match", "sensor-match…
31931 …e corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
31938 * Object:shared-resource:
31940 …sponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
31944 …ace_install_property (iface, g_param_spec_object ("shared-resource", "shared-resource", "shared-re…
31949 …e corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
31956 * Object:control-bmc:
31958 …rresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
31962 …erface_install_property (iface, g_param_spec_object ("control-bmc", "control-bmc", "control-bmc", …
31965 * Object:control-host:
31967 …responding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
31971 …rface_install_property (iface, g_param_spec_object ("control-host", "control-host", "control-host"…
31974 * Object:control-power:
31976 …esponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
31980 …face_install_property (iface, g_param_spec_object ("control-power", "control-power", "control-powe…
31983 * Object:control-checkstop:
31985 …nding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
31989 …_install_property (iface, g_param_spec_object ("control-checkstop", "control-checkstop", "control-…
31994 … corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
32001 * Object:event-log:
32003 … corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
32007 …_interface_install_property (iface, g_param_spec_object ("event-log", "event-log", "event-log", TY…
32012 …nce corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_p…
32019 * Object:flash-control:
32021 …responding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
32025 …erface_install_property (iface, g_param_spec_object ("flash-control", "flash-control", "flash-cont…
32030 …ce corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
32039 …tance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_p…
32046 * Object:host-ipmi:
32048 … corresponding to the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
32052 …g_object_interface_install_property (iface, g_param_spec_object ("host-ipmi", "host-ipmi", "host-i…
32060 … #Hwmon instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_p…
32077 … the #Fan instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_p…
32094 …e instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
32111 …stance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
32128 …I2c instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
32145 …h instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
32162 …ocess instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
32179 …nstance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
32196 …ntrol instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
32213 …c instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
32230 … instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
32247 …instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
32264 …ance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
32281 …hdog instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
32298 …tLog instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
32315 … #Flash instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_p…
32332 … instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
32349 …Button instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
32366 … the #Led instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_p…
32383 …Ipmi instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
32802 /* info can be NULL if the other end is using a D-Bus interface we don't know in object_notify()
32806 g_object_notify (G_OBJECT (object), info->hyphen_name); in object_notify()
32830 iface->interface_added = object_notify; in object_proxy__g_dbus_object_iface_init()
32831 iface->interface_removed = object_notify; in object_proxy__g_dbus_object_iface_init()
32975 gobject_class->set_property = object_proxy_set_property; in object_proxy_class_init()
32976 gobject_class->get_property = object_proxy_get_property; in object_proxy_class_init()
32980 g_object_class_override_property (gobject_class, 3, "sensor-value"); in object_proxy_class_init()
32981 g_object_class_override_property (gobject_class, 4, "sensor-threshold"); in object_proxy_class_init()
32982 g_object_class_override_property (gobject_class, 5, "sensor-i2c"); in object_proxy_class_init()
32983 g_object_class_override_property (gobject_class, 6, "sensor-match"); in object_proxy_class_init()
32985 g_object_class_override_property (gobject_class, 8, "shared-resource"); in object_proxy_class_init()
32987 g_object_class_override_property (gobject_class, 10, "control-bmc"); in object_proxy_class_init()
32988 g_object_class_override_property (gobject_class, 11, "control-host"); in object_proxy_class_init()
32989 g_object_class_override_property (gobject_class, 12, "control-power"); in object_proxy_class_init()
32990 g_object_class_override_property (gobject_class, 13, "control-checkstop"); in object_proxy_class_init()
32992 g_object_class_override_property (gobject_class, 15, "event-log"); in object_proxy_class_init()
32994 g_object_class_override_property (gobject_class, 17, "flash-control"); in object_proxy_class_init()
32997 g_object_class_override_property (gobject_class, 20, "host-ipmi"); in object_proxy_class_init()
33015 …return OBJECT_PROXY (g_object_new (TYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path",… in object_proxy_new()
33040 iface->interface_added = object_notify; in object_skeleton__g_dbus_object_iface_init()
33041 iface->interface_removed = object_notify; in object_skeleton__g_dbus_object_iface_init()
33452 gobject_class->set_property = object_skeleton_set_property; in object_skeleton_class_init()
33453 gobject_class->get_property = object_skeleton_get_property; in object_skeleton_class_init()
33457 g_object_class_override_property (gobject_class, 3, "sensor-value"); in object_skeleton_class_init()
33458 g_object_class_override_property (gobject_class, 4, "sensor-threshold"); in object_skeleton_class_init()
33459 g_object_class_override_property (gobject_class, 5, "sensor-i2c"); in object_skeleton_class_init()
33460 g_object_class_override_property (gobject_class, 6, "sensor-match"); in object_skeleton_class_init()
33462 g_object_class_override_property (gobject_class, 8, "shared-resource"); in object_skeleton_class_init()
33464 g_object_class_override_property (gobject_class, 10, "control-bmc"); in object_skeleton_class_init()
33465 g_object_class_override_property (gobject_class, 11, "control-host"); in object_skeleton_class_init()
33466 g_object_class_override_property (gobject_class, 12, "control-power"); in object_skeleton_class_init()
33467 g_object_class_override_property (gobject_class, 13, "control-checkstop"); in object_skeleton_class_init()
33469 g_object_class_override_property (gobject_class, 15, "event-log"); in object_skeleton_class_init()
33471 g_object_class_override_property (gobject_class, 17, "flash-control"); in object_skeleton_class_init()
33474 g_object_class_override_property (gobject_class, 20, "host-ipmi"); in object_skeleton_class_init()
33489 return OBJECT_SKELETON (g_object_new (TYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL)); in object_skeleton_new()
33497 … #Hwmon instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Hwmon.top_of_p…
33509 … the #Fan instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Fan.top_of_p…
33521 …e instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorValue.top_of_p…
33525 g_object_set (G_OBJECT (object), "sensor-value", interface_, NULL); in object_skeleton_set_sensor_value()
33533 …stance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorThreshold.top_of_p…
33537 g_object_set (G_OBJECT (object), "sensor-threshold", interface_, NULL); in object_skeleton_set_sensor_threshold()
33545 …I2c instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorI2c.top_of_p…
33549 g_object_set (G_OBJECT (object), "sensor-i2c", interface_, NULL); in object_skeleton_set_sensor_i2c()
33557 …h instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SensorMatch.top_of_p…
33561 g_object_set (G_OBJECT (object), "sensor-match", interface_, NULL); in object_skeleton_set_sensor_match()
33569 …ocess instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Process.top_of_p…
33581 …nstance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-SharedResource.top_of_p…
33585 g_object_set (G_OBJECT (object), "shared-resource", interface_, NULL); in object_skeleton_set_shared_resource()
33593 …ntrol instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Control.top_of_p…
33605 …c instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_p…
33609 g_object_set (G_OBJECT (object), "control-bmc", interface_, NULL); in object_skeleton_set_control_bmc()
33617 … instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Host.top_of_p…
33621 g_object_set (G_OBJECT (object), "control-host", interface_, NULL); in object_skeleton_set_control_host()
33629 …instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Power.top_of_p…
33633 g_object_set (G_OBJECT (object), "control-power", interface_, NULL); in object_skeleton_set_control_power()
33641 …ance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Checkstop.top_of_p…
33645 g_object_set (G_OBJECT (object), "control-checkstop", interface_, NULL); in object_skeleton_set_control_checkstop()
33653 …hdog instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Watchdog.top_of_p…
33665 …tLog instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-EventLog.top_of_p…
33669 g_object_set (G_OBJECT (object), "event-log", interface_, NULL); in object_skeleton_set_event_log()
33677 … #Flash instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Flash.top_of_p…
33689 … instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-FlashControl.top_of_p…
33693 g_object_set (G_OBJECT (object), "flash-control", interface_, NULL); in object_skeleton_set_flash_control()
33701 …Button instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Button.top_of_p…
33713 … the #Led instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-Led.top_of_p…
33725 …Ipmi instance for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-HostIpmi.top_of_p…
33729 g_object_set (G_OBJECT (object), "host-ipmi", interface_, NULL); in object_skeleton_set_host_ipmi()
33733 /* ------------------------------------------------------------------------
33735 * ------------------------------------------------------------------------
33826 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
33834 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
33849 …s", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-fun… in object_manager_client_new()
33881 …* @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bu…
33904 …s", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-fun… in object_manager_client_new_sync()
33916 * @name: A bus name (well-known or unique).
33924 …* When the operation is finished, @callback will be invoked in the thread-default main loop of the…
33939 …user_data, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-pr… in object_manager_client_new_for_bus()
33971 * @name: A bus name (well-known or unique).
33994 …le, error, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-pr… in object_manager_client_new_for_bus_sync()