diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-04-02 11:05:44 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-19 16:49:41 +0200 |
commit | b124d3f2ce87cc71065fde589caafd5ceb4764b6 (patch) | |
tree | 98b5f4ef4e4b7919afc416647ad12a947cf6aea5 /configure | |
parent | 69de5c16ff89050bc5b4cc9e02eb8e8d082a641a (diff) | |
download | systemd-b124d3f2ce87cc71065fde589caafd5ceb4764b6.tar.gz |
basic/unit-name: allow unit_name_to_instance() to be used to classify units
This could already be done by calling unit_name_is_*(), but if we don't know
if the argument is a valid unit name, it is more convenient to have a single
function which returns the type or possibly an error if the unit name is not
valid.
The values in the enum are sorted "by length". Not really important, but it
seems more natural to me.
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions