/* * cr_hsm_alloc.h */ #ifndef CR_HSM_ALLOC_H #define CR_HSM_ALLOC_H #include "nfastapp.h" #ifdef __cplusplus extern "C" { #endif extern const NFast_MallocUpcalls my_hsm_malloc_upcalls; void *my_hsm_malloc( size_t nbytes, struct NFast_Call_Context *cctx, struct NFast_Transaction_Context *tctx ); void *my_hsm_realloc( void *ptr, size_t nbytes, struct NFast_Call_Context *cctx, struct NFast_Transaction_Context *tctx ); void my_hsm_free( void *ptr, struct NFast_Call_Context *cctx, struct NFast_Transaction_Context *tctx ); int my_hsm_get_alloc_counter( void ); #ifdef __cplusplus } #endif #endif // CR_HSM_ALLOC_H