From 23c7476ac4f0ebfc7b09d9858149d9bf79f1122e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 1 Oct 2017 19:23:02 +0000 Subject: Changed my mind, modified types. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10742 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/oslib/include/chheap.h | 2 +- os/common/oslib/include/chmemcore.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'os/common/oslib/include') diff --git a/os/common/oslib/include/chheap.h b/os/common/oslib/include/chheap.h index 0447d546d..0b259a329 100644 --- a/os/common/oslib/include/chheap.h +++ b/os/common/oslib/include/chheap.h @@ -95,7 +95,7 @@ union heap_header { * @brief Structure describing a memory heap. */ struct memory_heap { - memgetfunc_t provider; /**< @brief Memory blocks provider for + memgetfunc2_t provider; /**< @brief Memory blocks provider for this heap. */ heap_header_t header; /**< @brief Free blocks list header. */ #if CH_CFG_USE_MUTEXES == TRUE diff --git a/os/common/oslib/include/chmemcore.h b/os/common/oslib/include/chmemcore.h index 401e9b1a9..759cee78d 100644 --- a/os/common/oslib/include/chmemcore.h +++ b/os/common/oslib/include/chmemcore.h @@ -68,7 +68,12 @@ /** * @brief Memory get function. */ -typedef void *(*memgetfunc_t)(size_t size, unsigned align, size_t offset); +typedef void *(*memgetfunc_t)(size_t size, unsigned align); + +/** + * @brief Enhanced memory get function. + */ +typedef void *(*memgetfunc2_t)(size_t size, unsigned align, size_t offset); /** * @brief Type of memory core object. -- cgit v1.2.3