FileSystemIndexer v0.1.2-beta
File System Indexer - An API to index files from your system
Loading...
Searching...
No Matches
FSI_dirUtils.h
Go to the documentation of this file.
1#ifndef INCLUDE_CORE_FSI_DIRUTILS_H_
2#define INCLUDE_CORE_FSI_DIRUTILS_H_
3
4#ifdef __cplusplus
5# define __FSI_DIRUTILS_CPP_OPEN extern "C" {
6# define __FSI_DIRUTILS_CPP_CLOSE }
7#else
8# define __FSI_DIRUTILS_CPP_OPEN
9# define __FSI_DIRUTILS_CPP_CLOSE
10#endif // __cplusplus
11
13
14#include "../FSIpredefines.h"
15
16#include "cvec/cvec.h"
17
25
26typedef struct FSI_DirData
27{
28 void *impl;
30
31typedef struct FSI_EntryData
32{
33 const char *name; // Valid until next read
34
37
38/**
39 * @brief Walk to every directory and file and set `vec` to a CVEC value
40 * @param vec The vector to set data to
41 * @param path Path to walk to all its sub-dirs
42 */
43void fsi_walk(CVEC *vec, const char *path);
44
46
47#endif // INCLUDE_CORE_FSI_DIRUTILS_H_
#define __FSI_DIRUTILS_CPP_CLOSE
Definition FSI_dirUtils.h:6
void fsi_walk(CVEC *vec, const char *path)
Walk to every directory and file and set vec to a CVEC value.
#define __FSI_DIRUTILS_CPP_OPEN
Definition FSI_dirUtils.h:5
FSI_EntryType
@ FSI_SYMLINK
@ FSI_DIR
@ FSI_OTHER
@ FSI_FILE
FSI_EntryType type
const char * name