]>
Commit | Line | Data |
---|---|---|
9e2f7c11 LP |
1 | /*-*- Mode: C; c-basic-offset: 8 -*-*/ |
2 | ||
3 | #ifndef foounitnamehfoo | |
4 | #define foounitnamehfoo | |
5 | ||
6 | /*** | |
7 | This file is part of systemd. | |
8 | ||
9 | Copyright 2010 Lennart Poettering | |
10 | ||
11 | systemd is free software; you can redistribute it and/or modify it | |
12 | under the terms of the GNU General Public License as published by | |
13 | the Free Software Foundation; either version 2 of the License, or | |
14 | (at your option) any later version. | |
15 | ||
16 | systemd is distributed in the hope that it will be useful, but | |
17 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
19 | General Public License for more details. | |
20 | ||
21 | You should have received a copy of the GNU General Public License | |
22 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
23 | ***/ | |
24 | ||
25 | #include "unit.h" | |
26 | ||
27 | UnitType unit_name_to_type(const char *n); | |
28 | ||
29 | int unit_name_to_instance(const char *n, char **instance); | |
30 | char* unit_name_to_prefix(const char *n); | |
31 | char* unit_name_to_prefix_and_instance(const char *n); | |
32 | ||
33 | bool unit_name_is_valid(const char *n); | |
34 | bool unit_prefix_is_valid(const char *p); | |
35 | bool unit_instance_is_valid(const char *i); | |
36 | ||
37 | char *unit_name_change_suffix(const char *n, const char *suffix); | |
38 | ||
39 | char *unit_name_build(const char *prefix, const char *instance, const char *suffix); | |
40 | char *unit_name_build_escape(const char *prefix, const char *instance, const char *suffix); | |
41 | ||
42 | char *unit_name_escape(const char *f); | |
43 | char *unit_name_unescape(const char *f); | |
44 | ||
45 | bool unit_name_is_template(const char *n); | |
46 | ||
47 | char *unit_name_replace_instance(const char *f, const char *i); | |
48 | ||
49 | char *unit_name_template(const char *f); | |
50 | ||
51 | #endif |