Files
mongo/lang/python/wiredtiger.i
Michael Cahill 47a8ea8c7c Initial steps towards a Python API. Rename 'del' to 'remove': that seems safe across languages.
Remove underscores from struct names for now: that should be transparent to applications but avoids messiness in the Python API.
refs #31
2011-03-10 22:17:48 +11:00

14 lines
377 B
OpenEdge ABL

%module wiredtiger
/* Set the input argument to point to a temporary variable */
%typemap(in, numinputs=0) WT_CONNECTION ** (WT_CONNECTION *temp) {
$1 = &temp;
}
/* Append connection to returned list */
%typemap(argout) WT_CONNECTION ** {
$result = SWIG_NewPointerObj(SWIG_as_voidptr($1),
SWIGTYPE_p_wt_connection, 0);
}
%include "wiredtiger.h"