diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-03 19:46:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-03 19:46:38 +0200 |
commit | 2c966c038dc32ef39baa176371395cde4e541d01 (patch) | |
tree | 39f5104335943ad00f5f272e6d3d9de58fa8fae6 /src/unit.h | |
parent | c5da34ef1ba450351638be0d71bddb54677a4d6e (diff) |
unit: simplify things a little by introducing API to add two dependencies in one step
Diffstat (limited to 'src/unit.h')
-rw-r--r-- | src/unit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unit.h b/src/unit.h index aa80aadb1b..d3dd5decd2 100644 --- a/src/unit.h +++ b/src/unit.h @@ -367,8 +367,13 @@ void unit_free(Unit *u); int unit_add_name(Unit *u, const char *name); int unit_add_dependency(Unit *u, UnitDependency d, Unit *other, bool add_reference); +int unit_add_two_dependencies(Unit *u, UnitDependency d, UnitDependency e, Unit *other, bool add_reference); + int unit_add_dependency_by_name(Unit *u, UnitDependency d, const char *name, const char *filename, bool add_reference); +int unit_add_two_dependencies_by_name(Unit *u, UnitDependency d, UnitDependency e, const char *name, const char *path, bool add_reference); + int unit_add_dependency_by_name_inverse(Unit *u, UnitDependency d, const char *name, const char *filename, bool add_reference); +int unit_add_two_dependencies_by_name_inverse(Unit *u, UnitDependency d, UnitDependency e, const char *name, const char *path, bool add_reference); int unit_add_exec_dependencies(Unit *u, ExecContext *c); |