chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit: make sure deserialized_job's type is known
[elogind.git]
/
src
/
unit.h
diff --git
a/src/unit.h
b/src/unit.h
index d3e6e8902dffff15be0fec254735576e592a8218..3a828e6995568dad0173130dbee7b50dd2313d42 100644
(file)
--- 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;
/* 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 */
+ int deserialized_job; /* This is actually of type JobType */
+
bool in_load_queue:1;
bool in_dbus_queue:1;
bool in_cleanup_queue:1;
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_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);
const char *unit_type_to_string(UnitType i);
UnitType unit_type_from_string(const char *s);