chiark / gitweb /
Prep v239: Uncomment header inclusions that are new or needed now.
[elogind.git] / src / basic / conf-files.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4
5 enum {
6         CONF_FILES_EXECUTABLE    = 1 << 0,
7         CONF_FILES_REGULAR       = 1 << 1,
8         CONF_FILES_DIRECTORY     = 1 << 2,
9         CONF_FILES_BASENAME      = 1 << 3,
10         CONF_FILES_FILTER_MASKED = 1 << 4,
11 };
12
13 int conf_files_list(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dir, ...);
14 int conf_files_list_strv(char ***ret, const char *suffix, const char *root, unsigned flags, const char* const* dirs);
15 int conf_files_list_nulstr(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dirs);
16 int conf_files_insert(char ***strv, const char *root, char **dirs, const char *path);
17 int conf_files_insert_nulstr(char ***strv, const char *root, const char *dirs, const char *path);
18 int conf_files_list_with_replacement(
19                 const char *root,
20                 char **config_dirs,
21                 const char *replacement,
22                 char ***files,
23                 char **replace_file);
24 #if 0 /// UNNEEDED by elogind
25 int conf_files_cat(const char *root, const char *name);
26 #endif // 0