libt3config
Data Fields
t3_config_opts_t Struct Reference

Options struct used when reading a file. More...

Data Fields

int flags
 Set of flags, or 0 for defaults. More...
 
union {
   struct {
      int   flags
 The flags, passed to t3_config_open_from_path. More...
 
      const char **   path
 The NULL-terminated array of search paths, passed to t3_config_open_from_path. More...
 
   }   dflt
 Information for the default include mechanism. More...
 
   struct {
      void *   data
 Data passed to the callback function. More...
 
      FILE *(*   open )(const char *name, void *data)
 The function to call to open an include file. More...
 
   }   user
 Information for the user include mechanism. More...
 
include_callback
 Information for facilitating file inclusion. More...
 

Detailed Description

Options struct used when reading a file.

Field Documentation

◆ data

void* t3_config_opts_t::data

Data passed to the callback function.

◆ dflt

struct { ... } t3_config_opts_t::dflt

Information for the default include mechanism.

◆ flags

int t3_config_opts_t::flags

Set of flags, or 0 for defaults.

The flags, passed to t3_config_open_from_path.

◆ include_callback

union { ... } t3_config_opts_t::include_callback

Information for facilitating file inclusion.

◆ open

FILE*(* t3_config_opts_t::open) (const char *name, void *data)

The function to call to open an include file.

◆ path

const char** t3_config_opts_t::path

The NULL-terminated array of search paths, passed to t3_config_open_from_path.

◆ user

struct { ... } t3_config_opts_t::user

Information for the user include mechanism.