coan 4.2.4
#include "bool.h"
#include "memory.h"
Include dependency graph for file_tree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  file_tree_count_t

Defines

#define FT_LAST   ((size_t)-1)

Typedefs

typedef struct file_treefile_tree_h
typedef struct file_tree const * file_tree_const_h
typedef void(* file_tree_callback_t )(file_tree_h ft, char const *name, file_tree_traverse_state_t context)
typedef bool(* file_filter_t )(char const *leafname)

Enumerations

enum  file_tree_traverse_state_t {
  FT_ENTERING_TREE = -2, FT_ENTERING_DIR = -1, FT_AT_FILE = 0, FT_LEAVING_DIR = 1,
  FT_LEAVING_TREE = 2
}
enum  file_tree_count_flags { FT_COUNT_FILES = 1, FT_COUNT_DIRS = 2, FT_COUNT_ALL = FT_COUNT_FILES | FT_COUNT_DIRS, FT_COUNT_CHILDREN = 4 }

Functions

heap_str file_tree_name (file_tree_const_h ft)
file_tree_h file_tree_new (void)
file_tree_h file_tree_copy (file_tree_const_h src)
void file_tree_swap (file_tree_h lhs, file_tree_h rhs)
void file_tree_assign (file_tree_h dest, file_tree_const_h src)
bool file_tree_equal (file_tree_const_h lhs, file_tree_const_h rhs)
bool file_tree_set_filter (file_tree_h ft, file_filter_t filter)
void file_tree_add (file_tree_h parent, char const *path, file_tree_callback_t callback)
void file_tree_dispose (file_tree_h ft)
void file_tree_traverse (file_tree_h ft, file_tree_callback_t callback)
bool file_tree_is_empty (file_tree_const_h ft)
size_t file_tree_count (file_tree_const_h ft, unsigned flags, file_tree_count_t *counter)
file_tree_const_h file_tree_child (file_tree_const_h ft, size_t which)

Detailed Description

This file provides the File Tree component interface.

Definition in file file_tree.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines