BRL-CAD
bu_glob_context Struct Reference

#include <glob.h>

Collaboration diagram for bu_glob_context:
[legend]

Data Fields

int gl_flags
 
int gl_pathc
 
int gl_matchc
 
struct bu_vls ** gl_pathv
 
struct bu_glob_context *(* gl_opendir )(const char *)
 
int(* gl_readdir )(struct bu_dirent *, struct bu_glob_context *)
 
void(* gl_closedir )(struct bu_glob_context *)
 
int(* gl_lstat )(const char *, struct bu_stat *, struct bu_glob_context *)
 
int(* gl_stat )(const char *, struct bu_stat *, struct bu_glob_context *)
 
int(* gl_errfunc )(const char *, int, struct bu_glob_context *)
 
void * data
 
void * priv
 

Detailed Description

main structure used by bu_glob() to specify behavior, callbacks, and return results.

Definition at line 68 of file glob.h.

Field Documentation

◆ gl_flags

int gl_flags

flags customizing globbing behavior

Definition at line 74 of file glob.h.

◆ gl_pathc

int gl_pathc

count of total paths so far

Definition at line 78 of file glob.h.

◆ gl_matchc

int gl_matchc

count of paths matching pattern

Definition at line 79 of file glob.h.

◆ gl_pathv

struct bu_vls** gl_pathv

list of paths matching pattern

Definition at line 80 of file glob.h.

◆ gl_opendir

struct bu_glob_context *(* gl_opendir) (const char *)

Definition at line 80 of file glob.h.

◆ gl_readdir

int(* gl_readdir) (struct bu_dirent *, struct bu_glob_context *)

Definition at line 85 of file glob.h.

◆ gl_closedir

void(* gl_closedir) (struct bu_glob_context *)

Definition at line 86 of file glob.h.

◆ gl_lstat

int(* gl_lstat) (const char *, struct bu_stat *, struct bu_glob_context *)

Definition at line 88 of file glob.h.

◆ gl_stat

int(* gl_stat) (const char *, struct bu_stat *, struct bu_glob_context *)

Definition at line 89 of file glob.h.

◆ gl_errfunc

int(* gl_errfunc) (const char *, int, struct bu_glob_context *)

Definition at line 93 of file glob.h.

◆ data

void* data

data passed to all callbacks

Definition at line 97 of file glob.h.

◆ priv

void* priv

For internal use only

Definition at line 101 of file glob.h.


The documentation for this struct was generated from the following file: