chiark / gitweb /
0df46f86bf75b4922feb6bdd03f921174d7b55ef
[elogind.git] / src / basic / bus-label.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5   This file is part of systemd.
6
7   Copyright 2013 Lennart Poettering
8 ***/
9
10 #include <stddef.h>
11 #include <stdlib.h>
12 #include <string.h>
13
14 #include "string-util.h"
15
16 char *bus_label_escape(const char *s);
17 char *bus_label_unescape_n(const char *f, size_t l);
18
19 static inline char *bus_label_unescape(const char *f) {
20         return bus_label_unescape_n(f, strlen_ptr(f));
21 }