Searched refs:unit_file_get_state (Results 1 - 7 of 7) sorted by relevance

/systemd/src/test/
H A Dtest-install-root.c33 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "a.service", NULL) == -ENOENT);
34 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "b.service", NULL) == -ENOENT);
35 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "c.service", NULL) == -ENOENT);
36 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "d.service", NULL) == -ENOENT);
43 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "a.service", NULL) >= 0);
44 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "a.service", &state) >= 0 && state == UNIT_FILE_DISABLED);
49 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "b.service", NULL) >= 0);
50 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "b.service", &state) >= 0 && state == UNIT_FILE_DISABLED);
55 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "c.service", NULL) >= 0);
56 assert_se(unit_file_get_state(UNIT_FILE_SYSTE
[all...]
H A Dtest-install.c56 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(p->path), &s);
81 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state);
96 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state);
113 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state);
130 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state);
144 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state);
161 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state);
175 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state);
189 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, basename(files2[0]), &state);
203 r = unit_file_get_state(UNIT_FILE_SYSTE
[all...]
/systemd/src/shared/
H A Dinstall.h139 int unit_file_get_state(UnitFileScope scope, const char *root_dir, const char *filename, UnitFileState *ret);
H A Dinstall.c2048 int unit_file_get_state( function
/systemd/src/core/
H A Ddbus-manager.c1519 r = unit_file_get_state(scope, NULL, name, &state);
H A Dunit.c3164 r = unit_file_get_state(
/systemd/src/systemctl/
H A Dsystemctl.c5726 r = unit_file_get_state(arg_scope, arg_root, *name, &state);

Completed in 103 milliseconds