pcsc-lite 1.9.9
Data Structures | Functions
parser.h File Reference

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

#include "simclist.h"

Go to the source code of this file.

Data Structures

struct  bundleElt
 

Functions

int LTPBundleFindValueWithKey (list_t *l, const char *key, list_t **values)
 Find an optional key in a configuration file No error is logged if the key is not found.
 
int bundleParse (const char *fileName, list_t *l)
 Parse a Info.plist file and file a list.
 
void bundleRelease (list_t *l)
 Free the list created by bundleParse()
 

Detailed Description

Reads lexical config files and updates database.

Definition in file parser.h.

Function Documentation

◆ bundleParse()

int bundleParse ( const char fileName,
list_t l 
)

Parse a Info.plist file and file a list.

Parameters
fileNamefile name
llist containing the results
Return values
-1configuration file not found
0OK

Definition at line 1948 of file tokenparser.c.

◆ bundleRelease()

void bundleRelease ( list_t l)

Free the list created by bundleParse()

Parameters
llist containing the results

Definition at line 2006 of file tokenparser.c.

◆ LTPBundleFindValueWithKey()

int LTPBundleFindValueWithKey ( list_t l,
const char key,
list_t **  values 
)

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

Parameters
llist generated by bundleParse()
keysearched key
[out]valueslist of token value (if key found)
Return values
0OK
1key not found

Definition at line 1917 of file tokenparser.c.