X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Funit.h;h=8bd81a26d4f14b21ccf24b5806db8564e082416a;hp=f657aea3e2c553be93642eea2715a5adcc10a0b3;hb=8f53c0a906c13a88617db43f6a66bbbd3beffed3;hpb=69dd2852bb2c433b517d89792adb4461a4178aa1 diff --git a/src/unit.h b/src/unit.h index f657aea3e..8bd81a26d 100644 --- a/src/unit.h +++ b/src/unit.h @@ -180,24 +180,30 @@ 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; /* Garbage collect us we nobody wants or requires us anymore */ bool stop_when_unneeded; - /* Refuse manual starting, allow starting only indirectly via dependency. */ - bool only_by_dependency; - /* Create default depedencies */ bool default_dependencies; /* Bring up this unit even if a dependency fails to start */ bool ignore_dependency_failure; - /* 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 */ + /* Refuse manual starting, allow starting only indirectly via dependency. */ + bool refuse_manual_start; + + /* Don't allow the user to stop this unit manually, allow stopping only indirectly via dependency. */ + bool refuse_manual_stop; bool in_load_queue:1; bool in_dbus_queue:1; @@ -205,6 +211,10 @@ struct Meta { bool in_gc_queue:1; bool sent_dbus_new_signal:1; + + bool no_gc:1; + + bool in_audit:1; }; #include "service.h" @@ -413,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); @@ -478,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);