summaryrefslogtreecommitdiff
path: root/src/basic/bus-label.h
blob: 0df46f86bf75b4922feb6bdd03f921174d7b55ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

/***
  This file is part of systemd.

  Copyright 2013 Lennart Poettering
***/

#include <stddef.h>
#include <stdlib.h>
#include <string.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));
}