Searched refs:UNIT_NAME_INSTANCE (Results 1 - 10 of 10) sorted by relevance

/systemd/src/test/
H A Dtest-unit-name.c45 assert_se(!unit_name_is_valid("foo.service", UNIT_NAME_INSTANCE));
47 assert_se(!unit_name_is_valid("foo.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE));
51 assert_se(unit_name_is_valid("foo@bar.service", UNIT_NAME_INSTANCE));
53 assert_se(unit_name_is_valid("foo@bar.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE));
57 assert_se(!unit_name_is_valid("foo@.service", UNIT_NAME_INSTANCE));
59 assert_se(unit_name_is_valid("foo@.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE));
/systemd/src/basic/
H A Dunit-name.h263 UNIT_NAME_INSTANCE = 2, /* Allow foo@bar.service */ enumerator in enum:UnitNameFlags
265 UNIT_NAME_ANY = UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE,
H A Dunit-name.c56 assert((flags & ~(UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE)) == 0);
90 if (flags & UNIT_NAME_INSTANCE)
466 if (!unit_name_is_valid(f, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE))
495 if (!unit_name_is_valid(f, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE))
H A Dcgroup-util.c1265 if (!unit_name_is_valid(c, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE))
/systemd/src/shared/
H A Ddropin.c202 if (unit_name_is_valid(name, UNIT_NAME_INSTANCE)) {
H A Dinstall.c1012 } else if (unit_name_is_valid(info->name, UNIT_NAME_INSTANCE)) {
1014 if (!unit_name_is_valid(bn, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE))
1081 if (unit_name_is_valid(info->name, UNIT_NAME_INSTANCE)) {
1188 if (unit_name_is_valid(i->name, UNIT_NAME_INSTANCE) &&
/systemd/src/dbus1-generator/
H A Ddbus1-generator.c192 if (!unit_name_is_valid(service, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) {
/systemd/src/core/
H A Ddbus-unit.c1148 if (!unit_name_is_valid(other, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE))
H A Dmanager.c1336 if (t == _UNIT_TYPE_INVALID || !unit_name_is_valid(name, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE))
H A Dunit.c180 if (!unit_name_is_valid(s, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE))

Completed in 72 milliseconds