summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-10 17:04:47 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-10 17:04:47 -0500
commita288df4906e687ab6a507dce1498954eef3fdd6d (patch)
treec0d657c30cc13264480c19697f3181f580c866d2 /src/include
parentb470c22c7db3b6db0bd4d2c3bd179b8c9007f053 (diff)
downloadmongo-a288df4906e687ab6a507dce1498954eef3fdd6d.tar.gz
Add a WT_SESSION.app_private field for applications to use in callbacks
taking a WT_SESSION handle. Reference #1423.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/wiredtiger.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/wiredtiger.in b/src/include/wiredtiger.in
index 6e400924e35..06c4e6c083a 100644
--- a/src/include/wiredtiger.in
+++ b/src/include/wiredtiger.in
@@ -745,6 +745,18 @@ struct __wt_session {
/*! The connection for this session. */
WT_CONNECTION *connection;
+ /*
+ * Don't expose app_private to non-C language bindings - they have
+ * their own way to attach data to an operation.
+ */
+#if !defined(SWIG)
+ /*!
+ * A location for applications to store information that will be
+ * available in callbacks taking a WT_SESSION handle.
+ */
+ void *app_private;
+#endif
+
/*!
* Close the session handle.
*