Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/utils/dirlist.h
3694 views
1
/*
2
* Copyright (c) 2018-2025 CTCaer
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms and conditions of the GNU General Public License,
6
* version 2, as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#include <utils/types.h>
18
19
#ifndef _DIRLIST_H_
20
#define _DIRLIST_H_
21
22
#define DIR_MAX_ENTRIES 64
23
24
#define DIR_SHOW_HIDDEN BIT(0)
25
#define DIR_SHOW_DIRS BIT(1)
26
#define DIR_ASCII_ORDER BIT(2)
27
28
typedef struct _dirlist_t
29
{
30
char *name[DIR_MAX_ENTRIES];
31
char data[DIR_MAX_ENTRIES * 256];
32
} dirlist_t;
33
34
dirlist_t *dirlist(const char *directory, const char *pattern, u32 flags);
35
36
#endif
37
38