chiark / gitweb /
add new unit_add_dependency_by_name() call
[elogind.git] / unit.h
diff --git a/unit.h b/unit.h
index 46b3c45becfe5424c5835a98e8c20c4d719202aa..a29c50ed97864c1006528939e73eca44486d2dfa 100644 (file)
--- a/unit.h
+++ b/unit.h
@@ -160,8 +160,6 @@ struct UnitVTable {
         void (*fd_event)(Unit *u, int fd, uint32_t events, Watch *w);
         void (*sigchld_event)(Unit *u, pid_t pid, int code, int status);
         void (*timer_event)(Unit *u, uint64_t n_elapsed, Watch *w);
-
-        void (*retry)(Unit *u);
 };
 
 extern const UnitVTable * const unit_vtable[_UNIT_TYPE_MAX];
@@ -198,6 +196,7 @@ void unit_free(Unit *u);
 
 int unit_add_name(Unit *u, const char *name);
 int unit_add_dependency(Unit *u, UnitDependency d, Unit *other);
+int unit_add_dependency_by_name(Unit *u, UnitDependency d, const char *name);
 
 void unit_add_to_load_queue(Unit *u);