michael@0: /******************************************************************** michael@0: * * michael@0: * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * michael@0: * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * michael@0: * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * michael@0: * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * michael@0: * * michael@0: * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 * michael@0: * by the Xiph.Org Foundation http://www.xiph.org/ * michael@0: * * michael@0: *********************************************************************/ michael@0: michael@0: #include michael@0: #include "ogg/os_types.h" michael@0: michael@0: ogg_malloc_function_type *ogg_malloc_func = malloc; michael@0: ogg_calloc_function_type *ogg_calloc_func = calloc; michael@0: ogg_realloc_function_type *ogg_realloc_func = realloc; michael@0: ogg_free_function_type *ogg_free_func = free; michael@0: michael@0: void michael@0: ogg_set_mem_functions(ogg_malloc_function_type *malloc_func, michael@0: ogg_calloc_function_type *calloc_func, michael@0: ogg_realloc_function_type *realloc_func, michael@0: ogg_free_function_type *free_func) michael@0: { michael@0: ogg_malloc_func = malloc_func; michael@0: ogg_calloc_func = calloc_func; michael@0: ogg_realloc_func = realloc_func; michael@0: ogg_free_func = free_func; michael@0: }