summaryrefslogtreecommitdiff
path: root/src/host_commands.c
diff options
context:
space:
mode:
authorEvgeniy Alexeev <e.alekseev@k-soft-spb.ru>2022-10-10 17:07:45 +0300
committerEvgeniy Alexeev <e.alekseev@k-soft-spb.ru>2022-10-10 17:07:45 +0300
commit21c36beefd0304a600a2f781a60559f647d569fb (patch)
treee2862ee2d9f3f807487601319055ce726fdd00ad /src/host_commands.c
parentb6f6416fa4dfbff9c677c4491fb42c5d3adb9d44 (diff)
downloadsila-shell-21c36beefd0304a600a2f781a60559f647d569fb.tar.xz
Begin to add variant type
Diffstat (limited to 'src/host_commands.c')
-rw-r--r--src/host_commands.c46
1 files changed, 41 insertions, 5 deletions
diff --git a/src/host_commands.c b/src/host_commands.c
index 6687f02..df2d93a 100644
--- a/src/host_commands.c
+++ b/src/host_commands.c
@@ -1,7 +1,43 @@
#include "host_commands.h"
-static const string_quadruple_t chassis_dbus = {
- "xyz.openbmc_project.State.Chassis",
- "/xyz/openbmc_project/state/chassis0",
- "xyz.openbmc_project.State.Chassis",
- "RequestedPowerTransition"};
+static const string_quadruple_t boot_override_type_dbus = {
+ "xyz.openbmc_project.Settings",
+ "/xyz/openbmc_project/control/host0/boot",
+ "xyz.openbmc_project.Control.Boot.Type",
+ "BootType"};
+
+static const string_quadruple_t boot_override_mode_dbus = {
+ "xyz.openbmc_project.Settings",
+ "/xyz/openbmc_project/control/host0/boot",
+ "xyz.openbmc_project.Control.Boot.Mode",
+ "BootMode"};
+
+static const string_quadruple_t boot_override_source_dbus = {
+ "xyz.openbmc_project.Settings",
+ "/xyz/openbmc_project/control/host0/boot",
+ "xyz.openbmc_project.Control.Boot.Source",
+ "BootSource"};
+
+static const string_quadruple_t boot_override_enable_dbus = {
+ "xyz.openbmc_project.Settings",
+ "/xyz/openbmc_project/control/host0/boot",
+ "xyz.openbmc_project.Object.Enable",
+ "Enabled"};
+
+static const string_quadruple_t boot_override_once_dbus = {
+ "xyz.openbmc_project.Settings",
+ "/xyz/openbmc_project/control/host0/boot/one_time",
+ "xyz.openbmc_project.Object.Enable",
+ "Enabled"};
+
+typedef enum
+{
+ HOST_UNKNOWN=-1,
+ HOST_CD,
+ HOST_USB,
+ HOST_BIOS,
+ HOST_ONE_TIME,
+ HOST_CONTINOUS,
+ HOST_LEGACY,
+ HOST_UEFI
+}host_command_t;