summaryrefslogtreecommitdiff
path: root/src/unit-name.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-06 02:33:40 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-06 02:33:40 +0200
commit71fad6751434f06485a744d41be2d807303c1184 (patch)
tree27723f8bbab9a2a808e0beab10c6e2605f74f1de /src/unit-name.h
parent647f1fafb5f456b80bb799d07d345ce7fd2308ee (diff)
systemctl: require correctly formed unit names when enabling units
Diffstat (limited to 'src/unit-name.h')
-rw-r--r--src/unit-name.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unit-name.h b/src/unit-name.h
index 3ad25bac35..a752f3a2c7 100644
--- a/src/unit-name.h
+++ b/src/unit-name.h
@@ -22,15 +22,15 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include "unit.h"
+#include <stdbool.h>
-UnitType unit_name_to_type(const char *n);
+#define UNIT_NAME_MAX 256
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(const char *n);
+bool unit_name_is_valid_no_type(const char *n);
bool unit_prefix_is_valid(const char *p);
bool unit_instance_is_valid(const char *i);