summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-05-27 13:07:06 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-05-27 13:07:06 -0400
commit82bb27627b475e9f2a8cd1e992dcb4289b7fc2eb (patch)
tree71dc2363c914e9e4940dde8705f54e682788b285 /lang
parent0b80e04ef819f596effb6203acf5bf803a136e7e (diff)
downloadmongo-82bb27627b475e9f2a8cd1e992dcb4289b7fc2eb.tar.gz
Expose the private field with a macro.
Diffstat (limited to 'lang')
-rw-r--r--lang/java/wiredtiger.i8
-rw-r--r--lang/python/wiredtiger.i6
2 files changed, 7 insertions, 7 deletions
diff --git a/lang/java/wiredtiger.i b/lang/java/wiredtiger.i
index 5b8d033cb54..b3dc74eeaf3 100644
--- a/lang/java/wiredtiger.i
+++ b/lang/java/wiredtiger.i
@@ -392,9 +392,9 @@ javaAsyncHandler(WT_ASYNC_CALLBACK *cb, WT_ASYNC_OP *asyncop, int opret,
WT_UNUSED(flags);
op = (WT_ASYNC_OP_IMPL *)asyncop;
session = O2S(op);
- jcb = (JAVA_CALLBACK *)asyncop->c.lang_private;
+ jcb = (JAVA_CALLBACK *)asyncop->async_app_private;
conn_jcb = (JAVA_CALLBACK *)S2C(session)->lang_private;
- asyncop->c.lang_private = NULL;
+ asyncop->async_app_private = NULL;
/*
* We rely on the fact that the async machinery uses a pool of
@@ -539,7 +539,7 @@ WT_ASYNC_CALLBACK javaApiAsyncHandler = {javaAsyncHandler};
%javamethodmodifiers java_init "protected";
int java_init(jobject jasyncop) {
JAVA_CALLBACK *jcb =
- (JAVA_CALLBACK *)$self->c.lang_private;
+ (JAVA_CALLBACK *)$self->async_app_private;
jcb->jobj = JCALL1(NewGlobalRef, jcb->jnienv, jasyncop);
JCALL1(DeleteLocalRef, jcb->jnienv, jasyncop);
return (0);
@@ -1766,7 +1766,7 @@ err: if (ret != 0)
(*jenv)->GetJavaVM(jenv, &jcb->javavm);
jcb->jcallback = JCALL1(NewGlobalRef, jcb->jnienv, callbackObject);
JCALL1(DeleteLocalRef, jcb->jnienv, callbackObject);
- asyncop->c.lang_private = jcb;
+ asyncop->async_app_private = jcb;
asyncop->c.flags |= WT_CURSTD_RAW;
err: if (ret != 0)
diff --git a/lang/python/wiredtiger.i b/lang/python/wiredtiger.i
index cfa9b51ea25..a07b699156e 100644
--- a/lang/python/wiredtiger.i
+++ b/lang/python/wiredtiger.i
@@ -110,7 +110,7 @@ from packing import pack, unpack
/* XXX Is there a way to avoid SWIG's numbering? */
pcb->pyasynccb = callback_obj5;
Py_XINCREF(pcb->pyasynccb);
- (*$1)->c.lang_private = pcb;
+ (*$1)->async_app_private = pcb;
}
}
}
@@ -1033,8 +1033,8 @@ pythonAsyncCallback(WT_ASYNC_CALLBACK *cb, WT_ASYNC_OP *asyncop, int opret,
op = (WT_ASYNC_OP_IMPL *)asyncop;
session = O2S(op);
- pcb = (PY_CALLBACK *)asyncop->c.lang_private;
- asyncop->c.lang_private = NULL;
+ pcb = (PY_CALLBACK *)asyncop->async_app_private;
+ asyncop->async_app_private = NULL;
ret = 0;
if (pcb->pyasynccb == NULL)