Commit Graph

17 Commits

Author SHA1 Message Date
Keith Bostic
5b509b7220 Update copyright notices for 2014.
Move lang/java and lang/python into the public domain.
2014-01-07 10:30:12 -05:00
Keith Bostic
3b88aa616e Add handle.terminate methods to WT_COLLATOR, WT_COMPRESSOR and
WT_DATA_SOURCE handles, called when the handle is discarded,
intended to allow general cleanup when the database is closed.

Re-work the BDB KVS and Memrata support to handle multiple open
databases, that is, get rid of all of the globals.
2013-05-07 11:50:12 -04:00
Michael Cahill
9a74a794a7 Change the extension function names to "init" and "terminate" so that API changes are caught at compile time. 2013-04-19 17:11:21 +10:00
Keith Bostic
3f5f248803 Add an extension "unload" entry point, configured with "unload" and with
a default of wiredtiger_extension_unload.

Rename "entry" load extension entry point to be "load", rename the default
from wiredtiger_extension_init to wiredtiger_extension_load, to match.
2013-04-18 08:44:08 -04:00
Michael Cahill
1123a185e7 Use an opaque type for config arguments passed to callbacks, rather than void *. 2013-04-18 16:51:20 +10:00
Keith Bostic
221d66e8a0 Change the extension entry point signature to take a (void *config)
instead of a const char *config, and pass in a cfg[], that way the
entry point function can use WT_EXTENSION_API::config to parse the
configuration.
2013-04-17 11:15:00 -04:00
Keith Bostic
08c982ad15 Replace wiredtiger_extension_api() with WT_CONNECTION.get_extension_api.
Pass the wiredtiger_extension_init function a (WT_CONNECTION *) instead
of a (WT_SESSION *, WT_EXTENSION_API) pair.
2013-04-17 11:02:54 -04:00
Keith Bostic
03c75c0561 Remove the wiredtiger_XXX #defines for the extension API, always use the
WT_EXTENSION_API handle instead.
2013-04-10 10:34:50 -04:00
Keith Bostic
9889288775 Make WiredTiger extension functions available to linked-in modules via
a new function wiredtiger_extension_api(WT_EXTENSION_API **pp).

Write some WT_EXTENSION_API documentation.

Remove WT_SESSION::msg_printf, add a new msg_printf extension function
instead, convert test/format to use it.

Quit using __UNUSED in the extension code, use explicit (void) casting,
it's cleaner.
2013-04-09 13:12:36 -04:00
Keith Bostic
963d37a4e6 Update copyright notice to 2013. 2013-01-01 09:45:50 +00:00
Keith Bostic
38591db0fd Rename the WiredTiger installed libraries to libwiredtiger_XXX.
Quit installing the nop and reverse_collator libraries.

Rename the session.create block_compressor configuration strings
"bzip2_compress" to "bzip2", and "snappy_compress" to "snappy".

Add documentation for configuring the built-in bzip2 and snappy
configuration in applications.
2012-10-26 11:23:29 +00:00
Michael Cahill
899d510f98 warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' 2012-10-03 18:18:43 +10:00
Keith Bostic
7a3b1353f0 We're sending a mixed message -- remove the copyright notices from files
where we've placed our content in the public domain.
2012-08-15 17:46:54 +00:00
Keith Bostic
c3a3d51b05 lint 2012-07-05 10:46:32 +00:00
Keith Bostic
e45910821f whitespace 2012-04-23 19:57:22 +00:00
Keith Bostic
2354a335ed Add public-domain copyright notices to the extension code, someone may
want to copy them to do their own extensions.
2012-03-12 12:17:57 -04:00
Michael Cahill
6a3cec072f Add a collator extension, include in test/format testing.
closes #118
2011-10-07 16:42:40 +11:00