FileSystemIndexer v0.1.2-beta
File System Indexer - An API to index files from your system
Loading...
Searching...
No Matches
FSI_dirUtils.h File Reference
#include "../FSIpredefines.h"
#include "cvec/cvec.h"
Include dependency graph for FSI_dirUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FSI_DirData
struct  FSI_EntryData

Macros

#define __FSI_DIRUTILS_CPP_CLOSE   }
#define __FSI_DIRUTILS_CPP_OPEN   extern "C" {

Typedefs

typedef struct FSI_DirData FSI_DirData
typedef struct FSI_EntryData FSI_EntryData
typedef enum FSI_EntryType FSI_EntryType

Enumerations

enum  FSI_EntryType { FSI_FILE , FSI_DIR , FSI_SYMLINK , FSI_OTHER }

Functions

void fsi_walk (CVEC *vec, const char *path)
 Walk to every directory and file and set vec to a CVEC value.

Macro Definition Documentation

◆ __FSI_DIRUTILS_CPP_CLOSE

#define __FSI_DIRUTILS_CPP_CLOSE   }

Definition at line 6 of file FSI_dirUtils.h.

◆ __FSI_DIRUTILS_CPP_OPEN

#define __FSI_DIRUTILS_CPP_OPEN   extern "C" {

Definition at line 5 of file FSI_dirUtils.h.

Typedef Documentation

◆ FSI_DirData

typedef struct FSI_DirData FSI_DirData

◆ FSI_EntryData

typedef struct FSI_EntryData FSI_EntryData

◆ FSI_EntryType

Enumeration Type Documentation

◆ FSI_EntryType

Enumerator
FSI_FILE 
FSI_DIR 
FSI_SYMLINK 
FSI_OTHER 

Definition at line 18 of file FSI_dirUtils.h.

19{
21 FSI_DIR,
FSI_EntryType
@ FSI_SYMLINK
@ FSI_DIR
@ FSI_OTHER
@ FSI_FILE

Function Documentation

◆ fsi_walk()

void fsi_walk ( CVEC * vec,
const char * path )

Walk to every directory and file and set vec to a CVEC value.

Parameters
vecThe vector to set data to
pathPath to walk to all its sub-dirs

Definition at line 12 of file FSI_dirUtils.c.

13{
14 CVEC visited = cvec_init(-1, sizeof(FSI_Visited_POSIX*));
15
16 __fsi_walk(out, &visited, path);
17
18 cvec_destroy(&visited);
19}
static void __fsi_walk(CVEC *out, CVEC *visited, const char *path)

References __fsi_walk().

Referenced by fsi::Indexer::__iteratePath().

Here is the call graph for this function:
Here is the caller graph for this function: