PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rt_install_default_allocators()

void rt_install_default_allocators ( void  )

Useful in raster core testing and in the (future) loader, when we need to use raster core functions but we don't have PostgreSQL backend behind.

We must take care of memory by ourselves in those situations

Definition at line 142 of file rt_context.c.

143{
151}
void default_rt_error_handler(const char *fmt, va_list ap)
Definition rt_context.c:67
void * default_rt_allocator(size_t size)
The default memory/logging handlers installed by lwgeom_install_default_allocators()
Definition rt_context.c:47
void default_rt_deallocator(void *mem)
Definition rt_context.c:61
void * default_rt_reallocator(void *mem, size_t size)
Definition rt_context.c:54
static struct rt_context_t ctx_t
Definition rt_context.c:124
void default_rt_warning_handler(const char *fmt, va_list ap)
Definition rt_context.c:80
void default_rt_info_handler(const char *fmt, va_list ap)
Definition rt_context.c:93
char * default_rt_options(const char *varname)
Definition rt_context.c:105
rt_message_handler warn
Definition rt_context.c:118
rt_message_handler info
Definition rt_context.c:119
rt_allocator alloc
Definition rt_context.c:114
rt_message_handler err
Definition rt_context.c:117
rt_reallocator realloc
Definition rt_context.c:115
rt_options options
Definition rt_context.c:120
rt_deallocator dealloc
Definition rt_context.c:116

References rt_context_t::alloc, ctx_t, rt_context_t::dealloc, default_rt_allocator(), default_rt_deallocator(), default_rt_error_handler(), default_rt_info_handler(), default_rt_options(), default_rt_reallocator(), default_rt_warning_handler(), rt_context_t::err, rt_context_t::info, rt_context_t::options, rt_context_t::realloc, and rt_context_t::warn.

Here is the call graph for this function: