Searched defs:n_changes (Results 1 - 6 of 6) sorted by relevance

/systemd/src/test/
H A Dtest-install.c46 unsigned n_changes = 0; local
70 r = unit_file_enable(UNIT_FILE_SYSTEM, false, NULL, (char**) files, false, &changes, &n_changes);
75 r = unit_file_enable(UNIT_FILE_SYSTEM, false, NULL, (char**) files, false, &changes, &n_changes);
78 dump_changes(changes, n_changes);
79 unit_file_changes_free(changes, n_changes);
88 n_changes = 0;
90 r = unit_file_disable(UNIT_FILE_SYSTEM, false, NULL, (char**) files, &changes, &n_changes);
93 dump_changes(changes, n_changes);
94 unit_file_changes_free(changes, n_changes);
102 n_changes
[all...]
H A Dtest-install-root.c31 unsigned n_changes = 0; local
65 assert_se(unit_file_mask(UNIT_FILE_SYSTEM, false, root, STRV_MAKE("a.service"), false, &changes, &n_changes) >= 0);
66 assert_se(n_changes == 1);
72 unit_file_changes_free(changes, n_changes);
73 changes = NULL; n_changes = 0;
81 assert_se(unit_file_enable(UNIT_FILE_SYSTEM, false, root, STRV_MAKE("a.service"), false, &changes, &n_changes) == -ESHUTDOWN);
82 unit_file_changes_free(changes, n_changes);
83 changes = NULL; n_changes = 0;
85 assert_se(unit_file_unmask(UNIT_FILE_SYSTEM, false, root, STRV_MAKE("a.service"), &changes, &n_changes) >= 0);
86 assert_se(n_changes
170 unsigned n_changes = 0, i; local
310 unsigned n_changes = 0; local
343 unsigned n_changes = 0; local
370 unsigned n_changes = 0; local
476 unsigned n_changes = 0; local
525 unsigned n_changes = 0, i; local
[all...]
/systemd/src/core/
H A Ddbus-manager.c1568 unsigned n_changes) {
1574 if (n_changes > 0) {
1594 for (i = 0; i < n_changes; i++) {
1608 unit_file_changes_free(changes, n_changes);
1612 unit_file_changes_free(changes, n_changes);
1620 int (*call)(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes),
1626 unsigned n_changes = 0; local
1649 r = call(scope, runtime, NULL, l, force, &changes, &n_changes);
1655 return reply_unit_file_changes_and_free(m, message, carries_install_info ? r : -1, changes, n_changes);
1670 static int unit_file_preset_without_mode(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) { argument
1563 reply_unit_file_changes_and_free( Manager *m, sd_bus_message *message, int carries_install_info, UnitFileChange *changes, unsigned n_changes) argument
1616 method_enable_unit_files_generic( sd_bus_message *message, Manager *m, const char *verb, int (*call)(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes), bool carries_install_info, sd_bus_error *error) argument
1686 unsigned n_changes = 0; local
1727 method_disable_unit_files_generic( sd_bus_message *message, Manager *m, const char *verb, int (*call)(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], UnitFileChange **changes, unsigned *n_changes), sd_bus_error *error) argument
1736 unsigned n_changes = 0; local
1776 unsigned n_changes = 0; local
1810 unsigned n_changes = 0; local
1857 unsigned n_changes = 0; local
[all...]
/systemd/src/shared/
H A Dinstall.c217 unsigned *n_changes,
226 assert(!changes == !n_changes);
231 c = realloc(*changes, (*n_changes + 1) * sizeof(UnitFileChange));
236 i = *n_changes;
256 *n_changes = i+1;
260 void unit_file_changes_free(UnitFileChange *changes, unsigned n_changes) { argument
263 assert(changes || n_changes == 0);
268 for (i = 0; i < n_changes; i++) {
281 unsigned *n_changes) {
296 unit_file_changes_add(changes, n_changes, UNIT_FILE_SYMLIN
215 unit_file_changes_add( UnitFileChange **changes, unsigned *n_changes, UnitFileChangeType type, const char *path, const char *source) argument
276 create_symlink( const char *old_path, const char *new_path, bool force, UnitFileChange **changes, unsigned *n_changes) argument
351 remove_marked_symlinks_fd( Set *remove_symlinks_to, int fd, const char *path, const char *config_path, bool *restart, UnitFileChange **changes, unsigned *n_changes) argument
464 remove_marked_symlinks( Set *remove_symlinks_to, const char *config_path, UnitFileChange **changes, unsigned *n_changes) argument
1245 install_info_symlink_alias( UnitFileInstallInfo *i, const char *config_path, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1277 install_info_symlink_wants( UnitFileInstallInfo *i, const char *config_path, char **list, const char *suffix, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1334 install_info_symlink_link( UnitFileInstallInfo *i, const LookupPaths *paths, const char *config_path, const char *root_dir, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1362 install_info_apply( UnitFileInstallInfo *i, const LookupPaths *paths, const char *config_path, const char *root_dir, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1397 install_context_apply( UnitFileScope scope, InstallContext *c, const LookupPaths *paths, const char *config_path, const char *root_dir, bool force, SearchFlags flags, UnitFileChange **changes, unsigned *n_changes) argument
1494 unit_file_mask( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1540 unit_file_unmask( UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes) argument
1619 unit_file_link( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1705 unit_file_add_dependency( UnitFileScope scope, bool runtime, const char *root_dir, char **files, const char *target, UnitDependency dep, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1782 unit_file_enable( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1831 unit_file_disable( UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes) argument
1877 unit_file_reenable( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument
1905 unit_file_set_default( UnitFileScope scope, const char *root_dir, const char *name, bool force, UnitFileChange **changes, unsigned *n_changes) argument
2161 execute_preset( UnitFileScope scope, InstallContext *plus, InstallContext *minus, const LookupPaths *paths, const char *config_path, const char *root_dir, char **files, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes) argument
2241 unit_file_preset( UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes) argument
2285 unit_file_preset_all( UnitFileScope scope, bool runtime, const char *root_dir, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes) argument
[all...]
H A Dbus-util.c2179 int bus_deserialize_and_dump_unit_file_changes(sd_bus_message *m, bool quiet, UnitFileChange **changes, unsigned *n_changes) { argument
2195 r = unit_file_changes_add(changes, n_changes, streq(type, "symlink") ? UNIT_FILE_SYMLINK : UNIT_FILE_UNLINK, path, source);
/systemd/src/systemctl/
H A Dsystemctl.c1973 static void dump_unit_file_changes(const UnitFileChange *changes, unsigned n_changes) { argument
1976 assert(changes || n_changes == 0);
1978 for (i = 0; i < n_changes; i++) {
1999 unsigned n_changes = 0; local
2001 r = unit_file_set_default(arg_scope, arg_root, unit, true, &changes, &n_changes);
2006 dump_unit_file_changes(changes, n_changes);
2008 unit_file_changes_free(changes, n_changes);
5381 unsigned n_changes = 0; local
5403 r = unit_file_enable(arg_scope, arg_runtime, arg_root, names, arg_force, &changes, &n_changes);
5406 r = unit_file_disable(arg_scope, arg_runtime, arg_root, names, &changes, &n_changes);
5585 unsigned n_changes = 0; local
5646 unsigned n_changes = 0; local
[all...]

Completed in 1113 milliseconds