projects
/
crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged silc_1_0_branch to trunk.
[crypto.git]
/
lib
/
silccore
/
silcidcache.h
diff --git
a/lib/silccore/silcidcache.h
b/lib/silccore/silcidcache.h
index 69c5290f1bdb8a639d2a74c0f56f6b8a9bbca88a..b5612d391e9e3267b30b15add1fff8dd529a0919 100644
(file)
--- a/
lib/silccore/silcidcache.h
+++ b/
lib/silccore/silcidcache.h
@@
-111,7
+111,8
@@
typedef struct SilcIDCacheListStruct *SilcIDCacheList;
* SYNOPSIS
*
* typedef void (*SilcIDCacheDestructor)(SilcIDCache cache,
* SYNOPSIS
*
* typedef void (*SilcIDCacheDestructor)(SilcIDCache cache,
- * SilcIDCacheEntry entry);
+ * SilcIDCacheEntry entry,
+ * void *context);
*
* DESCRIPTION
*
*
* DESCRIPTION
*
@@
-122,7
+123,8
@@
typedef struct SilcIDCacheListStruct *SilcIDCacheList;
*
***/
typedef void (*SilcIDCacheDestructor)(SilcIDCache cache,
*
***/
typedef void (*SilcIDCacheDestructor)(SilcIDCache cache,
- SilcIDCacheEntry entry);
+ SilcIDCacheEntry entry,
+ void *context);
#define SILC_ID_CACHE_EXPIRE 3600
#define SILC_ID_CACHE_EXPIRE_DEF (time(NULL) + SILC_ID_CACHE_EXPIRE)
#define SILC_ID_CACHE_EXPIRE 3600
#define SILC_ID_CACHE_EXPIRE_DEF (time(NULL) + SILC_ID_CACHE_EXPIRE)
@@
-134,7
+136,9
@@
typedef void (*SilcIDCacheDestructor)(SilcIDCache cache,
* SYNOPSIS
*
* SilcIDCache silc_idcache_alloc(SilcUInt32 count, SilcIdType id_type,
* SYNOPSIS
*
* SilcIDCache silc_idcache_alloc(SilcUInt32 count, SilcIdType id_type,
- * SilcIDCacheDestructor destructor);
+ * SilcIDCacheDestructor destructor,
+ * void *destructor_context,
+ * bool delete_id, bool delete_name);
*
* DESCRIPTION
*
*
* DESCRIPTION
*
@@
-150,6
+154,7
@@
typedef void (*SilcIDCacheDestructor)(SilcIDCache cache,
***/
SilcIDCache silc_idcache_alloc(SilcUInt32 count, SilcIdType id_type,
SilcIDCacheDestructor destructor,
***/
SilcIDCache silc_idcache_alloc(SilcUInt32 count, SilcIdType id_type,
SilcIDCacheDestructor destructor,
+ void *destructor_context,
bool delete_id, bool delete_name);
/****f* silccore/SilcIDCacheAPI/silc_idcache_free
bool delete_id, bool delete_name);
/****f* silccore/SilcIDCacheAPI/silc_idcache_free