35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* 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 DNSSAFE_BINFOCSH_H
|
|
#define DNSSAFE_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 /* DNSSAFE_BINFOCSH_H */
|
|
|