c-icap-doc  0.1
Data Structures | Functions
Lookup tables api

Macros, functions and structures used to implement and use lookup tables. More...

Data Structures

struct  ci_lookup_table
 The lookup table struct. More...
 

Functions

struct ci_lookup_tableci_lookup_table_create (const char *table)
 Create a lookup table. More...
 
void ci_lookup_table_destroy (struct ci_lookup_table *lt)
 Destroy a lookup table. More...
 

Detailed Description

Macros, functions and structures used to implement and use lookup tables.

Lookup tables can considered as simple read only databases where the user can search a set of values using a key

Function Documentation

struct ci_lookup_table* ci_lookup_table_create ( const char *  table)

Create a lookup table.

Parameters
tableThe path of the lookup table (eg file:/etc/c-icap/users.txt or ldap://hostname/o=base?cn,uid?uid=chtsanti)
Returns
A pointer to a lookup table object
void ci_lookup_table_destroy ( struct ci_lookup_table lt)

Destroy a lookup table.

Parameters
ltPointer to the lookup table will be destroyed.