Lines Matching defs:state
37 static void slice_set_state(Slice *t, SliceState state) {
41 old_state = t->state;
42 t->state = state;
44 if (state != old_state)
48 slice_state_to_string(state));
50 unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], true);
159 assert(t->state == SLICE_DEAD);
161 if (t->deserialized_state != t->state)
175 prefix, slice_state_to_string(t->state));
184 assert(t->state == SLICE_DEAD);
197 assert(t->state == SLICE_ACTIVE);
217 unit_serialize_item(u, f, "state", slice_state_to_string(s->state));
229 if (streq(key, "state")) {
230 SliceState state;
232 state = slice_state_from_string(value);
233 if (state < 0)
234 log_debug("Failed to parse state value %s", value);
236 s->deserialized_state = state;
247 return state_translation_table[SLICE(u)->state];
253 return slice_state_to_string(SLICE(u)->state);