PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_set_handlers()

void rt_set_handlers ( rt_allocator  allocator,
rt_reallocator  reallocator,
rt_deallocator  deallocator,
rt_message_handler  error_handler,
rt_message_handler  info_handler,
rt_message_handler  warning_handler 
)

This function is called when the PostgreSQL backend is taking care of the memory and we want to use palloc family.

Definition at line 151 of file rt_context.c.

153  {
154 
155  ctx_t.alloc = allocator;
156  ctx_t.realloc = reallocator;
157  ctx_t.dealloc = deallocator;
158 
159  ctx_t.err = error_handler;
160  ctx_t.info = info_handler;
161  ctx_t.warn = warning_handler;
162 }
static struct rt_context_t ctx_t
Definition: rt_context.c:118
rt_message_handler warn
Definition: rt_context.c:113
rt_message_handler info
Definition: rt_context.c:114
rt_allocator alloc
Definition: rt_context.c:109
rt_message_handler err
Definition: rt_context.c:112
rt_reallocator realloc
Definition: rt_context.c:110
rt_deallocator dealloc
Definition: rt_context.c:111

References rt_context_t::alloc, ctx_t, rt_context_t::dealloc, rt_context_t::err, rt_context_t::info, rt_context_t::realloc, and rt_context_t::warn.

Referenced by _PG_init(), main(), and rt_init_allocators().

Here is the caller graph for this function: