pcsc-lite 1.5.5
Defines | Functions

parser.h File Reference

Reads lexical config files and updates database. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TOKEN_MAX_KEY_SIZE   200
#define TOKEN_MAX_VALUE_SIZE   200
#define TOKEN_TYPE_KEY   1
#define TOKEN_TYPE_STRING   2

Functions

int LTPBundleFindValueWithKey (const char *fileName, const char *tokenKey, char *tokenValue, int tokenIndice)
 Find a key in a configuration file.
int LTPBundleFindOptionalValueWithKey (const char *fileName, const char *tokenKey, char *tokenValue, int tokenIndice)
 Find an optional key in a configuration file No error is logged if the key is not found.

Detailed Description

Reads lexical config files and updates database.

Definition in file parser.h.


Function Documentation

int LTPBundleFindOptionalValueWithKey ( const char *  fileName,
const char *  tokenKey,
char *  tokenValue,
int  tokenIndice 
)

Find an optional key in a configuration file No error is logged if the key is not found.

Parameters:
fileNamefile name
tokenKeykey value
[out]tokenValuetoken value (if key found)
tokenIndiceindice of the desired key
Return values:
-1configuration file not found
0OK
1key not found

Definition at line 1873 of file tokenparser.c.

Referenced by LTPBundleFindValueWithKey().

int LTPBundleFindValueWithKey ( const char *  fileName,
const char *  tokenKey,
char *  tokenValue,
int  tokenIndice 
)

Find a key in a configuration file.

Parameters:
fileNamefile name
tokenKeykey value
[out]tokenValuetoken value (if key found)
tokenIndiceindice of the desired key
Return values:
-1configuration file not found
0OK
1key not found

Definition at line 1916 of file tokenparser.c.

References LTPBundleFindOptionalValueWithKey().

Here is the call graph for this function: