Home
last modified time | relevance | path

Searched refs:serialize_item (Results 1 – 18 of 18) sorted by relevance

/systemd-251/src/test/
Dtest-serialize.c15 TEST(serialize_item) { in TEST() argument
22 assert_se(serialize_item(f, "a", NULL) == 0); in TEST()
23 assert_se(serialize_item(f, "a", "bbb") == 1); in TEST()
24 assert_se(serialize_item(f, "a", "bbb") == 1); in TEST()
25 assert_se(serialize_item(f, "a", long_string) == -EINVAL); in TEST()
26 assert_se(serialize_item(f, long_string, "a") == -EINVAL); in TEST()
27 assert_se(serialize_item(f, long_string, long_string) == -EINVAL); in TEST()
/systemd-251/src/shared/
Dserialize.h11 int serialize_item(FILE *f, const char *key, const char *value);
20 return serialize_item(f, key, yes_no(b)); in serialize_bool()
Dserialize.c17 int serialize_item(FILE *f, const char *key, const char *value) { in serialize_item() function
52 return serialize_item(f, key, c); in serialize_item_escaped()
/systemd-251/src/core/
Dmanager-serialize.c110 (void) serialize_item(f, "show-status-overridden", in manager_serialize()
116 … (void) serialize_item(f, "log-target-override", log_target_to_string(log_get_target())); in manager_serialize()
122 …(void) serialize_item(f, "pretimeout-watchdog-governor-overridden", m->watchdog_pretimeout_governo… in manager_serialize()
145 (void) serialize_item(f, "notify-socket", m->notify_socket); in manager_serialize()
Dtarget.c144 (void) serialize_item(f, "state", target_state_to_string(s->state)); in target_serialize()
Dscope.c474 (void) serialize_item(f, "state", scope_state_to_string(s->state)); in scope_serialize()
478 (void) serialize_item(f, "controller", s->controller); in scope_serialize()
Dpath.c635 (void) serialize_item(f, "state", path_state_to_string(p->state)); in path_serialize()
636 (void) serialize_item(f, "result", path_result_to_string(p->result)); in path_serialize()
Dmount.c1240 (void) serialize_item(f, "state", mount_state_to_string(m->state)); in mount_serialize()
1241 (void) serialize_item(f, "result", mount_result_to_string(m->result)); in mount_serialize()
1242 (void) serialize_item(f, "reload-result", mount_result_to_string(m->reload_result)); in mount_serialize()
1249 … (void) serialize_item(f, "control-command", mount_exec_command_to_string(m->control_command_id)); in mount_serialize()
Dtimer.c679 (void) serialize_item(f, "state", timer_state_to_string(t->state)); in timer_serialize()
680 (void) serialize_item(f, "result", timer_result_to_string(t->result)); in timer_serialize()
Dunit-serialize.c30 return serialize_item(f, key, s); in serialize_cgroup_mask()
163 (void) serialize_item(f, "cgroup", u->cgroup_path); in unit_serialize()
Ddevice.c298 (void) serialize_item(f, "state", device_state_to_string(d->state)); in device_serialize()
301 (void) serialize_item(f, "found", s); in device_serialize()
Dslice.c261 (void) serialize_item(f, "state", slice_state_to_string(s->state)); in slice_serialize()
Dswap.c983 (void) serialize_item(f, "state", swap_state_to_string(s->state)); in swap_serialize()
984 (void) serialize_item(f, "result", swap_result_to_string(s->result)); in swap_serialize()
990 … (void) serialize_item(f, "control-command", swap_exec_command_to_string(s->control_command_id)); in swap_serialize()
Dautomount.c869 (void) serialize_item(f, "state", automount_state_to_string(a->state)); in automount_serialize()
870 (void) serialize_item(f, "result", automount_result_to_string(a->result)); in automount_serialize()
Djob.c1150 (void) serialize_item(f, "job-type", job_type_to_string(j->type)); in job_serialize()
1151 (void) serialize_item(f, "job-state", job_state_to_string(j->state)); in job_serialize()
Dsocket.c2556 (void) serialize_item(f, "state", socket_state_to_string(s->state)); in socket_serialize()
2557 (void) serialize_item(f, "result", socket_result_to_string(s->result)); in socket_serialize()
2565 … (void) serialize_item(f, "control-command", socket_exec_command_to_string(s->control_command_id)); in socket_serialize()
Dservice.c2715 (void) serialize_item(f, "state", service_state_to_string(s->state)); in service_serialize()
2716 (void) serialize_item(f, "result", service_result_to_string(s->result)); in service_serialize()
2717 (void) serialize_item(f, "reload-result", service_result_to_string(s->reload_result)); in service_serialize()
2758 r = serialize_item(f, "accept-socket", UNIT_DEREF(s->accept_socket)->id); in service_serialize()
Ddbus.c1144 (void) serialize_item(f, prefix, n); in bus_track_serialize()