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: /* michael@0: * Allow freebl and softoken to be loaded without util or NSPR. michael@0: * michael@0: * These symbols are overridden once real NSPR, and libutil are attached. michael@0: */ michael@0: michael@0: #ifndef _STUBS_H michael@0: #define _STUBS_H_ 1 michael@0: michael@0: #ifdef _LIBUTIL_H_ michael@0: /* must be included before util */ michael@0: /*#error stubs.h included too late */ michael@0: #define MP_DIGITES(x) "stubs included too late" michael@0: #endif michael@0: michael@0: /* hide libutil rename */ michael@0: #define _LIBUTIL_H_ 1 michael@0: michael@0: #define PORT_Alloc PORT_Alloc_stub michael@0: #define PORT_ArenaAlloc PORT_ArenaAlloc_stub michael@0: #define PORT_ArenaZAlloc PORT_ArenaZAlloc_stub michael@0: #define PORT_Free PORT_Free_stub michael@0: #define PORT_FreeArena PORT_FreeArena_stub michael@0: #define PORT_GetError PORT_GetError_stub michael@0: #define PORT_NewArena PORT_NewArena_stub michael@0: #define PORT_SetError PORT_SetError_stub michael@0: #define PORT_ZAlloc PORT_ZAlloc_stub michael@0: #define PORT_ZFree PORT_ZFree_stub michael@0: michael@0: #define SECITEM_AllocItem SECITEM_AllocItem_stub michael@0: #define SECITEM_CompareItem SECITEM_CompareItem_stub michael@0: #define SECITEM_CopyItem SECITEM_CopyItem_stub michael@0: #define SECITEM_FreeItem SECITEM_FreeItem_stub michael@0: #define SECITEM_ZfreeItem SECITEM_ZfreeItem_stub michael@0: #define SECOID_FindOIDTag SECOID_FindOIDTag_stub michael@0: #define NSS_SecureMemcmp NSS_SecureMemcmp_stub michael@0: michael@0: #define PR_Assert PR_Assert_stub michael@0: #define PR_CallOnce PR_CallOnce_stub michael@0: #define PR_Close PR_Close_stub michael@0: #define PR_DestroyCondVar PR_DestroyCondVar_stub michael@0: #define PR_DestroyLock PR_DestroyLock_stub michael@0: #define PR_Free PR_Free_stub michael@0: #define PR_GetLibraryFilePathname PR_GetLibraryFilePathname_stub michael@0: #define PR_ImportPipe PR_ImportPipe_stub michael@0: #define PR_Lock PR_Lock_stub michael@0: #define PR_NewCondVar PR_NewCondVar_stub michael@0: #define PR_NewLock PR_NewLock_stub michael@0: #define PR_NotifyCondVar PR_NotifyCondVar_stub michael@0: #define PR_NotifyAllCondVar PR_NotifyAllCondVar_stub michael@0: #define PR_Open PR_Open_stub michael@0: #define PR_Read PR_Read_stub michael@0: #define PR_Seek PR_Seek_stub michael@0: #define PR_Sleep PR_Sleep_stub michael@0: #define PR_Unlock PR_Unlock_stub michael@0: #define PR_WaitCondVar PR_WaitCondVar_stub michael@0: michael@0: extern int FREEBL_InitStubs(void); michael@0: michael@0: #endif