1
1
/*
2
- * Generated by gdbus-codegen 2.42 .2. DO NOT EDIT.
2
+ * Generated by gdbus-codegen 2.40 .2. DO NOT EDIT.
3
3
*
4
4
* The license of this code is the same as for the source it was derived from.
5
5
*/
@@ -1233,7 +1233,6 @@ hwmon_skeleton_notify (GObject *object,
1233
1233
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
1234
1234
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
1235
1235
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _hwmon_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
1236
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _hwmon_emit_changed");
1237
1236
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
1238
1237
g_source_unref (skeleton->priv->changed_properties_idle_source);
1239
1238
}
@@ -3104,7 +3103,6 @@ fan_skeleton_notify (GObject *object,
3104
3103
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
3105
3104
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
3106
3105
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _fan_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
3107
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _fan_emit_changed");
3108
3106
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
3109
3107
g_source_unref (skeleton->priv->changed_properties_idle_source);
3110
3108
}
@@ -5240,7 +5238,6 @@ sensor_value_skeleton_notify (GObject *object,
5240
5238
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
5241
5239
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
5242
5240
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_value_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
5243
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_value_emit_changed");
5244
5241
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
5245
5242
g_source_unref (skeleton->priv->changed_properties_idle_source);
5246
5243
}
@@ -7058,7 +7055,6 @@ sensor_threshold_skeleton_notify (GObject *object,
7058
7055
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
7059
7056
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
7060
7057
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_threshold_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
7061
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_threshold_emit_changed");
7062
7058
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
7063
7059
g_source_unref (skeleton->priv->changed_properties_idle_source);
7064
7060
}
@@ -8245,7 +8241,6 @@ sensor_i2c_skeleton_notify (GObject *object,
8245
8241
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
8246
8242
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
8247
8243
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_i2c_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
8248
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_i2c_emit_changed");
8249
8244
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
8250
8245
g_source_unref (skeleton->priv->changed_properties_idle_source);
8251
8246
}
@@ -9462,7 +9457,6 @@ sensor_match_skeleton_notify (GObject *object,
9462
9457
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
9463
9458
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
9464
9459
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _sensor_match_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
9465
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _sensor_match_emit_changed");
9466
9460
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
9467
9461
g_source_unref (skeleton->priv->changed_properties_idle_source);
9468
9462
}
@@ -11969,7 +11963,6 @@ shared_resource_skeleton_notify (GObject *object,
11969
11963
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
11970
11964
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
11971
11965
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _shared_resource_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
11972
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _shared_resource_emit_changed");
11973
11966
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
11974
11967
g_source_unref (skeleton->priv->changed_properties_idle_source);
11975
11968
}
@@ -13475,7 +13468,6 @@ control_skeleton_notify (GObject *object,
13475
13468
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
13476
13469
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
13477
13470
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _control_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
13478
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _control_emit_changed");
13479
13471
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
13480
13472
g_source_unref (skeleton->priv->changed_properties_idle_source);
13481
13473
}
@@ -13605,6 +13597,19 @@ control_skeleton_new (void)
13605
13597
13606
13598
/* ---- Introspection data for org.openbmc.control.Bmc ---- */
13607
13599
13600
+ static const _ExtendedGDBusMethodInfo _control_bmc_method_info_cold_reset =
13601
+ {
13602
+ {
13603
+ -1,
13604
+ (gchar *) "coldReset",
13605
+ NULL,
13606
+ NULL,
13607
+ NULL
13608
+ },
13609
+ "handle-cold-reset",
13610
+ FALSE
13611
+ };
13612
+
13608
13613
static const _ExtendedGDBusMethodInfo _control_bmc_method_info_warm_reset =
13609
13614
{
13610
13615
{
@@ -13620,6 +13625,7 @@ static const _ExtendedGDBusMethodInfo _control_bmc_method_info_warm_reset =
13620
13625
13621
13626
static const _ExtendedGDBusMethodInfo * const _control_bmc_method_info_pointers[] =
13622
13627
{
13628
+ &_control_bmc_method_info_cold_reset,
13623
13629
&_control_bmc_method_info_warm_reset,
13624
13630
NULL
13625
13631
};
@@ -13678,6 +13684,7 @@ control_bmc_override_properties (GObjectClass *klass, guint property_id_begin)
13678
13684
/**
13679
13685
* ControlBmcIface:
13680
13686
* @parent_iface: The parent interface.
13687
+ * @handle_cold_reset: Handler for the #ControlBmc::handle-cold-reset signal.
13681
13688
* @handle_warm_reset: Handler for the #ControlBmc::handle-warm-reset signal.
13682
13689
*
13683
13690
* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-openbmc-control-Bmc.top_of_page">org.openbmc.control.Bmc</link>.
@@ -13690,6 +13697,28 @@ static void
13690
13697
control_bmc_default_init (ControlBmcIface *iface)
13691
13698
{
13692
13699
/* GObject signals for incoming D-Bus method calls: */
13700
+ /**
13701
+ * ControlBmc::handle-cold-reset:
13702
+ * @object: A #ControlBmc.
13703
+ * @invocation: A #GDBusMethodInvocation.
13704
+ *
13705
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">coldReset()</link> D-Bus method.
13706
+ *
13707
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call control_bmc_complete_cold_reset() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
13708
+ *
13709
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
13710
+ */
13711
+ g_signal_new ("handle-cold-reset",
13712
+ G_TYPE_FROM_INTERFACE (iface),
13713
+ G_SIGNAL_RUN_LAST,
13714
+ G_STRUCT_OFFSET (ControlBmcIface, handle_cold_reset),
13715
+ g_signal_accumulator_true_handled,
13716
+ NULL,
13717
+ g_cclosure_marshal_generic,
13718
+ G_TYPE_BOOLEAN,
13719
+ 1,
13720
+ G_TYPE_DBUS_METHOD_INVOCATION);
13721
+
13693
13722
/**
13694
13723
* ControlBmc::handle-warm-reset:
13695
13724
* @object: A #ControlBmc.
@@ -13714,6 +13743,98 @@ control_bmc_default_init (ControlBmcIface *iface)
13714
13743
13715
13744
}
13716
13745
13746
+ /**
13747
+ * control_bmc_call_cold_reset:
13748
+ * @proxy: A #ControlBmcProxy.
13749
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
13750
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
13751
+ * @user_data: User data to pass to @callback.
13752
+ *
13753
+ * Asynchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">coldReset()</link> D-Bus method on @proxy.
13754
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
13755
+ * You can then call control_bmc_call_cold_reset_finish() to get the result of the operation.
13756
+ *
13757
+ * See control_bmc_call_cold_reset_sync() for the synchronous, blocking version of this method.
13758
+ */
13759
+ void
13760
+ control_bmc_call_cold_reset (
13761
+ ControlBmc *proxy,
13762
+ GCancellable *cancellable,
13763
+ GAsyncReadyCallback callback,
13764
+ gpointer user_data)
13765
+ {
13766
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
13767
+ "coldReset",
13768
+ g_variant_new ("()"),
13769
+ G_DBUS_CALL_FLAGS_NONE,
13770
+ -1,
13771
+ cancellable,
13772
+ callback,
13773
+ user_data);
13774
+ }
13775
+
13776
+ /**
13777
+ * control_bmc_call_cold_reset_finish:
13778
+ * @proxy: A #ControlBmcProxy.
13779
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to control_bmc_call_cold_reset().
13780
+ * @error: Return location for error or %NULL.
13781
+ *
13782
+ * Finishes an operation started with control_bmc_call_cold_reset().
13783
+ *
13784
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
13785
+ */
13786
+ gboolean
13787
+ control_bmc_call_cold_reset_finish (
13788
+ ControlBmc *proxy,
13789
+ GAsyncResult *res,
13790
+ GError **error)
13791
+ {
13792
+ GVariant *_ret;
13793
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
13794
+ if (_ret == NULL)
13795
+ goto _out;
13796
+ g_variant_get (_ret,
13797
+ "()");
13798
+ g_variant_unref (_ret);
13799
+ _out:
13800
+ return _ret != NULL;
13801
+ }
13802
+
13803
+ /**
13804
+ * control_bmc_call_cold_reset_sync:
13805
+ * @proxy: A #ControlBmcProxy.
13806
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
13807
+ * @error: Return location for error or %NULL.
13808
+ *
13809
+ * Synchronously invokes the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">coldReset()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
13810
+ *
13811
+ * See control_bmc_call_cold_reset() for the asynchronous version of this method.
13812
+ *
13813
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
13814
+ */
13815
+ gboolean
13816
+ control_bmc_call_cold_reset_sync (
13817
+ ControlBmc *proxy,
13818
+ GCancellable *cancellable,
13819
+ GError **error)
13820
+ {
13821
+ GVariant *_ret;
13822
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
13823
+ "coldReset",
13824
+ g_variant_new ("()"),
13825
+ G_DBUS_CALL_FLAGS_NONE,
13826
+ -1,
13827
+ cancellable,
13828
+ error);
13829
+ if (_ret == NULL)
13830
+ goto _out;
13831
+ g_variant_get (_ret,
13832
+ "()");
13833
+ g_variant_unref (_ret);
13834
+ _out:
13835
+ return _ret != NULL;
13836
+ }
13837
+
13717
13838
/**
13718
13839
* control_bmc_call_warm_reset:
13719
13840
* @proxy: A #ControlBmcProxy.
@@ -13806,6 +13927,24 @@ control_bmc_call_warm_reset_sync (
13806
13927
return _ret != NULL;
13807
13928
}
13808
13929
13930
+ /**
13931
+ * control_bmc_complete_cold_reset:
13932
+ * @object: A #ControlBmc.
13933
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
13934
+ *
13935
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-openbmc-control-Bmc.coldReset">coldReset()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
13936
+ *
13937
+ * This method will free @invocation, you cannot use it afterwards.
13938
+ */
13939
+ void
13940
+ control_bmc_complete_cold_reset (
13941
+ ControlBmc *object,
13942
+ GDBusMethodInvocation *invocation)
13943
+ {
13944
+ g_dbus_method_invocation_return_value (invocation,
13945
+ g_variant_new ("()"));
13946
+ }
13947
+
13809
13948
/**
13810
13949
* control_bmc_complete_warm_reset:
13811
13950
* @object: A #ControlBmc.
@@ -15985,7 +16124,6 @@ control_host_skeleton_notify (GObject *object,
15985
16124
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
15986
16125
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
15987
16126
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _control_host_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
15988
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _control_host_emit_changed");
15989
16127
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
15990
16128
g_source_unref (skeleton->priv->changed_properties_idle_source);
15991
16129
}
@@ -17651,7 +17789,6 @@ control_power_skeleton_notify (GObject *object,
17651
17789
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
17652
17790
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
17653
17791
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _control_power_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
17654
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _control_power_emit_changed");
17655
17792
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
17656
17793
g_source_unref (skeleton->priv->changed_properties_idle_source);
17657
17794
}
@@ -20171,7 +20308,6 @@ watchdog_skeleton_notify (GObject *object,
20171
20308
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
20172
20309
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
20173
20310
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _watchdog_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
20174
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _watchdog_emit_changed");
20175
20311
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
20176
20312
g_source_unref (skeleton->priv->changed_properties_idle_source);
20177
20313
}
@@ -23620,7 +23756,6 @@ flash_skeleton_notify (GObject *object,
23620
23756
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
23621
23757
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
23622
23758
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _flash_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
23623
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _flash_emit_changed");
23624
23759
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
23625
23760
g_source_unref (skeleton->priv->changed_properties_idle_source);
23626
23761
}
@@ -25289,7 +25424,6 @@ flash_control_skeleton_notify (GObject *object,
25289
25424
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
25290
25425
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
25291
25426
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _flash_control_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
25292
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _flash_control_emit_changed");
25293
25427
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
25294
25428
g_source_unref (skeleton->priv->changed_properties_idle_source);
25295
25429
}
@@ -27074,7 +27208,6 @@ button_skeleton_notify (GObject *object,
27074
27208
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
27075
27209
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
27076
27210
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _button_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
27077
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _button_emit_changed");
27078
27211
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
27079
27212
g_source_unref (skeleton->priv->changed_properties_idle_source);
27080
27213
}
@@ -28888,7 +29021,6 @@ led_skeleton_notify (GObject *object,
28888
29021
skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
28889
29022
g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
28890
29023
g_source_set_callback (skeleton->priv->changed_properties_idle_source, _led_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
28891
- g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _led_emit_changed");
28892
29024
g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
28893
29025
g_source_unref (skeleton->priv->changed_properties_idle_source);
28894
29026
}
0 commit comments