summaryrefslogtreecommitdiff
path: root/src/shared/unit-name.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-10 17:03:11 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-10 17:07:32 +0200
commit5f73969991fa765f2826975c0fc5e47438b5e9ea (patch)
treebd9c5e438951fe0a584f1ad1b88897ceebe8a60a /src/shared/unit-name.h
parent0bf07cb5e4db097fcc25784b491fc4311d20fff2 (diff)
unit-name: remove unit_name_is_valid_no_type() and move unit_name_is_valid() to unit-name.h
Diffstat (limited to 'src/shared/unit-name.h')
-rw-r--r--src/shared/unit-name.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/unit-name.h b/src/shared/unit-name.h
index 4c793c5a7e..cd30d65e3a 100644
--- a/src/shared/unit-name.h
+++ b/src/shared/unit-name.h
@@ -50,10 +50,12 @@ int unit_name_to_instance(const char *n, char **instance);
char* unit_name_to_prefix(const char *n);
char* unit_name_to_prefix_and_instance(const char *n);
-bool unit_name_is_valid_no_type(const char *n, bool template_ok);
+bool unit_name_is_valid(const char *n, bool template_ok);
bool unit_prefix_is_valid(const char *p);
bool unit_instance_is_valid(const char *i);
+UnitType unit_name_to_type(const char *n);
+
char *unit_name_change_suffix(const char *n, const char *suffix);
char *unit_name_build(const char *prefix, const char *instance, const char *suffix);