return mfree(f);
}
-Hashmap* unit_file_list_free(Hashmap *h) {
- return hashmap_free_with_destructor(h, unit_file_list_free_one);
-}
-
DEFINE_TRIVIAL_CLEANUP_FUNC(UnitFileList*, unit_file_list_free_one);
DEFINE_HASH_OPS_WITH_VALUE_DESTRUCTOR(
int unit_file_exists(RuntimeScope scope, const LookupPaths *paths, const char *name);
int unit_file_get_list(RuntimeScope scope, const char *root_dir, Hashmap *h, char **states, char **patterns);
-Hashmap* unit_file_list_free(Hashmap *h);
+
extern const struct hash_ops unit_file_list_hash_ops_free;
InstallChangeType install_changes_add(InstallChange **changes, size_t *n_changes, InstallChangeType type, const char *path, const char *source);