From 2c966c038dc32ef39baa176371395cde4e541d01 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 3 Jul 2010 19:46:38 +0200 Subject: unit: simplify things a little by introducing API to add two dependencies in one step --- src/unit.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/unit.h') 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); -- cgit v1.2.3-54-g00ecf