diff options
author | Bruce Beare <bruce.j.beare@intel.com> | 2016-05-06 20:58:18 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-05-06 20:58:18 +0000 |
commit | 2ffeae775dceb2e3540bb43ed0c2246376e2ec48 (patch) | |
tree | d52c57f4c96053463410edc396406f3af9724837 /peripheral/keystore/chaabi/libcc54/include/pal/linux/dx_pal_malloc_plat.h | |
parent | de63dd6c2c643c6947ee77df064e6482689f4afd (diff) | |
parent | 09bcc11a44d5848b64009a4081de221dc15f3e1c (diff) | |
download | intel-2ffeae775dceb2e3540bb43ed0c2246376e2ec48.tar.gz |
Reland "chaabi: initial commit for libcc54"
am: 09bcc11a44
* commit '09bcc11a44d5848b64009a4081de221dc15f3e1c':
Reland "chaabi: initial commit for libcc54"
Change-Id: Ia9aa8329153eba04611a5bf5cd42acdcff7274cd
Diffstat (limited to 'peripheral/keystore/chaabi/libcc54/include/pal/linux/dx_pal_malloc_plat.h')
-rw-r--r-- | peripheral/keystore/chaabi/libcc54/include/pal/linux/dx_pal_malloc_plat.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/peripheral/keystore/chaabi/libcc54/include/pal/linux/dx_pal_malloc_plat.h b/peripheral/keystore/chaabi/libcc54/include/pal/linux/dx_pal_malloc_plat.h new file mode 100644 index 0000000..ca9d857 --- /dev/null +++ b/peripheral/keystore/chaabi/libcc54/include/pal/linux/dx_pal_malloc_plat.h @@ -0,0 +1,56 @@ +/******************************************************************* +* (c) Copyright 2011-2012 Discretix Technologies Ltd. * +* This file is licensed under the terms provided in the file * +* libcc54/LICENSE in this directory or a parent directory * +********************************************************************/ + +#ifndef _DX_PAL_MEMALLOC_INT_H +#define _DX_PAL_MEMALLOC_INT_H + + +#ifdef __cplusplus +extern "C" +{ +#endif + +#include <stdlib.h> +/** +* @brief File Description: +* This file contains wrappers for memory operations APIs. +*/ + + +/*---------------------------- + PUBLIC FUNCTIONS +-----------------------------------*/ + +/** + * @brief A wrapper over malloc functionality. The function allocates a buffer according to given size + * + */ + #define _DX_PAL_MemMalloc malloc + + +/** + * @brief A wrapper over realloc functionality. The function allocates and copy a buffer + * according to size + * + */ +#define _DX_PAL_MemRealloc realloc + + +/** + * @brief A wrapper over free functionality/ The function will free allocated memory. + * + */ +#define _DX_PAL_MemFree free + + + +#ifdef __cplusplus +} +#endif + +#endif + + |