X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=unit.h;h=2433cc7d7cf7e1ca6afcf436d63e898a6e2f358c;hb=ef734fd6c2ec4e5602bbfe2a0d26dcf39c14d2bf;hp=3e42ebe9006644206a4f77f66cac3342a9c28410;hpb=38a4d4f089df02ff79b5f560f2b11631e0a6a4f9;p=elogind.git diff --git a/unit.h b/unit.h index 3e42ebe90..2433cc7d7 100644 --- a/unit.h +++ b/unit.h @@ -14,14 +14,11 @@ typedef enum UnitLoadState UnitLoadState; typedef enum UnitActiveState UnitActiveState; typedef enum UnitDependency UnitDependency; -#include "job.h" -#include "manager.h" #include "set.h" #include "util.h" #include "list.h" #include "socket-util.h" #include "execute.h" -#include "util.h" #define UNIT_NAME_MAX 128 #define DEFAULT_TIMEOUT_USEC (20*USEC_PER_SEC) @@ -92,6 +89,9 @@ enum UnitDependency { _UNIT_DEPENDENCY_INVALID = -1 }; +#include "manager.h" +#include "job.h" + struct Meta { Manager *manager; UnitType type; @@ -116,6 +116,9 @@ struct Meta { /* Load queue */ LIST_FIELDS(Meta, load_queue); + + /* Per type list */ + LIST_FIELDS(Meta, units_per_type); }; #include "service.h"