aboutsummaryrefslogtreecommitdiff
path: root/include/io/dir_tree_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/io/dir_tree_iterator.h')
-rw-r--r--include/io/dir_tree_iterator.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/include/io/dir_tree_iterator.h b/include/io/dir_tree_iterator.h
deleted file mode 100644
index 557178b..0000000
--- a/include/io/dir_tree_iterator.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* SPDX-License-Identifier: LGPL-3.0-or-later */
-/*
- * dir_tree_iterator.h
- *
- * Copyright (C) 2023 David Oberhollenzer <goliath@infraroot.at>
- */
-#ifndef IO_DIR_TREE_ITERATOR_H
-#define IO_DIR_TREE_ITERATOR_H
-
-#include "io/dir_iterator.h"
-
-enum {
- DIR_SCAN_NO_SOCK = 0x0001,
- DIR_SCAN_NO_SLINK = 0x0002,
- DIR_SCAN_NO_FILE = 0x0004,
- DIR_SCAN_NO_BLK = 0x0008,
- DIR_SCAN_NO_DIR = 0x0010,
- DIR_SCAN_NO_CHR = 0x0020,
- DIR_SCAN_NO_FIFO = 0x0040,
-
- DIR_SCAN_KEEP_TIME = 0x0100,
- DIR_SCAN_KEEP_UID = 0x0200,
- DIR_SCAN_KEEP_GID = 0x0400,
- DIR_SCAN_KEEP_MODE = 0x0800,
-
- DIR_SCAN_ONE_FILESYSTEM = 0x1000,
- DIR_SCAN_NO_RECURSION = 0x2000,
- DIR_SCAN_MATCH_FULL_PATH = 0x4000,
-};
-
-typedef struct {
- sqfs_u32 flags;
- sqfs_u32 def_uid;
- sqfs_u32 def_gid;
- sqfs_u32 def_mode;
- sqfs_s64 def_mtime;
- const char *prefix;
- const char *name_pattern;
-} dir_tree_cfg_t;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-dir_iterator_t *dir_tree_iterator_create(const char *path,
- const dir_tree_cfg_t *cfg);
-
-void dir_tree_iterator_skip(dir_iterator_t *it);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* IO_DIR_TREE_ITERATOR_H */