summaryrefslogtreecommitdiff
path: root/src/power_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/power_commands.c')
-rw-r--r--src/power_commands.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/power_commands.c b/src/power_commands.c
index 3e63e23..e91b31d 100644
--- a/src/power_commands.c
+++ b/src/power_commands.c
@@ -37,7 +37,7 @@ typedef enum
POWER_RESET_FORCE
}power_command_t;
-const command_dbus_path_t power_command_paths[] = {
+static const command_dbus_path_t power_command_paths[] = {
{ POWER_ON_GRACEFUL, &host_dbus },
{ POWER_ON_FORCE, &host_dbus },
{ POWER_OFF_GRACEFUL, &host_dbus },
@@ -47,7 +47,7 @@ const command_dbus_path_t power_command_paths[] = {
{ 0, NULL }
};
-const command_dbus_member_t power_command_values[] = {
+static const command_dbus_member_t power_command_values[] = {
{ POWER_ON_GRACEFUL, {.type="s", .string="xyz.openbmc_project.State.Host.Transition.On" }},
{ POWER_ON_FORCE, {.type="s", .string="xyz.openbmc_project.State.Host.Transition.On" }},
{ POWER_OFF_GRACEFUL, {.type="s", .string="xyz.openbmc_project.State.Host.Transition.Off" }},
@@ -67,7 +67,7 @@ typedef enum
}power_policy_command_t;
-universal_command_t power_commands[] = {
+static universal_command_t power_commands[] = {
{ "on-graceful", POWER_ON_GRACEFUL, "Graceful Power On" },
{ "on", POWER_ON_GRACEFUL, "Graceful Power On" },
{ "on-force", POWER_ON_FORCE, "Force Power On" },
@@ -80,21 +80,21 @@ universal_command_t power_commands[] = {
{ NULL, 0, NULL }
};
-const universal_command_t power_policy_commands[] = {
+static const universal_command_t power_policy_commands[] = {
{"always-on", POWER_POLICY_ON, "Server is always ON"},
{"always-off", POWER_POLICY_OFF, "Server is always ON"},
{"restore", POWER_POLICY_RESTORE, "Server restores previous state"},
{ NULL, 0, NULL }
};
-const command_dbus_path_t power_command_policy_paths[] = {
+static const command_dbus_path_t power_command_policy_paths[] = {
{ POWER_POLICY_ON, &policy_dbus },
{ POWER_POLICY_OFF, &policy_dbus },
{ POWER_POLICY_RESTORE, &policy_dbus },
{ 0, NULL }
};
-const command_dbus_member_t power_command_policy_values[] = {
+static const command_dbus_member_t power_command_policy_values[] = {
{ POWER_POLICY_ON, {.type="s", .string="xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOn" }},
{ POWER_POLICY_OFF, {.type="s", .string="xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOff" }},
{ POWER_POLICY_RESTORE, {.type="s", .string="xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore" }},