diff options
author | George Hazan <george.hazan@gmail.com> | 2025-05-25 19:12:13 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-05-25 19:12:13 +0300 |
commit | a15f120c4ff2824b71301d5c270288b74bb2aa37 (patch) | |
tree | fd3ea82de8d92d7cd2795e931b584d9c4857cb89 /protocols/Tox/libtox/src/toxcore/mem.c | |
parent | 5e0856749a27b186dd23273b238dd176922f6f1a (diff) |
libtox: update to 2.2.1
Diffstat (limited to 'protocols/Tox/libtox/src/toxcore/mem.c')
-rw-r--r-- | protocols/Tox/libtox/src/toxcore/mem.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/Tox/libtox/src/toxcore/mem.c b/protocols/Tox/libtox/src/toxcore/mem.c index bddc335b82..32e7eec07c 100644 --- a/protocols/Tox/libtox/src/toxcore/mem.c +++ b/protocols/Tox/libtox/src/toxcore/mem.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-3.0-or-later - * Copyright © 2016-2018 The TokTok team. + * Copyright © 2016-2025 The TokTok team. * Copyright © 2013 Tox project. */ @@ -53,6 +53,12 @@ void *mem_balloc(const Memory *mem, uint32_t size) return ptr; } +void *mem_brealloc(const Memory *mem, void *ptr, uint32_t size) +{ + void *const new_ptr = mem->funcs->realloc(mem->obj, ptr, size); + return new_ptr; +} + void *mem_alloc(const Memory *mem, uint32_t size) { void *const ptr = mem->funcs->calloc(mem->obj, 1, size); |