X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Funit.h;h=626bdc43af6b1a793a99d9f0c6011c93940cffa3;hp=4d83309591776f772d6d51064480cf618965be7d;hb=7d17cfbc46306a106dbda0f3e92fbc0792d1e9e9;hpb=57020a3abff20f176e9f0cbb982d7977119d6f08 diff --git a/src/unit.h b/src/unit.h index 4d8330959..626bdc43a 100644 --- a/src/unit.h +++ b/src/unit.h @@ -124,6 +124,10 @@ enum UnitDependency { UNIT_TRIGGERS, UNIT_TRIGGERED_BY, + /* Propagate reloads */ + UNIT_PROPAGATE_RELOAD_TO, + UNIT_PROPAGATE_RELOAD_FROM, + /* Reference information for GC logic */ UNIT_REFERENCES, /* Inverse of 'references' is 'referenced_by' */ UNIT_REFERENCED_BY, @@ -282,6 +286,9 @@ union Unit { struct UnitVTable { const char *suffix; + /* How much memory does an object of this unit type need */ + size_t object_size; + /* Config file sections this unit type understands, separated * by NUL chars */ const char *sections; @@ -431,7 +438,7 @@ DEFINE_CAST(SNAPSHOT, Snapshot); DEFINE_CAST(SWAP, Swap); DEFINE_CAST(PATH, Path); -Unit *unit_new(Manager *m); +Unit *unit_new(Manager *m, size_t size); void unit_free(Unit *u); int unit_add_name(Unit *u, const char *name);