11a1589223
Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
24 lines
850 B
C
24 lines
850 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
/***
|
|
This file is part of systemd.
|
|
|
|
Copyright 2010 Lennart Poettering
|
|
***/
|
|
|
|
#include "macro.h"
|
|
|
|
typedef enum ExtractFlags {
|
|
EXTRACT_RELAX = 1,
|
|
EXTRACT_CUNESCAPE = 2,
|
|
EXTRACT_CUNESCAPE_RELAX = 4,
|
|
EXTRACT_QUOTES = 8,
|
|
EXTRACT_DONT_COALESCE_SEPARATORS = 16,
|
|
EXTRACT_RETAIN_ESCAPE = 32,
|
|
} ExtractFlags;
|
|
|
|
int extract_first_word(const char **p, char **ret, const char *separators, ExtractFlags flags);
|
|
int extract_first_word_and_warn(const char **p, char **ret, const char *separators, ExtractFlags flags, const char *unit, const char *filename, unsigned line, const char *rvalue);
|
|
int extract_many_words(const char **p, const char *separators, unsigned flags, ...) _sentinel_;
|