From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- media/libogg/src/ogg_alloc.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 media/libogg/src/ogg_alloc.c (limited to 'media/libogg/src/ogg_alloc.c') diff --git a/media/libogg/src/ogg_alloc.c b/media/libogg/src/ogg_alloc.c new file mode 100644 index 0000000000..4238d7b610 --- /dev/null +++ b/media/libogg/src/ogg_alloc.c @@ -0,0 +1,31 @@ +/******************************************************************** + * * + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * + * * + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 * + * by the Xiph.Org Foundation http://www.xiph.org/ * + * * + *********************************************************************/ + +#include +#include "ogg/os_types.h" + +ogg_malloc_function_type *ogg_malloc_func = malloc; +ogg_calloc_function_type *ogg_calloc_func = calloc; +ogg_realloc_function_type *ogg_realloc_func = realloc; +ogg_free_function_type *ogg_free_func = free; + +void +ogg_set_mem_functions(ogg_malloc_function_type *malloc_func, + ogg_calloc_function_type *calloc_func, + ogg_realloc_function_type *realloc_func, + ogg_free_function_type *free_func) +{ + ogg_malloc_func = malloc_func; + ogg_calloc_func = calloc_func; + ogg_realloc_func = realloc_func; + ogg_free_func = free_func; +} -- cgit v1.2.3