diff options
Diffstat (limited to 'testsuites/validation/tx-support.h')
-rw-r--r-- | testsuites/validation/tx-support.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index cddc496fe8..ca128d2e2d 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -208,6 +208,19 @@ uint32_t SetTimecountCounter( uint32_t counter ); */ bool DeleteTimerServer( void ); +typedef struct { + struct { + const void *begin; + void *free_begin; + const void *end; + } areas[ 2 ]; + size_t count; +} MemoryContext; + +void MemorySave( MemoryContext *ctx ); + +void MemoryRestore( const MemoryContext *ctx ); + /** * @brief Fails a dynamic memory allocation when the counter reaches zero. * |