summaryrefslogtreecommitdiffstats
path: root/lib/x1000-installer/test_lib/core_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x1000-installer/test_lib/core_alloc.c')
-rw-r--r--lib/x1000-installer/test_lib/core_alloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/x1000-installer/test_lib/core_alloc.c b/lib/x1000-installer/test_lib/core_alloc.c
index 5d4edb03f7..719670f8f2 100644
--- a/lib/x1000-installer/test_lib/core_alloc.c
+++ b/lib/x1000-installer/test_lib/core_alloc.c
@@ -25,6 +25,7 @@
#define N_POINTERS 100
static void* pointers[N_POINTERS];
+struct buflib_callbacks buflib_ops_locked = {NULL, NULL, NULL};
int core_alloc(const char* name, size_t size)
{
@@ -46,6 +47,12 @@ int core_alloc(const char* name, size_t size)
return -1;
}
+int core_alloc_ex(const char* name, size_t size, struct buflib_callbacks* cb)
+{
+ (void)cb;
+ return core_alloc(name, size);
+}
+
int core_free(int handle)
{
if(handle > 0) {