michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef CKFWM_H michael@0: #define CKFWM_H michael@0: michael@0: /* michael@0: * ckfwm.h michael@0: * michael@0: * This file prototypes the module-private calls of the NSS Cryptoki Framework. michael@0: */ michael@0: michael@0: #ifndef NSSBASET_H michael@0: #include "nssbaset.h" michael@0: #endif /* NSSBASET_H */ michael@0: michael@0: #ifndef NSSCKT_H michael@0: #include "nssckt.h" michael@0: #endif /* NSSCKT_H */ michael@0: michael@0: #ifndef NSSCKFWT_H michael@0: #include "nssckfwt.h" michael@0: #endif /* NSSCKFWT_H */ michael@0: michael@0: /* michael@0: * nssCKFWHash michael@0: * michael@0: * nssCKFWHash_Create michael@0: * nssCKFWHash_Destroy michael@0: * nssCKFWHash_Add michael@0: * nssCKFWHash_Remove michael@0: * nssCKFWHash_Count michael@0: * nssCKFWHash_Exists michael@0: * nssCKFWHash_Lookup michael@0: * nssCKFWHash_Iterate michael@0: */ michael@0: michael@0: /* michael@0: * nssCKFWHash_Create michael@0: * michael@0: */ michael@0: NSS_EXTERN nssCKFWHash * michael@0: nssCKFWHash_Create michael@0: ( michael@0: NSSCKFWInstance *fwInstance, michael@0: NSSArena *arena, michael@0: CK_RV *pError michael@0: ); michael@0: michael@0: /* michael@0: * nssCKFWHash_Destroy michael@0: * michael@0: */ michael@0: NSS_EXTERN void michael@0: nssCKFWHash_Destroy michael@0: ( michael@0: nssCKFWHash *hash michael@0: ); michael@0: michael@0: /* michael@0: * nssCKFWHash_Add michael@0: * michael@0: */ michael@0: NSS_EXTERN CK_RV michael@0: nssCKFWHash_Add michael@0: ( michael@0: nssCKFWHash *hash, michael@0: const void *key, michael@0: const void *value michael@0: ); michael@0: michael@0: /* michael@0: * nssCKFWHash_Remove michael@0: * michael@0: */ michael@0: NSS_EXTERN void michael@0: nssCKFWHash_Remove michael@0: ( michael@0: nssCKFWHash *hash, michael@0: const void *it michael@0: ); michael@0: michael@0: /* michael@0: * nssCKFWHash_Count michael@0: * michael@0: */ michael@0: NSS_EXTERN CK_ULONG michael@0: nssCKFWHash_Count michael@0: ( michael@0: nssCKFWHash *hash michael@0: ); michael@0: michael@0: /* michael@0: * nssCKFWHash_Exists michael@0: * michael@0: */ michael@0: NSS_EXTERN CK_BBOOL michael@0: nssCKFWHash_Exists michael@0: ( michael@0: nssCKFWHash *hash, michael@0: const void *it michael@0: ); michael@0: michael@0: /* michael@0: * nssCKFWHash_Lookup michael@0: * michael@0: */ michael@0: NSS_EXTERN void * michael@0: nssCKFWHash_Lookup michael@0: ( michael@0: nssCKFWHash *hash, michael@0: const void *it michael@0: ); michael@0: michael@0: /* michael@0: * nssCKFWHash_Iterate michael@0: * michael@0: */ michael@0: NSS_EXTERN void michael@0: nssCKFWHash_Iterate michael@0: ( michael@0: nssCKFWHash *hash, michael@0: nssCKFWHashIterator fcn, michael@0: void *closure michael@0: ); michael@0: michael@0: #endif /* CKFWM_H */