chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd: enable/disable instances of template
[elogind.git]
/
src
/
shared
/
unit-name.h
diff --git
a/src/shared/unit-name.h
b/src/shared/unit-name.h
index c6c09dd31feb5136680594b649f1cb6d2e5c699d..7be346590e645546d2ec5a3f827460e2126f3097 100644
(file)
--- a/
src/shared/unit-name.h
+++ b/
src/shared/unit-name.h
@@
-1,7
+1,6
@@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foounitnamehfoo
-#define foounitnamehfoo
+#pragma once
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-80,6
+79,7
@@
char *unit_name_path_escape(const char *f);
char *unit_name_path_unescape(const char *f);
bool unit_name_is_template(const char *n);
char *unit_name_path_unescape(const char *f);
bool unit_name_is_template(const char *n);
+bool unit_name_is_instance(const char *n);
char *unit_name_replace_instance(const char *f, const char *i);
char *unit_name_replace_instance(const char *f, const char *i);
@@
-92,5
+92,3
@@
char *unit_name_to_path(const char *name);
char *unit_dbus_path_from_name(const char *name);
char *unit_name_mangle(const char *name);
char *unit_dbus_path_from_name(const char *name);
char *unit_name_mangle(const char *name);
-
-#endif