PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@
rt_context.c File Reference
#include <stdarg.h>
#include "librtcore.h"
#include "librtcore_internal.h"
Include dependency graph for rt_context.c:

Go to the source code of this file.

Data Structures

struct  rt_context_t
 Struct definition here. More...
 

Functions

void * default_rt_allocator (size_t size)
 The default memory/logging handlers installed by lwgeom_install_default_allocators() More...
 
void * default_rt_reallocator (void *mem, size_t size)
 
void default_rt_deallocator (void *mem)
 
void default_rt_error_handler (const char *fmt, va_list ap)
 
void default_rt_warning_handler (const char *fmt, va_list ap)
 
void default_rt_info_handler (const char *fmt, va_list ap)
 
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. More...
 
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. More...
 
void * rtalloc (size_t size)
 Raster core memory management functions. More...
 
void * rtrealloc (void *mem, size_t size)
 
void rtdealloc (void *mem)
 
void rterror (const char *fmt,...)
 Raster core error and info handlers. More...
 
void rtinfo (const char *fmt,...)
 
void rtwarn (const char *fmt,...)
 

Variables

static struct rt_context_t ctx_t