From 3ecaa09bccd8a59c9f1e06756a1334a162206dc4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 23 Apr 2013 15:53:16 -0300 Subject: unit: rework trigger dependency logic Instead of having explicit type-specific callbacks that inform the triggering unit when a triggered unit changes state, make this generic so that state changes are forwarded betwee any triggered and triggering unit. Also, get rid of UnitRef references from automount, timer, path units, to the units they trigger and rely exclsuively on UNIT_TRIGGER type dendencies. --- src/core/path.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/core/path.h') diff --git a/src/core/path.h b/src/core/path.h index 645feef191..974041539b 100644 --- a/src/core/path.h +++ b/src/core/path.h @@ -80,8 +80,6 @@ struct Path { LIST_HEAD(PathSpec, specs); - UnitRef unit; - PathState state, deserialized_state; bool inotify_triggered; @@ -92,8 +90,6 @@ struct Path { PathResult result; }; -void path_unit_notify(Unit *u, UnitActiveState new_state); - /* Called from the mount code figure out if a mount is a dependency of * any of the paths of this path object */ int path_add_one_mount_link(Path *p, Mount *m); -- cgit v1.2.3-54-g00ecf