Q_ENTRY* qConfigParseFile ( Q_ENTRY config,
const char *  filepath,
char  sepchar 
)

Load & parse configuration file

Parameters:
config a pointer of Q_ENTRY. NULL can be used for empty.
filepath configuration file path
sepchar separater used in configuration file to divice key and value
Returns:
a pointer of Q_ENTRY in case of successful, otherwise(file not found) returns NULL
Note:
Configuration file forma
 # a line which starts with # character is comment
 @INCLUDE other.conf          => (include other.conf)
 base = /tmp                  => base = /tmp
 log  = ${base}/log           => /tmp/log (using variable)
 host = ${!/bin/hostname -s}  => arena (external command result)
 path = ${%PATH}              => /usr/bin:/usr/sbin (environment)

   Q_ENTRY *config = qConfigParseFile(NULL, "qdecoder.conf", '=');

Definition at line 67 of file qConfig.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1