summaryrefslogtreecommitdiff
path: root/manager.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-29 03:18:09 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-29 03:18:09 +0100
commitf50e0a012340fa8dfe6ec7f0cd869f5f3a052d7a (patch)
tree79ef58ce7acbc8dffcb0af8284a0f4e5922bbe88 /manager.h
parentb08d03ffe58332f590aae5c78a85e4fc0b8588ce (diff)
implement coldpluggin
Diffstat (limited to 'manager.h')
-rw-r--r--manager.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/manager.h b/manager.h
index 64c9b80641..793a55fb45 100644
--- a/manager.h
+++ b/manager.h
@@ -30,14 +30,12 @@ struct Watch {
#include "list.h"
#include "set.h"
-typedef enum SpecialUnit {
- SPECIAL_SYSLOG_SERVICE,
- SPECIAL_DBUS_SERVICE,
- SPECIAL_LOGGER_SOCKET,
- SPECIAL_CTRL_ALT_DEL_TARGET,
- SPECIAL_KBREQUEST_TARGET,
- _SPECIAL_UNIT_MAX
-} SpecialUnit;
+#define SPECIAL_DEFAULT_TARGET "default.target"
+#define SPECIAL_SYSLOG_SERVICE "syslog.service"
+#define SPECIAL_DBUS_SERVICE "messagebus.service"
+#define SPECIAL_LOGGER_SOCKET "systemd-logger.socket"
+#define SPECIAL_KBREQUEST_TARGET "kbrequest.target"
+#define SPECIAL_CTRL_ALT_DEL_TARGET "ctrl-alt-del.target"
struct Manager {
uint32_t current_job_id;
@@ -69,14 +67,14 @@ struct Manager {
Watch signal_watch;
- Unit *special_units[_SPECIAL_UNIT_MAX]; /* some special units */
-
struct udev* udev;
};
Manager* manager_new(void);
void manager_free(Manager *m);
+int manager_coldplug(Manager *m);
+
Job *manager_get_job(Manager *m, uint32_t id);
Unit *manager_get_unit(Manager *m, const char *name);
@@ -90,7 +88,9 @@ void manager_transaction_unlink_job(Manager *m, Job *j);
void manager_clear_jobs(Manager *m);
+void manager_dispatch_load_queue(Manager *m);
void manager_dispatch_run_queue(Manager *m);
+
int manager_loop(Manager *m);
#endif