2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2014-02-23 00:46:26 +01:00
|
|
|
#pragma once
|
|
|
|
|
2015-11-30 21:43:37 +01:00
|
|
|
#include <stddef.h>
|
2015-04-10 17:43:04 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2017-07-20 11:38:15 +02:00
|
|
|
#include "string-util.h"
|
|
|
|
|
2014-02-23 00:46:26 +01:00
|
|
|
char *bus_label_escape(const char *s);
|
2015-04-10 17:43:04 +02:00
|
|
|
char *bus_label_unescape_n(const char *f, size_t l);
|
|
|
|
|
|
|
|
static inline char *bus_label_unescape(const char *f) {
|
2017-07-20 11:38:15 +02:00
|
|
|
return bus_label_unescape_n(f, strlen_ptr(f));
|
2015-04-10 17:43:04 +02:00
|
|
|
}
|