summaryrefslogtreecommitdiff
path: root/src/basic/bus-label.h
blob: 446daba7f267af0f8071414853a998fe307d11ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include <stddef.h>
#include <stdlib.h>

#include "string-util.h"

char *bus_label_escape(const char *s);
char *bus_label_unescape_n(const char *f, size_t l);

static inline char *bus_label_unescape(const char *f) {
        return bus_label_unescape_n(f, strlen_ptr(f));
}