Searched refs:states (Results 1 - 4 of 4) sorted by relevance

/systemd/src/shared/
H A Dsleep-config.h22 int parse_sleep_config(const char *verb, char ***modes, char ***states);
H A Dsleep-config.c48 char **modes, **states; local
70 USE(states, suspend_state);
72 states = strv_new("mem", "standby", "freeze", NULL);
81 USE(states, hibernate_state);
83 states = strv_new("disk", NULL);
92 USE(states, hybrid_state);
94 states = strv_new("disk", NULL);
99 if ((!modes && !streq(verb, "suspend")) || !states) {
101 strv_free(states);
106 *_states = states;
259 _cleanup_strv_free_ char **modes = NULL, **states = NULL; local
[all...]
/systemd/src/sleep/
H A Dsleep.c61 static int write_state(FILE **f, char **states) { argument
65 STRV_FOREACH(state, states) {
85 static int execute(char **modes, char **states) { argument
117 r = write_state(&f, states);
196 _cleanup_strv_free_ char **modes = NULL, **states = NULL; local
207 r = parse_sleep_config(arg_verb, &modes, &states);
211 r = execute(modes, states);
/systemd/src/core/
H A Ddbus-manager.c868 static int list_units_filtered(sd_bus_message *message, void *userdata, sd_bus_error *error, char **states) { argument
902 if (!strv_isempty(states) &&
903 !strv_contains(states, unit_load_state_to_string(u->load_state)) &&
904 !strv_contains(states, unit_active_state_to_string(unit_active_state(u))) &&
905 !strv_contains(states, unit_sub_state_to_string(u)))
946 _cleanup_strv_free_ char **states = NULL; local
949 r = sd_bus_message_read_strv(message, &states);
953 return list_units_filtered(message, userdata, error, states);

Completed in 24 milliseconds