X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Funit.h;h=8bd81a26d4f14b21ccf24b5806db8564e082416a;hb=3059b1c1f414300332320f286bb458531394f0b0;hp=00e929ac4e21e3fa8ed1b3b8e6d1e6eee04f9783;hpb=6c073082e7e3859cb6020db8c548325f342b7ba6;p=elogind.git diff --git a/src/unit.h b/src/unit.h index 00e929ac4..8bd81a26d 100644 --- a/src/unit.h +++ b/src/unit.h @@ -180,6 +180,13 @@ struct Meta { /* Used during GC sweeps */ unsigned gc_marker; + /* 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 */ + + /* Error code when we didn't manage to load the unit (negative) */ + int load_error; + /* If we go down, pull down everything that depends on us, too */ bool recursive_stop; @@ -198,10 +205,6 @@ struct Meta { /* Don't allow the user to stop this unit manually, allow stopping only indirectly via dependency. */ bool refuse_manual_stop; - /* 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; @@ -210,6 +213,8 @@ struct Meta { bool sent_dbus_new_signal:1; bool no_gc:1; + + bool in_audit:1; }; #include "service.h" @@ -418,7 +423,6 @@ Unit *unit_follow_merge(Unit *u); int unit_load_fragment_and_dropin(Unit *u); int unit_load_fragment_and_dropin_optional(Unit *u); -int unit_load_nop(Unit *u); int unit_load(Unit *unit); const char *unit_description(Unit *u); @@ -483,9 +487,6 @@ void unit_reset_maintenance(Unit *u); Unit *unit_following(Unit *u); -const char *unit_type_to_string(UnitType i); -UnitType unit_type_from_string(const char *s); - const char *unit_load_state_to_string(UnitLoadState i); UnitLoadState unit_load_state_from_string(const char *s);