/systemd-251/src/test/ |
D | test-install.c | 29 size_t n_changes = 0; in main() local 55 r = unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 60 r = unit_file_enable(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 63 dump_changes(changes, n_changes); in main() 64 unit_file_changes_free(changes, n_changes); in main() 72 n_changes = 0; in main() 74 r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, 0, NULL, (char**) files, &changes, &n_changes); in main() 77 dump_changes(changes, n_changes); in main() 78 unit_file_changes_free(changes, n_changes); in main() 86 n_changes = 0; in main() [all …]
|
D | test-install-root.c | 24 size_t n_changes = 0; in TEST() local 60 …e(unit_file_mask(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_changes) >= 0); in TEST() 61 assert_se(n_changes == 1); in TEST() 67 unit_file_changes_free(changes, n_changes); in TEST() 68 changes = NULL; n_changes = 0; in TEST() 76 …le_enable(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_changes) == -ERFKILL); in TEST() 77 unit_file_changes_free(changes, n_changes); in TEST() 78 changes = NULL; n_changes = 0; in TEST() 80 …unit_file_unmask(LOOKUP_SCOPE_SYSTEM, 0, root, STRV_MAKE("a.service"), &changes, &n_changes) >= 0); in TEST() 81 assert_se(n_changes == 1); in TEST() [all …]
|
/systemd-251/src/shared/ |
D | install.h | 60 … inline bool unit_file_changes_have_modification(const UnitFileChange* changes, size_t n_changes) { in unit_file_changes_have_modification() argument 61 for (size_t i = 0; i < n_changes; i++) in unit_file_changes_have_modification() 104 size_t *n_changes); 111 size_t *n_changes); 118 size_t *n_changes); 126 size_t *n_changes); 133 size_t *n_changes); 140 size_t *n_changes); 147 size_t *n_changes); 154 size_t *n_changes); [all …]
|
D | install.c | 264 size_t *n_changes, in unit_file_changes_add() argument 272 assert(!changes == !n_changes); in unit_file_changes_add() 282 c = reallocarray(*changes, *n_changes + 1, sizeof(UnitFileChange)); in unit_file_changes_add() 303 c[(*n_changes)++] = (UnitFileChange) { in unit_file_changes_add() 312 void unit_file_changes_free(UnitFileChange *changes, size_t n_changes) { in unit_file_changes_free() argument 313 assert(changes || n_changes == 0); in unit_file_changes_free() 315 for (size_t i = 0; i < n_changes; i++) { in unit_file_changes_free() 323 …ump_changes(int r, const char *verb, const UnitFileChange *changes, size_t n_changes, bool quiet) { in unit_file_dump_changes() argument 326 assert(changes || n_changes == 0); in unit_file_dump_changes() 330 for (size_t i = 0; i < n_changes; i++) { in unit_file_dump_changes() [all …]
|
D | bus-unit-util.h | 28 …dump_unit_file_changes(sd_bus_message *m, bool quiet, UnitFileChange **changes, size_t *n_changes);
|
D | bus-unit-util.c | 2665 …ump_unit_file_changes(sd_bus_message *m, bool quiet, UnitFileChange **changes, size_t *n_changes) { in bus_deserialize_and_dump_unit_file_changes() argument 2672 assert(n_changes); in bus_deserialize_and_dump_unit_file_changes() 2688 r = unit_file_changes_add(changes, n_changes, ch, path, source); in bus_deserialize_and_dump_unit_file_changes() 2699 unit_file_dump_changes(0, NULL, *changes, *n_changes, quiet); in bus_deserialize_and_dump_unit_file_changes()
|
/systemd-251/src/systemctl/ |
D | systemctl-enable.c | 67 size_t n_changes = 0; in verb_enable() local 109 … r = unit_file_enable(arg_scope, flags, arg_root, names, &changes, &n_changes); in verb_enable() 112 … r = unit_file_disable(arg_scope, flags, arg_root, names, &changes, &n_changes); in verb_enable() 114 … r = unit_file_reenable(arg_scope, flags, arg_root, names, &changes, &n_changes); in verb_enable() 117 r = unit_file_link(arg_scope, flags, arg_root, names, &changes, &n_changes); in verb_enable() 119 … r = unit_file_preset(arg_scope, flags, arg_root, names, arg_preset_mode, &changes, &n_changes); in verb_enable() 121 r = unit_file_mask(arg_scope, flags, arg_root, names, &changes, &n_changes); in verb_enable() 123 … r = unit_file_unmask(arg_scope, flags, arg_root, names, &changes, &n_changes); in verb_enable() 125 r = unit_file_revert(arg_scope, arg_root, names, &changes, &n_changes); in verb_enable() 129 unit_file_dump_changes(r, verb, changes, n_changes, arg_quiet); in verb_enable() [all …]
|
D | systemctl-preset-all.c | 12 size_t n_changes = 0; in verb_preset_all() local 16 …reset_all(arg_scope, unit_file_flags_from_args(), arg_root, arg_preset_mode, &changes, &n_changes); in verb_preset_all() 17 unit_file_dump_changes(r, "preset", changes, n_changes, arg_quiet); in verb_preset_all() 45 … r = bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes); in verb_preset_all() 60 unit_file_changes_free(changes, n_changes); in verb_preset_all()
|
D | systemctl-add-dependency.c | 15 size_t n_changes = 0; in verb_add_dependency() local 40 …ndency(arg_scope, unit_file_flags_from_args(), arg_root, names, target, dep, &changes, &n_changes); in verb_add_dependency() 41 unit_file_dump_changes(r, "add dependency on", changes, n_changes, arg_quiet); in verb_add_dependency() 72 … r = bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes); in verb_add_dependency() 87 unit_file_changes_free(changes, n_changes); in verb_add_dependency()
|
D | systemctl-set-default.c | 97 size_t n_changes = 0; in verb_set_default() local 110 … r = unit_file_set_default(arg_scope, UNIT_FILE_FORCE, arg_root, unit, &changes, &n_changes); in verb_set_default() 111 unit_file_dump_changes(r, "set default", changes, n_changes, arg_quiet); in verb_set_default() 130 … r = bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes); in verb_set_default() 157 unit_file_changes_free(changes, n_changes); in verb_set_default()
|
D | systemctl-is-enabled.c | 12 size_t n_changes = 0; in show_installation_targets_client_side() local 21 r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, flags, NULL, p, &changes, &n_changes); in show_installation_targets_client_side() 25 for (size_t i = 0; i < n_changes; i++) in show_installation_targets_client_side()
|
/systemd-251/src/portable/ |
D | portable.c | 821 size_t *n_changes, in portable_changes_add() argument 830 assert(!changes == !n_changes); in portable_changes_add() 840 c = reallocarray(*changes, *n_changes + 1, sizeof(PortableChange)); in portable_changes_add() 859 c[(*n_changes)++] = (PortableChange) { in portable_changes_add() 870 size_t *n_changes, in portable_changes_add_with_prefix() argument 877 assert(!changes == !n_changes); in portable_changes_add_with_prefix() 889 return portable_changes_add(changes, n_changes, type_or_errno, path, source); in portable_changes_add_with_prefix() 892 void portable_changes_free(PortableChange *changes, size_t n_changes) { in portable_changes_free() argument 895 assert(changes || n_changes == 0); in portable_changes_free() 897 for (i = 0; i < n_changes; i++) { in portable_changes_free() [all …]
|
D | portabled-bus.c | 280 size_t n_changes = 0; in method_detach_image() local 342 &n_changes, in method_detach_image() 347 r = reply_portable_changes(message, changes, n_changes); in method_detach_image() 350 portable_changes_free(changes, n_changes); in method_detach_image() 545 …_portable_compose_message(sd_bus_message *reply, const PortableChange *changes, size_t n_changes) { in reply_portable_compose_message() argument 550 assert(changes || n_changes == 0); in reply_portable_compose_message() 556 for (i = 0; i < n_changes; i++) { in reply_portable_compose_message() 575 int reply_portable_changes(sd_bus_message *m, const PortableChange *changes, size_t n_changes) { in reply_portable_changes() argument 585 r = reply_portable_compose_message(reply, changes, n_changes); in reply_portable_changes()
|
D | portabled-image-bus.c | 311 size_t n_changes = 0; in bus_image_common_attach() local 388 &n_changes, in bus_image_common_attach() 393 r = reply_portable_changes(message, changes, n_changes); in bus_image_common_attach() 396 portable_changes_free(changes, n_changes); in bus_image_common_attach() 414 size_t n_changes = 0; in bus_image_method_detach() local 470 &n_changes, in bus_image_method_detach() 475 r = reply_portable_changes(message, changes, n_changes); in bus_image_method_detach() 478 portable_changes_free(changes, n_changes); in bus_image_method_detach() 576 size_t n_changes = 0; in normalize_portable_changes() local 624 changes[n_changes++] = (PortableChange) { in normalize_portable_changes() [all …]
|
D | portable.h | 70 …xtension_images, PortableFlags flags, PortableChange **changes, size_t *n_changes, sd_bus_error *e… 71 …ion_image_paths, PortableFlags flags, PortableChange **changes, size_t *n_changes, sd_bus_error *e… 77 void portable_changes_free(PortableChange *changes, size_t n_changes);
|
D | portabled-bus.h | 10 int reply_portable_changes(sd_bus_message *m, const PortableChange *changes, size_t n_changes);
|
D | portablectl.c | 544 size_t n_changes = 0; in maybe_enable_disable() local 582 (void) bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes); in maybe_enable_disable()
|
/systemd-251/src/core/ |
D | dbus-manager.c | 2159 size_t n_changes) { in install_error() argument 2163 for (size_t i = 0; i < n_changes; i++) in install_error() 2217 unit_file_changes_free(changes, n_changes); in install_error() 2226 size_t n_changes, in reply_unit_file_changes_and_free() argument 2233 if (unit_file_changes_have_modification(changes, n_changes)) { in reply_unit_file_changes_and_free() 2253 for (size_t i = 0; i < n_changes; i++) { in reply_unit_file_changes_and_free() 2274 return install_error(error, 0, changes, n_changes); in reply_unit_file_changes_and_free() 2280 unit_file_changes_free(changes, n_changes); in reply_unit_file_changes_and_free() 2284 unit_file_changes_free(changes, n_changes); in reply_unit_file_changes_and_free() 2291 …FileFlags flags, const char *root_dir, char *files[], UnitFileChange **changes, size_t *n_changes), in method_enable_unit_files_generic() argument [all …]
|
/systemd-251/src/machine/ |
D | machinectl.c | 1626 size_t n_changes = 0; in enable_machine() local 1692 r = bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes); in enable_machine() 1713 unit_file_changes_free(changes, n_changes); in enable_machine()
|