Merge pull request #14400 from keszybz/alias-check

Alias check rework
This commit is contained in:
Lennart Poettering
2020-01-13 18:03:13 +01:00
committed by GitHub
9 changed files with 321 additions and 27 deletions
+1
View File
@@ -13,6 +13,7 @@ typedef enum UnitNameFlags {
UNIT_NAME_TEMPLATE = 1 << 1, /* Allow foo@.service */
UNIT_NAME_INSTANCE = 1 << 2, /* Allow foo@bar.service */
UNIT_NAME_ANY = UNIT_NAME_PLAIN|UNIT_NAME_TEMPLATE|UNIT_NAME_INSTANCE,
_UNIT_NAME_INVALID = -1,
} UnitNameFlags;
bool unit_name_is_valid(const char *n, UnitNameFlags flags) _pure_;