/systemd-251/src/test/ |
D | test-serialize.c | 15 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/ |
D | serialize.h | 11 int serialize_item(FILE *f, const char *key, const char *value); 20 return serialize_item(f, key, yes_no(b)); in serialize_bool()
|
D | serialize.c | 17 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/ |
D | manager-serialize.c | 110 (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()
|
D | target.c | 144 (void) serialize_item(f, "state", target_state_to_string(s->state)); in target_serialize()
|
D | scope.c | 474 (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()
|
D | path.c | 635 (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()
|
D | mount.c | 1240 (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()
|
D | timer.c | 679 (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()
|
D | unit-serialize.c | 30 return serialize_item(f, key, s); in serialize_cgroup_mask() 163 (void) serialize_item(f, "cgroup", u->cgroup_path); in unit_serialize()
|
D | device.c | 298 (void) serialize_item(f, "state", device_state_to_string(d->state)); in device_serialize() 301 (void) serialize_item(f, "found", s); in device_serialize()
|
D | slice.c | 261 (void) serialize_item(f, "state", slice_state_to_string(s->state)); in slice_serialize()
|
D | swap.c | 983 (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()
|
D | automount.c | 869 (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()
|
D | job.c | 1150 (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()
|
D | socket.c | 2556 (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()
|
D | service.c | 2715 (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()
|
D | dbus.c | 1144 (void) serialize_item(f, prefix, n); in bus_track_serialize()
|