Home
last modified time | relevance | path

Searched refs:n_changes (Results 1 – 19 of 19) sorted by relevance

/systemd-251/src/test/
Dtest-install.c29 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 …]
Dtest-install-root.c24 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/
Dinstall.h60 … 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 …]
Dinstall.c264 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 …]
Dbus-unit-util.h28 …dump_unit_file_changes(sd_bus_message *m, bool quiet, UnitFileChange **changes, size_t *n_changes);
Dbus-unit-util.c2665 …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/
Dsystemctl-enable.c67 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 …]
Dsystemctl-preset-all.c12 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()
Dsystemctl-add-dependency.c15 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()
Dsystemctl-set-default.c97 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()
Dsystemctl-is-enabled.c12 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/
Dportable.c821 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 …]
Dportabled-bus.c280 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()
Dportabled-image-bus.c311 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 …]
Dportable.h70 …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);
Dportabled-bus.h10 int reply_portable_changes(sd_bus_message *m, const PortableChange *changes, size_t n_changes);
Dportablectl.c544 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/
Ddbus-manager.c2159 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/
Dmachinectl.c1626 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()