summaryrefslogtreecommitdiff
path: root/name.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-26 07:02:51 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-26 07:02:51 +0100
commit44d8db9e5aa86165c97289f6c78a7e42bac78362 (patch)
treedc17149a1d8286eea1fb40b101ca2706a5427dc0 /name.h
parent75787bb7136e064ee623aaee00ec76a7f024c91a (diff)
various cleanups
Diffstat (limited to 'name.h')
-rw-r--r--name.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/name.h b/name.h
index 9c638f3f73..8a4c1744f4 100644
--- a/name.h
+++ b/name.h
@@ -75,6 +75,8 @@ enum NameDependency {
NAME_WANTS,
NAME_REQUISITE,
NAME_SOFT_REQUISITE,
+
+ /* Inverse of the above */
NAME_REQUIRED_BY, /* inverse of 'requires' and 'requisite' is 'required_by' */
NAME_SOFT_REQUIRED_BY, /* inverse of 'soft_requires' and 'soft_requisite' is 'soft_required_by' */
NAME_WANTED_BY, /* inverse of 'wants' */
@@ -85,7 +87,9 @@ enum NameDependency {
/* Order */
NAME_BEFORE, /* inverse of before is after and vice versa */
NAME_AFTER,
- _NAME_DEPENDENCY_MAX
+
+ _NAME_DEPENDENCY_MAX,
+ _NAME_DEPENDENCY_INVALID = -1
};
struct Meta {
@@ -230,4 +234,6 @@ char *name_change_suffix(const char *t, const char *suffix);
bool name_job_is_applicable(Name *n, JobType j);
+int name_add_dependency(Name *n, NameDependency d, Name *other);
+
#endif