diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-03 14:26:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-03 14:27:02 +0200 |
commit | cca098b09535f58c638ed41310be60504be49bc4 (patch) | |
tree | 2edbf85ba3e103434dec0760ac393c6bc8687bd4 /src/unit.h | |
parent | a4ddf82766c41627bd94c609bb55983f4b81814f (diff) |
unit: serialize jobs in addition to units
Diffstat (limited to 'src/unit.h')
-rw-r--r-- | src/unit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unit.h b/src/unit.h index d3e6e8902d..fdf1b36914 100644 --- a/src/unit.h +++ b/src/unit.h @@ -185,6 +185,10 @@ struct Meta { /* Garbage collect us we nobody wants or requires us anymore */ bool stop_when_unneeded; + /* When deserializing, temporarily store the job type for this + * unit here, if there was a job scheduled */ + JobType deserialized_job; + bool in_load_queue:1; bool in_dbus_queue:1; bool in_cleanup_queue:1; @@ -437,6 +441,8 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds); int unit_add_node_link(Unit *u, const char *what, bool wants); +int unit_coldplug(Unit *u); + const char *unit_type_to_string(UnitType i); UnitType unit_type_from_string(const char *s); |