diff options
Diffstat (limited to 'src/host_commands.c')
-rw-r--r-- | src/host_commands.c | 46 |
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; |