Version 1.4.2
WT_EXTENSION_API Struct Reference

Table of WiredTiger extension functions. More...

Public Attributes

int(* err_printf )(WT_SESSION *, const char *fmt,...)
 Insert an error message into the WiredTiger error stream.
 
void *(* scr_alloc )(WT_SESSION *, size_t bytes)
 Allocate short-term use scratch memory.
 
void(* scr_free )(WT_SESSION *, void *ref)
 Free short-term use scratch memory.
 

Detailed Description

Table of WiredTiger extension functions.

This structure is used to avoid the need to link extension modules with the library.

Member Data Documentation

int(* WT_EXTENSION_API::err_printf)(WT_SESSION *, const char *fmt,...)

Insert an error message into the WiredTiger error stream.

Parameters
sessionthe session handle
fmta printf-like format specification
Returns
zero on success and a non-zero error code on failure. See Error Returns for details.
void*(* WT_EXTENSION_API::scr_alloc)(WT_SESSION *, size_t bytes)

Allocate short-term use scratch memory.

Parameters
sessionthe session handle
bytesthe number of bytes of memory needed
Returns
A valid memory reference on success or NULL on error
void(* WT_EXTENSION_API::scr_free)(WT_SESSION *, void *ref)

Free short-term use scratch memory.

Parameters
sessionthe session handle
refa memory reference returned by WT_EXTENSION_API::scr_alloc