From d8eec395b22cc890c6f38236392753c6c80b5cc6 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 24 Aug 2012 09:07:50 +0000 Subject: Add a getter for the mem_pool_t base address --- src/libhydra/attributes/mem_pool.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libhydra/attributes/mem_pool.h') diff --git a/src/libhydra/attributes/mem_pool.h b/src/libhydra/attributes/mem_pool.h index bb963de93..7b7e58af7 100644 --- a/src/libhydra/attributes/mem_pool.h +++ b/src/libhydra/attributes/mem_pool.h @@ -38,6 +38,13 @@ struct mem_pool_t { */ const char* (*get_name)(mem_pool_t *this); + /** + * Get the base (first) address of this pool. + * + * @return base address, internal host + */ + host_t* (*get_base)(mem_pool_t *this); + /** * Get the size (i.e. number of addresses) of this pool. * -- cgit v1.2.3