/systemd/src/test/ |
H A D | test-install.c | 45 UnitFileChange *changes = NULL; 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); 87 changes = NULL; 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); 101 changes [all...] |
H A D | test-install-root.c | 30 UnitFileChange *changes = NULL; local 65 assert_se(unit_file_mask(UNIT_FILE_SYSTEM, false, root, STRV_MAKE("a.service"), false, &changes, &n_changes) >= 0); 67 assert_se(changes[0].type == UNIT_FILE_SYMLINK); 68 assert_se(streq(changes[0].source, "/dev/null")); 70 assert_se(streq(changes[0].path, p)); 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 169 UnitFileChange *changes = NULL; local 309 UnitFileChange *changes = NULL; local 342 UnitFileChange *changes = NULL; local 369 UnitFileChange *changes = NULL; local 475 UnitFileChange *changes = NULL; local 524 UnitFileChange *changes = NULL; local [all...] |
/systemd/src/shared/ |
H A D | install.h | 126 int unit_file_enable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 127 int unit_file_disable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes); 128 int unit_file_reenable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 129 int unit_file_link(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 130 int unit_file_preset(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes); 131 int unit_file_preset_all(UnitFileScope scope, bool runtime, const char *root_dir, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes); 132 int unit_file_mask(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 133 int unit_file_unmask(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes); 134 int unit_file_set_default(UnitFileScope scope, const char *root_dir, const char *file, bool force, UnitFileChange **changes, unsigned *n_changes); 136 int unit_file_add_dependency(UnitFileScope scope, bool runtime, const char *root_dir, char **files, const char *target, UnitDependency dep, bool force, UnitFileChange **changes, unsigne [all...] |
H A D | install.c | 216 UnitFileChange **changes, 226 assert(!changes == !n_changes); 228 if (!changes) 231 c = realloc(*changes, (*n_changes + 1) * sizeof(UnitFileChange)); 235 *changes = c; 260 void unit_file_changes_free(UnitFileChange *changes, unsigned n_changes) { argument 263 assert(changes || n_changes == 0); 265 if (!changes) 269 free(changes[i].path); 270 free(changes[ 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 D | bus-util.h | 188 int bus_deserialize_and_dump_unit_file_changes(sd_bus_message *m, bool quiet, UnitFileChange **changes, unsigned *n_changes);
|
H A D | bus-util.c | 2179 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/core/ |
H A D | dbus-manager.c | 1567 UnitFileChange *changes, 1597 unit_file_change_type_to_string(changes[i].type), 1598 changes[i].path, 1599 changes[i].source); 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), 1625 UnitFileChange *changes = NULL; 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_change 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 1670 unit_file_preset_without_mode(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument 1685 UnitFileChange *changes = NULL; 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 1735 UnitFileChange *changes = NULL; local 1775 UnitFileChange *changes = NULL; local 1809 UnitFileChange *changes = NULL; local 1856 UnitFileChange *changes = NULL; local [all...] |
/systemd/src/systemctl/ |
H A D | systemctl.c | 1973 static void dump_unit_file_changes(const UnitFileChange *changes, unsigned n_changes) { argument 1976 assert(changes || n_changes == 0); 1979 if (changes[i].type == UNIT_FILE_SYMLINK) 1980 log_info("Created symlink %s, pointing to %s.", changes[i].path, changes[i].source); 1982 log_info("Removed symlink %s.", changes[i].path); 1998 UnitFileChange *changes = NULL; 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_change 5380 UnitFileChange *changes = NULL; local 5584 UnitFileChange *changes = NULL; local 5645 UnitFileChange *changes = NULL; local [all...] |