chiark / gitweb /
add basic udev device enumeration module
[elogind.git] / unit.h
diff --git a/unit.h b/unit.h
index 5321d5f1a36950f5e314f5fa6f3c0719b8b3ed4c..7ab2ccdfbcef004f7b9d0592094150cd2cda3c42 100644 (file)
--- a/unit.h
+++ b/unit.h
@@ -160,6 +160,9 @@ 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);
+
+        int (*enumerate)(Manager *m);
+        void (*shutdown)(Manager *m);
 };
 
 extern const UnitVTable * const unit_vtable[_UNIT_TYPE_MAX];
@@ -235,5 +238,6 @@ bool unit_job_is_applicable(Unit *u, JobType j);
 const char *unit_path(void);
 int set_unit_path(const char *p);
 
+char *unit_name_escape_path(const char *path, const char *suffix);
 
 #endif