blob: 32778765dbee63d335923b77a04a402f86303281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* Copyright (C) RSA Data Security, Inc. created 1993, 1996. This is an
unpublished work protected as such under copyright law. This work
contains proprietary, confidential, and trade secret information of
RSA Data Security, Inc. Use, disclosure or reproduction without the
express written authorization of RSA Data Security, Inc. is
prohibited.
*/
#ifndef _BINFOCSH_H_
#define _BINFOCSH_H_ 1
#include "bmempool.h"
typedef struct B_InfoCache {
B_MemoryPool memoryPool; /* inherited */
struct {
unsigned int infoCount;
struct {
POINTER infoType;
POINTER info;
} *infos;
/* POINTER reserved; */
} z; /* z gives the members that are zeroized by the constructor */
} B_InfoCache;
void B_InfoCacheConstructor PROTO_LIST ((B_InfoCache *));
#define B_INFO_CACHE_Destructor(infoCache) \
B_MemoryPoolDestructor (&(infoCache)->memoryPool)
int B_InfoCacheAddInfo PROTO_LIST ((B_InfoCache *, POINTER, POINTER));
int B_InfoCacheFindInfo PROTO_LIST ((B_InfoCache *, POINTER *, POINTER));
#endif
|