Function silc_idcache_alloc
SYNOPSIS
SilcIDCache silc_idcache_alloc(SilcUInt32 count, SilcIdType id_type,
SilcIDCacheDestructor destructor,
void *destructor_context,
bool delete_id, bool delete_name);
DESCRIPTION
Allocates new ID cache object. The initial amount of allocated entries
can be sent as argument. If `count' is 0 the system uses default values.
The `id_type' defines the types of the ID's that will be saved to the
cache.
If 'delete_id' is TRUE then library will free the ID when a
cache entry is deleted. If 'delete_name' is TRUE then library
will delete the associated name when a cache entry is deleted.
|