48#define sanei_config_h 1
108 char **string_const);
128 SANE_Status (*attach)
165 const char *config_file,
167 SANE_Status (*config_attach)(
SANEI_Config *config,
const char *devname,
SANE_Status sanei_configure_attach(const char *config_file, SANEI_Config *config, SANE_Status(*config_attach)(SANEI_Config *config, const char *devname, void *data), void *data)
Parse configuration file, reading configuration options and trying to attach devices found in file.
const char * sanei_config_get_string(const char *str, char **string_const)
Scan a string constant from a line of text and return a malloced copy of it.
void sanei_config_attach_matching_devices(const char *name, SANE_Status(*attach)(const char *dev))
Expand device name patterns into a list of devices.
char * sanei_config_read(char *str, int n, FILE *stream)
Read a line from configuration file.
FILE * sanei_config_open(const char *name)
Search configuration file name along directory list and return file pointer if such a file exists.
const char * sanei_config_get_paths(void)
Return the list of config directories, extracted from the SANE_CONFIG_DIR environment variable and th...
const char * sanei_config_skip_whitespace(const char *str)
Remove all whitespace from the beginning of a string.
this structure holds the description of configuration options.
Definition: sanei_config.h:137
void ** values
values for the configuration options
Definition: sanei_config.h:145
SANE_Int count
number of options
Definition: sanei_config.h:139
SANE_Option_Descriptor ** descriptors
NULL terminated list of configuration option.
Definition: sanei_config.h:142