summaryrefslogtreecommitdiffstats
path: root/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-09-11 14:38:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-09-11 14:38:47 +0900
commit884c8093d63402a1ad0b502244b791e3c6782be3 (patch)
treea600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python
parent14e1aa2006796f147f3f4811fb908a6b01e79253 (diff)
downloadextra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz
extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python')
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/.cvsignore3
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/README71
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/TODO14
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py45
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py.in45
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py38
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py.in38
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/general-maps.i103
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/helperfuncs.i292
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-dlp-maps.i265
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-error.i71
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-file-maps.i146
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-socket-maps.i62
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.i104
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.py989
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock_wrap.c13491
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisockextras.py24
-rw-r--r--debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/pisocktests.py192
-rwxr-xr-xdebian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/run.sh5
19 files changed, 15998 insertions, 0 deletions
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/.cvsignore b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/.cvsignore
new file mode 100644
index 00000000..97d756b2
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/.cvsignore
@@ -0,0 +1,3 @@
+build
+setup.py
+setup-standalone.py
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/README b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/README
new file mode 100644
index 00000000..0e91b19e
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/README
@@ -0,0 +1,71 @@
+Python bindings for libpisock (the pilot-link core)
+------------------------------------------------------------------------
+The C code for the interface is generated using SWIG, but SWIG is not
+required for building/installing it. To regenerate the wrapper from the
+SWIG source, do this:
+
+ cd ./src
+ swig -python pisock.i
+
+There is currently no documentation; that should be fixed "soon". To see
+real use examples, look at the test/pisocktests.py file
+
+
+* INSTALLATION
+
+This package uses the standard Python "distutils" for installation. If you
+are running a version of Python >= 2.0 you have these already; for Python
+1.5.2 you can download a distutils package from python.org. If you want to
+build it for a Python version older than 1.5.2, you are on your own; it
+probably won't work anyway.
+
+To compile the package, run the command
+
+ python setup.py build
+
+You may safely ignore any warnings from the compiler.
+
+To install the package, run the command
+
+ python setup.py install
+
+It will place a module called 'pisock.so' in Python's site-packages
+directory. To use the module, simply 'import pisock'.
+
+
+* STANDALONE VERSION
+
+You can also build a standalone version that doesn't require the libpisock
+shared library to be installed on the system. This is particularly useful
+if you need to build a packaged application that doesn't depend on
+additional installs. To build the standalone verison, run the command
+
+ python setup-standalone.py build
+
+Then copy the files from the build/libxxx/ folder to your Python package
+
+
+* MULTIPLE PYTHON INSTALLS
+
+Note: If you have more than one version of Python installed, replace
+'python' in the above commands with the name of the interpreter you want to
+use for building and installation. (For example, 'python2' for Python 2.x
+on some Linux distributions.) If you want to build/install for multiple
+versions of Python, just repeat the above steps for each one.
+
+
+* LICENSE
+
+This library is free software; you can redistribute it and/or modify it
+under the terms of the GNU Library General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+
+This library is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
+License for more details.
+
+You should have received a copy of the GNU Library General Public License
+along with this library; if not, write to the Free Software Foundation,
+Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/TODO b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/TODO
new file mode 100644
index 00000000..1a2e342e
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/TODO
@@ -0,0 +1,14 @@
+
+TODO for python-libpisock:
+
+ - clean up prc.py from Pyrite/Publisher/palmdb-xml and include it
+ - shadow class for pi_file
+ - shadow class for DLP connection
+ - shadow class for DLP database
+ - wrap the pi-sync functions
+ - wrap the netsync related functions
+ - do something about pack/unpack of fundamental data types (maybe
+ use Python code from Pyrite; consider a simple API which will
+ allow adding other packer/unpackers more easily later)
+ - examples
+ - documentation
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py
new file mode 100644
index 00000000..7d873845
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py
@@ -0,0 +1,45 @@
+#!/usr/bin/python
+#
+# Copyright (c) 2005, Florent Pillet.
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Library General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or (at
+# your option) any later version.
+#
+# This library is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public License
+# along with this library; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# $Id: setup-standalone.py.in,v 1.4 2006/05/31 17:59:55 desrod Exp $
+
+from distutils.core import setup, Extension
+import sys
+
+if sys.platform.startswith('darwin'):
+ # additional link options for Mac OS X
+ link_options = ['-framework','Carbon','-framework','System','-framework','IOKit']
+else:
+ # TODO: test on other platforms and add options as appropriate
+ link_options = None
+
+setup(name = "python-libpisock",
+ version = "0.12.5",
+ description = "Python bindings for the pisock library linked in a standalone module (not requiring the libpisock shared lib).",
+ author = "Florent Pillet",
+ author_email = "pilot-link@florentpillet.com",
+ url = "http://www.pilot-link.org/",
+
+ ext_modules = [Extension("_pisock", ["src/pisock_wrap.c"],
+ include_dirs = ['../../include'],
+ extra_objects = ['../../libpisock/.libs/libpisock.a'],
+ extra_link_args = link_options
+ )
+ ],
+ package_dir = {'': 'src'},
+ py_modules = ["pisock","pisockextras"])
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py.in b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py.in
new file mode 100644
index 00000000..6e88fa63
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup-standalone.py.in
@@ -0,0 +1,45 @@
+#!/usr/bin/python
+#
+# Copyright (c) 2005, Florent Pillet.
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Library General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or (at
+# your option) any later version.
+#
+# This library is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public License
+# along with this library; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# $Id: setup-standalone.py.in,v 1.4 2006/05/31 17:59:55 desrod Exp $
+
+from distutils.core import setup, Extension
+import sys
+
+if sys.platform.startswith('darwin'):
+ # additional link options for Mac OS X
+ link_options = ['-framework','Carbon','-framework','System','-framework','IOKit']
+else:
+ # TODO: test on other platforms and add options as appropriate
+ link_options = None
+
+setup(name = "python-libpisock",
+ version = "@PILOT_LINK_VERS@.@PILOT_LINK_MAJOR@.@PILOT_LINK_MINOR@",
+ description = "Python bindings for the pisock library linked in a standalone module (not requiring the libpisock shared lib).",
+ author = "Florent Pillet",
+ author_email = "pilot-link@florentpillet.com",
+ url = "http://www.pilot-link.org/",
+
+ ext_modules = [Extension("_pisock", ["src/pisock_wrap.c"],
+ include_dirs = ['../../include'],
+ extra_objects = ['../../libpisock/.libs/libpisock.a'],
+ extra_link_args = link_options
+ )
+ ],
+ package_dir = {'': 'src'},
+ py_modules = ["pisock","pisockextras"])
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py
new file mode 100644
index 00000000..d148d267
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py
@@ -0,0 +1,38 @@
+#!/usr/bin/python
+#
+# Copyright (c) 2004-2005, Nick Piper.
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Library General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or (at
+# your option) any later version.
+#
+# This library is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public License
+# along with this library; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# $Id: setup.py.in,v 1.7 2006/05/31 17:59:55 desrod Exp $
+
+from distutils.core import setup, Extension
+
+setup(name = "python-libpisock",
+ version = "0.12.5",
+ description = "Python bindings for the pisock library.",
+ author = "Nick Piper",
+ author_email = "nick@nickpiper.co.uk",
+ url = "http://www.pilot-link.org/",
+
+ ext_modules = [Extension("_pisock",["src/pisock_wrap.c"],
+ include_dirs=['../../include'],
+ library_dirs=['../../libpisock/.libs'],
+ libraries=['pisock'],
+ )
+ ],
+ package_dir = {'': 'src'},
+ py_modules = ["pisock","pisockextras"])
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py.in b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py.in
new file mode 100644
index 00000000..053f0d0b
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/setup.py.in
@@ -0,0 +1,38 @@
+#!/usr/bin/python
+#
+# Copyright (c) 2004-2005, Nick Piper.
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Library General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or (at
+# your option) any later version.
+#
+# This library is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public License
+# along with this library; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# $Id: setup.py.in,v 1.7 2006/05/31 17:59:55 desrod Exp $
+
+from distutils.core import setup, Extension
+
+setup(name = "python-libpisock",
+ version = "@PILOT_LINK_VERS@.@PILOT_LINK_MAJOR@.@PILOT_LINK_MINOR@",
+ description = "Python bindings for the pisock library.",
+ author = "Nick Piper",
+ author_email = "nick@nickpiper.co.uk",
+ url = "http://www.pilot-link.org/",
+
+ ext_modules = [Extension("_pisock",["src/pisock_wrap.c"],
+ include_dirs=['../../include'],
+ library_dirs=['../../libpisock/.libs'],
+ libraries=['pisock'],
+ )
+ ],
+ package_dir = {'': 'src'},
+ py_modules = ["pisock","pisockextras"])
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/general-maps.i b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/general-maps.i
new file mode 100644
index 00000000..9393f7f7
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/general-maps.i
@@ -0,0 +1,103 @@
+/*
+ * general-maps.i
+ * Map types used throughout libpisock
+ *
+ * Copyright (c) 2005, Florent Pillet.
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/* It would be nice to use python time types ? NCP */
+%apply long { time_t };
+%apply unsigned long { recordid_t };
+
+// ------------------------------------------------------
+// Proper pi_buffer_t management, specifically designed
+// as to not leak in case of early termination (hence the
+// freearg part)
+// ------------------------------------------------------
+%typemap (in,numinputs=0) (pi_buffer_t *) {
+ $1 = pi_buffer_new(0xFFFF);
+}
+
+%typemap (freearg) (pi_buffer_t *) {
+ if ($1) {
+ pi_buffer_free($1);
+ }
+}
+
+%typemap (python,argout) (pi_buffer_t *) {
+ if ($1) {
+ PyObject *o1 = Py_BuildValue("s#", $1->data, $1->used);
+ $result = t_output_helper($result, o1);
+ }
+}
+
+%typemap (in,numinputs=0) (size_t *OUTBUFLEN) (size_t outbuflen) {
+ outbuflen = 0xFFFF;
+ $1 = &outbuflen;
+}
+
+// -------------------------------------
+// struct DBInfo
+// -------------------------------------
+%typemap (in,numinputs=0) struct DBInfo *OUTPUT (struct DBInfo temp) %{
+ $1 = &temp;
+%}
+
+%typemap (python,argout) struct DBInfo *OUTPUT %{
+ if ($1) $result = t_output_helper($result, PyObjectFromDBInfo($1));
+%}
+
+// ------------------------------------------------------------------
+// Type/creator strings
+// a generic 4-character string type, for use as a type or creator ID
+// ------------------------------------------------------------------
+%typemap (python,in) unsigned long STR4 {
+ if (!($input) || ($input == Py_None)) {
+ $1 = 0;
+ } else {
+ if (!PyString_Check($input) || (PyString_Size($input) != 4)) {
+ PyErr_SetString(PyExc_ValueError, "argument must be a 4-character string");
+ return 0;
+ }
+ $1 = makelong(PyString_AsString($input));
+ }
+}
+
+%typemap (python,in) long STR4 {
+ if (!($input) || ($input == Py_None)) {
+ $1 = 0;
+ } else {
+ if (!PyString_Check($input) || (PyString_Size($input) != 4)) {
+ PyErr_SetString(PyExc_ValueError, "argument must be a 4-character string");
+ return 0;
+ }
+ $1 = makelong(PyString_AsString($input));
+ }
+}
+
+%typemap (python,argout) unsigned long *OUTSTR4 {
+ if ($1) {
+ PyObject *o = PyString_FromStringAndSize(printlong(*$1), 4);
+ $result = t_output_helper($result, o);
+ }
+}
+
+%typemap (in,numinputs=0) unsigned long *OUTSTR4 (unsigned long temp) {
+ $1 = &temp;
+}
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/helperfuncs.i b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/helperfuncs.i
new file mode 100644
index 00000000..63ed1a60
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/helperfuncs.i
@@ -0,0 +1,292 @@
+/*
+ * helperfuncs.i
+ *
+ * Factored-out functions to build return values from common structures
+ *
+ * Copyright (c) 2005, Florent Pillet.
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $Id: helperfuncs.i,v 1.4 2006/05/31 17:59:55 desrod Exp $
+ */
+
+%{
+
+static PyObject *ConvertFromEncoding(const char *data, const char *encoding, const char *errors, int allowErrors)
+{
+ PyObject *buffer, *string = NULL;
+
+ buffer = PyBuffer_FromMemory((void *)data, strlen(data));
+ if (buffer == NULL)
+ {
+ if (allowErrors)
+ {
+ PyErr_Clear();
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ return NULL;
+ }
+
+ string = PyUnicode_FromEncodedObject(buffer, encoding, errors);
+ if (string == NULL)
+ goto error;
+
+ Py_DECREF(buffer);
+ return string;
+
+error:
+ Py_XDECREF(buffer);
+ Py_XDECREF(string);
+ if (allowErrors)
+ {
+ PyErr_Clear();
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ return NULL;
+}
+
+static int ConvertToEncoding(PyObject *object, const char *encoding, const char *errors, int allowErrors, char *buffer, int maxBufSize)
+{
+ int len;
+ char *s;
+ PyObject *encoded = NULL;
+
+ if (PyString_Check(object))
+ encoded = PyString_AsEncodedObject(object, encoding, errors);
+ else if (PyUnicode_Check(object))
+ encoded = PyUnicode_AsEncodedString(object, encoding, errors);
+
+ if (encoded == NULL)
+ goto error;
+
+ s = PyString_AsString(encoded);
+ if (s == NULL)
+ goto error;
+ len = strlen(s);
+ if (len)
+ {
+ if (len >= maxBufSize)
+ len = maxBufSize - 1;
+ memcpy(buffer, s, len);
+ }
+ buffer[len] = 0;
+
+ Py_DECREF(encoded);
+ return 1;
+
+error:
+ Py_XDECREF(encoded);
+ if (allowErrors)
+ {
+ PyErr_Clear();
+ memset(buffer, 0, maxBufSize);
+ }
+ return 0;
+}
+
+static PyObject *PyObjectFromDBInfo(const struct DBInfo *dbi)
+{
+ PyObject *returnObj;
+ PyObject *nameObj = ConvertFromEncoding(dbi->name, "palmos", "replace", 1);
+
+ returnObj = Py_BuildValue("{sisisisOsOsislslslslsisOsisisisisisisisisisisisisisisi}",
+ "more", dbi->more,
+ "flags", dbi->flags,
+ "miscFlags", dbi->miscFlags,
+ "type", PyString_FromStringAndSize(printlong(dbi->type), 4),
+ "creator", PyString_FromStringAndSize(printlong(dbi->creator), 4),
+ "version", dbi->version,
+ "modnum", dbi->modnum,
+ "createDate", dbi->createDate,
+ "modifyDate", dbi->modifyDate,
+ "backupDate", dbi->backupDate,
+ "index", dbi->index,
+ "name", nameObj,
+
+ "flagResource", !!(dbi->flags & dlpDBFlagResource),
+ "flagReadOnly", !!(dbi->flags & dlpDBFlagReadOnly),
+ "flagAppInfoDirty", !!(dbi->flags & dlpDBFlagAppInfoDirty),
+ "flagBackup", !!(dbi->flags & dlpDBFlagBackup),
+ "flagLaunchable", !!(dbi->flags & dlpDBFlagLaunchable),
+ "flagOpen", !!(dbi->flags & dlpDBFlagOpen),
+ "flagNewer", !!(dbi->flags & dlpDBFlagNewer),
+ "flagReset", !!(dbi->flags & dlpDBFlagReset),
+ "flagCopyPrevention", !!(dbi->flags & dlpDBFlagCopyPrevention),
+ "flagStream", !!(dbi->flags & dlpDBFlagStream),
+ "flagExcludeFromSync", !!(dbi->miscFlags & dlpDBMiscFlagExcludeFromSync),
+
+ "flagSchema", !!(dbi->flags & dlpDBFlagSchema),
+ "flagSecure", !!(dbi->flags & dlpDBFlagSecure),
+ "flagExtended", !!(dbi->flags & dlpDBFlagExtended),
+ "flagFixedUp", !!(dbi->flags & dlpDBFlagFixedUp));
+
+ Py_DECREF(nameObj);
+ return returnObj;
+}
+
+/* unused at that time
+static int PyObjectToDBInfo(PyObject *o, struct DBInfo *di)
+{
+ PyObject *nameObj;
+
+ di->more = (int) DGETLONG(o, "more", 0);
+ di->type = makelong(DGETSTR(o, "type", " "));
+ di->creator = makelong(DGETSTR(o, "creator", " "));
+ di->version = DGETLONG(o, "version", 0);
+ di->modnum = DGETLONG(o, "modnum", 0);
+ di->createDate = DGETLONG(o, "createDate", 0);
+ di->modifyDate = DGETLONG(o, "modifyDate", 0);
+ di->backupDate = DGETLONG(o, "backupDate", 0);
+ di->index = DGETLONG(o, "index", 0);
+ memset(di->name, 0, sizeof(di->name));
+ nameObj = PyDict_GetItemString(o,"name");
+ if (nameObj) {
+ if (!ConvertToEncoding(nameObj, "palmos", "replace", 1, di->name, sizeof(di->name)))
+ return 0;
+ }
+ di->flags = 0;
+ if (DGETLONG(o,"flagResource",0)) di->flags |= dlpDBFlagResource;
+ if (DGETLONG(o,"flagReadOnly",0)) di->flags |= dlpDBFlagReadOnly;
+ if (DGETLONG(o,"flagAppInfoDirty",0)) di->flags |= dlpDBFlagAppInfoDirty;
+ if (DGETLONG(o,"flagBackup",0)) di->flags |= dlpDBFlagBackup;
+ if (DGETLONG(o,"flagLaunchable",0)) di->flags |= dlpDBFlagLaunchable;
+ if (DGETLONG(o,"flagOpen",0)) di->flags |= dlpDBFlagOpen;
+ if (DGETLONG(o,"flagNewer",0)) di->flags |= dlpDBFlagNewer;
+ if (DGETLONG(o,"flagReset",0)) di->flags |= dlpDBFlagReset;
+ if (DGETLONG(o,"flagCopyPrevention",0)) di->flags |= dlpDBFlagCopyPrevention;
+ if (DGETLONG(o,"flagStream",0)) di->flags |= dlpDBFlagStream;
+ if (DGETLONG(o,"flagSchema",0)) di->flags |= dlpDBFlagSchema;
+ if (DGETLONG(o,"flagSecure",0)) di->flags |= dlpDBFlagSecure;
+ if (DGETLONG(o,"flagExtended",0)) di->flags |= dlpDBFlagExtended;
+ if (DGETLONG(o,"flagFixedUp",0)) di->flags |= dlpDBFlagFixedUp;
+ di->miscFlags = 0;
+ if (DGETLONG(o,"flagExcludeFromSync",0)) di->miscFlags |= dlpDBMiscFlagExcludeFromSync;
+ return 1;
+}
+*/
+
+static PyObject* PyObjectFromDBSizeInfo(const struct DBSizeInfo *si)
+{
+ return Py_BuildValue("{slslslslslsl}",
+ "numRecords", si->numRecords,
+ "totalBytes", si->totalBytes,
+ "dataBytes", si->dataBytes,
+ "appBlockSize", si->appBlockSize,
+ "sortBlockSize", si->sortBlockSize,
+ "maxRecSize", si->maxRecSize);
+}
+
+static PyObject* PyObjectFromCardInfo(const struct CardInfo *ci)
+{
+ PyObject *returnObj, *nameObj, *manufacturerObj;
+
+ nameObj = ConvertFromEncoding(ci->name, "cp1252", "replace", 1);
+ manufacturerObj = ConvertFromEncoding(ci->manufacturer, "cp1252", "replace", 1);
+
+ returnObj = Py_BuildValue("{sisislslslslsOsOsi}",
+ "card", ci->card,
+ "version", ci->version,
+ "creation", ci->creation,
+ "romSize", ci->romSize,
+ "ramSize", ci->ramSize,
+ "ramFree", ci->ramFree,
+ "name", nameObj,
+ "manufacturer", manufacturerObj,
+ "more", ci->more);
+
+ Py_DECREF(nameObj);
+ Py_DECREF(manufacturerObj);
+ return returnObj;
+}
+
+static PyObject* PyObjectFromSysInfo(const struct SysInfo *si)
+{
+ return Py_BuildValue("{slslss#}",
+ "romVersion", si->romVersion,
+ "locale", si->locale,
+ "name", si->prodID, si->prodIDLength);
+}
+
+static PyObject* PyObjectFromPilotUser(const struct PilotUser *pi)
+{
+ PyObject *nameObj, *passwordObj, *returnObj;
+
+ nameObj = ConvertFromEncoding(pi->username, "palmos", "replace", 1);
+ passwordObj = ConvertFromEncoding(pi->password, "palmos", "strict", 1);
+
+ returnObj = Py_BuildValue("{slslslslslsOsO}",
+ "userID", pi->userID,
+ "viewerID", pi->viewerID,
+ "lastSyncPC", pi->lastSyncPC,
+ "successfulSyncDate", pi->successfulSyncDate,
+ "lastSyncDate", pi->lastSyncDate,
+ "name", nameObj,
+ "password", passwordObj);
+
+ Py_DECREF(nameObj);
+ Py_DECREF(passwordObj);
+ return returnObj;
+}
+
+static int PyObjectToPilotUser(PyObject *o, struct PilotUser *pi)
+{
+ /* return 0 if string conversion to palmos charset failed, otherwise return 1 */
+ PyObject *stringObj;
+
+ pi->userID = DGETLONG(o,"userID",0);
+ pi->viewerID = DGETLONG(o,"viewerID",0);
+ pi->lastSyncPC = DGETLONG(o,"lastSyncPC",0);
+ pi->successfulSyncDate = DGETLONG(o,"successfulSyncDate",0);
+ pi->lastSyncDate = DGETLONG(o,"lastSyncDate",0);
+
+ memset(pi->username, 0, sizeof(pi->username));
+ stringObj = PyDict_GetItemString(o,"name");
+ if (stringObj) {
+ if (!ConvertToEncoding(stringObj, "palmos", "replace", 0, pi->username, sizeof(pi->username)))
+ return 0;
+ }
+
+ memset(pi->password, 0, sizeof(pi->password));
+ stringObj = PyDict_GetItemString(o,"password");
+ if (stringObj) {
+ if (!ConvertToEncoding(stringObj, "palmos", "strict", 0, pi->password, sizeof(pi->password)))
+ return 0;
+ }
+
+ return 1;
+}
+
+static PyObject* PyObjectFromNetSyncInfo(const struct NetSyncInfo *ni)
+{
+ return Py_BuildValue("{sissssss}",
+ "lanSync", ni->lanSync,
+ "hostName", ni->hostName,
+ "hostAddress", ni->hostAddress,
+ "hostSubnetMask", ni->hostSubnetMask);
+}
+
+static void PyObjectToNetSyncInfo(PyObject *o, struct NetSyncInfo *ni)
+{
+ ni->lanSync = (int) DGETLONG(o,"lanSync",0);
+ strncpy(ni->hostName, DGETSTR(o,"hostName",""), sizeof(ni->hostName));
+ strncpy(ni->hostAddress, DGETSTR(o,"hostAddress",""), sizeof(ni->hostAddress));
+ strncpy(ni->hostSubnetMask, DGETSTR(o,"hostSubnetMask",""), sizeof(ni->hostSubnetMask));
+}
+
+%}
+
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-dlp-maps.i b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-dlp-maps.i
new file mode 100644
index 00000000..fcddf05b
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-dlp-maps.i
@@ -0,0 +1,265 @@
+/*
+ * pi-dlp-maps.i
+ *
+ * Maps for the DLP function arguments, as well as some custom implementations
+ *
+ * Copyright (c) 2005, Florent Pillet.
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+// TODO: convert PI_CONST char *dbname parameters using the ConvertToEncoding() function
+// TODO: map output parameters for dlp_ExpCardInfo()
+// TODO: map output parameters for dlp_ExpSlotMediaType()
+// TODO: map output parameters for VFS functions
+// TODO: map 'unsigned long *restype' output parameter
+
+// -----------------------------------------------
+// a char value that allows None for a null value.
+// -----------------------------------------------
+%typemap (python,in) char *ALLOWNULL {
+ if (!($input) || ($input == Py_None))
+ $1 = NULL;
+ else
+ $1 = PyString_AsString($input);
+}
+
+// -------------------------------------
+// type/creator pair
+// -------------------------------------
+%typemap (python,in) unsigned long creator, unsigned long type {
+ if (PyString_Check($input))
+ $1 = makelong(PyString_AS_STRING($input));
+ else if (PyInt_Check($input))
+ $1 = PyInt_AsLong($input);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+}
+
+// ----------------------------------------------------------
+// output parameters. Output parameters should be ommitted
+// when writing Python code, the result is either a single
+// value or a list (depending on whether there is one or more
+// output parameters) containing the output values
+// ----------------------------------------------------------
+%apply int *OUTPUT { int *dbhandle };
+%apply int *OUTPUT { int *numrecs };
+%apply int *OUTPUT { int *recattrs };
+%apply int *OUTPUT { int *category };
+%apply int *OUTPUT { int *cardno };
+%apply int *OUTPUT { int *recindex };
+%apply int *OUTPUT { int *resindex };
+%apply int *OUTPUT { int *resid };
+
+%apply long *OUTPUT { long *usedbytes };
+%apply long *OUTPUT { long *totalbytes };
+
+%apply unsigned long *OUTPUT { unsigned long *feature };
+%apply unsigned long *OUTPUT { recordid_t *recuid };
+%apply unsigned long *OUTPUT { recordid_t *newrecuid };
+%apply unsigned long *OUTPUT { unsigned long *localid };
+%apply unsigned long *OUTPUT { unsigned long *retcode };
+
+// -------------------------------------
+// time_t *time
+// -------------------------------------
+%rename(dlp_GetSysDateTime_) dlp_GetSysDateTime;
+
+%typemap (python,in,numinputs=0) time_t *time (time_t time) {
+ $1 = (time_t *)&time;
+}
+%typemap (python,argout) time_t *time (time_t time) {
+ if ($1) $result = PyInt_FromLong((unsigned long ) $1);
+}
+
+// -------------------------------------
+// struct PilotUser
+// -------------------------------------
+%typemap (python,in) const struct PilotUser* (struct PilotUser temp) %{
+ if (!PyObjectToPilotUser($input, &temp))
+ SWIG_fail;
+ $1 = &temp;
+%}
+
+%typemap (python,in,numinputs=0) struct PilotUser* (struct PilotUser temp) %{
+ $1 = &temp;
+%}
+
+%typemap (python,argout) struct PilotUser* %{
+ if ($1) $result = t_output_helper($result, PyObjectFromPilotUser($1));
+%}
+
+// -------------------------------------
+// struct SysInfo
+// -------------------------------------
+%typemap (in,numinputs=0) struct SysInfo* (struct SysInfo temp) %{
+ $1 = &temp;
+%}
+
+%typemap (python,argout) struct SysInfo * %{
+ if ($1) $result = t_output_helper($result, PyObjectFromSysInfo($1));
+%}
+
+// -------------------------------------
+// struct CardInfo
+// -------------------------------------
+%typemap (python,argout) (struct CardInfo *cardinfo) %{
+ if ($1) $result = t_output_helper($result, PyObjectFromCardInfo($1));
+%}
+
+%typemap (python,in,numinputs=0) struct CardInfo *cardinfo (struct CardInfo temp) %{
+ $1 = &temp;
+%}
+
+// -------------------------------------
+// struct NetSyncInfo
+// -------------------------------------
+%typemap (python,in,numinputs=0) struct NetSyncInfo *OUTPUT (struct NetSyncInfo temp) {
+ $1 = &temp;
+}
+
+%typemap (python,argout) struct NetSyncInfo *OUTPUT %{
+ if ($1) $result = t_output_helper($result, PyObjectFromNetSyncInfo($1));
+%}
+
+%typemap (python,in) struct NetSyncInfo *INPUT (struct NetSyncInfo temp) %{
+ PyObjectToNetSyncInfo($input, &temp);
+ $1 = &temp;
+%}
+
+// -------------------------------------
+// Passing data as parameter
+// -------------------------------------
+%typemap (python,in) (const void *databuf, size_t datasize) %{
+ $1 = (void *)PyString_AsString($input);
+ $2 = PyString_Size($input);
+%}
+
+%typemap (python,in) (size_t datasize, const void *databuf) %{
+ $1 = PyString_Size($input);
+ $2 = (void *)PyString_AsString($input);
+%}
+
+// -------------------------------------
+// Used by dlp_ReadAppPreference
+// -------------------------------------
+%typemap (python,argout) (void *databuf, size_t *datasize, int *version) %{
+ if ($1) $result = t_output_helper($result, Py_BuildValue("is#", $3, $1, $2));
+%}
+
+// ---------------------------------------------------------
+// Finding databases: proper wrapping of dlp_Find* functions
+// so that they do not need to be passed a pointer
+// ---------------------------------------------------------
+%typemap (python,in,numinputs=0) (struct DBInfo *dbInfo, struct DBSizeInfo *dbSize)
+ (struct DBInfo temp1, struct DBSizeInfo temp2) %{
+ $1 = &temp1;
+ $2 = &temp2;
+%}
+
+%typemap (python,argout) (struct DBInfo *dbInfo, struct DBSizeInfo *dbSize) %{
+ if ($1) $result = t_output_helper($result, PyObjectFromDBInfo($1));
+ if ($2) $result = t_output_helper($result, PyObjectFromDBSizeInfo($2));
+%}
+
+// -------------------------------------
+// Processing of a buffer containing a
+// database list
+// -------------------------------------
+// we provide a python implementation for dlp_ReadDBList (see ../pisockextras.py)
+%rename(dlp_ReadDBList_) dlp_ReadDBList;
+
+%typemap (python,argout) (pi_buffer_t *dblist) %{
+ if ($1) {
+ int j;
+ struct DBInfo info;
+ $result = PyList_New(($1->used / sizeof(struct DBInfo)));
+ for (j=0; j < ($1->used / sizeof(struct DBInfo)); j++) {
+ memcpy(&info, $1->data + j * sizeof(struct DBInfo), sizeof(struct DBInfo));
+ PyObject *o = PyObjectFromDBInfo(&info);
+ Py_INCREF(o);
+ PyList_SET_ITEM($result, j, o);
+ }
+ }
+%}
+
+// -----------------------------------------
+// Mapping for dlp_ExpSlotEnumerate
+// -----------------------------------------
+%typemap (python,in,numinputs=0) (int *numslots, int *slotrefs)
+ (int numSlots, int slotRefs[16]) %{
+ numSlots = sizeof(slotRefs) / sizeof(slotRefs[0]);
+ $1 = &numSlots;
+ $2 = &slotRefs[0];
+%}
+
+%typemap (python,argout) (int *numslots, int *slotrefs) %{
+ if ($1 && $2) {
+ int slotIndex;
+ for (slotIndex=0; slotIndex < *$1; slotIndex++)
+ t_output_helper($result, PyInt_FromLong($2[slotIndex]));
+ }
+%}
+
+// -----------------------------------------
+// Custom wrappers for some of the functions
+// -----------------------------------------
+%native(dlp_ReadRecordIDList) PyObject *_wrap_dlp_ReadRecordIDList(PyObject *, PyObject *);
+
+%{
+static PyObject *_wrap_dlp_ReadRecordIDList (PyObject *self, PyObject *args) {
+ int sd, dbhandle, sort, start, max;
+ int ret;
+ recordid_t *buf;
+ int count, i;
+ PyObject *list;
+
+ buf = (recordid_t *)PyMem_Malloc(0xFFFF);
+
+ if (!PyArg_ParseTuple(args, "iiiii", &sd, &dbhandle, &sort, &start, &max))
+ return NULL;
+
+ /* this is a rather simplistic wrapper. if max is too big, we just
+ * refuse to do it; we don't loop, figuring that that is the job of
+ * the python wrapper.
+ */
+ if (max > (0xFFFF/sizeof(recordid_t))) {
+ PyErr_SetString(PyExc_ValueError, "can only return about 64k worth of ids at once");
+ return NULL;
+ }
+
+ {
+ PyThreadState *save = PyEval_SaveThread();
+ ret = dlp_ReadRecordIDList(sd, dbhandle, sort, start, max, buf, &count);
+ PyEval_RestoreThread(save);
+ }
+
+ if (ret < 0) {
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", ret, dlp_strerror(ret)));
+ PyMem_Free(buf);
+ return NULL;
+ }
+
+ list = PyList_New(0);
+ for (i=0; i<count; i++)
+ PyList_Append(list, PyInt_FromLong((long)buf[i]));
+
+ PyMem_Free(buf);
+ return list;
+}
+%}
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-error.i b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-error.i
new file mode 100644
index 00000000..4ae14ac4
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-error.i
@@ -0,0 +1,71 @@
+/*
+ * pi-error.i
+ *
+ * Error handling. Every function that returns a PI_ERR takes a socket
+ * descriptor as first argument. It is therefore easy to just use
+ * the first arg to query the sd about the error.
+ *
+ * Copyright (c) 2005, Florent Pillet.
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $Id: pi-error.i,v 1.8 2006/05/31 17:59:55 desrod Exp $
+ */
+
+%{
+static int pythonWrapper_handlePiErr(int sd, int err)
+{
+ /* This function is called by each function
+ * which receives a PI_ERR return code
+ */
+ if (err == PI_ERR_DLP_PALMOS) {
+ int palmerr = pi_palmos_error(sd);
+ if (palmerr == dlpErrNoError)
+ return 0;
+ if (palmerr > dlpErrNoError && palmerr <= dlpErrUnknown) {
+ PyErr_SetObject(PIError,
+ Py_BuildValue("(is)", palmerr, dlp_strerror(palmerr)));
+ return err;
+ }
+ }
+
+ if (IS_PROT_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "protocol error"));
+ else if (IS_SOCK_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "socket error"));
+ else if (IS_DLP_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "DLP error"));
+ else if (IS_FILE_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "file error"));
+ else if (IS_GENERIC_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "generic error"));
+ else
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "pisock error"));
+
+ return err;
+}
+%}
+
+
+// -----------------------------------------------------------------
+// Returned errors: we pass them to our static function for handling
+// (reduces the total wrapper code size)
+// -----------------------------------------------------------------
+%typemap (python,out) PI_ERR %{
+ if ($1 < 0 && pythonWrapper_handlePiErr(arg1, $1) != 0)
+ SWIG_fail;
+ $result = Py_None;
+ Py_INCREF(Py_None);
+%}
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-file-maps.i b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-file-maps.i
new file mode 100644
index 00000000..051757f6
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-file-maps.i
@@ -0,0 +1,146 @@
+/*
+ * pi-file-maps.i
+ *
+ * Provide our own wrappers for pi_file_install and pi_file_retrieve
+ *
+ * Copyright (c) 2005, Florent Pillet.
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $Id: pi-file-maps.i,v 1.7 2006/05/31 17:59:55 desrod Exp $
+ */
+
+// TODO: handle callback functions (ignored for now)
+
+%native(pi_file_install) PyObject *_wrap_pi_file_install(PyObject *, PyObject *);
+%native(pi_file_retrieve) PyObject *_wrap_pi_file_retrieve(PyObject *, PyObject *);
+
+%wrapper %{
+/*
+ * Python syntax: pi_file_install(sd, cardno, filename, callback)
+ */
+static PyObject *_wrap_pi_file_install (PyObject *self, PyObject *args)
+{
+ PyObject *obj1 = NULL;
+ PyObject *obj2 = NULL;
+ PyObject *obj3 = NULL;
+ PyObject *cback = NULL;
+ int sd, cardno, result;
+ char *path = NULL;
+ pi_file_t *pf = NULL;
+
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:pi_file_install",&obj1, &obj2, &obj3, &cback))
+ return NULL;
+
+ sd = (int)SWIG_As_int(obj1);
+ cardno = (int)SWIG_As_int(obj2);
+ if (!SWIG_AsCharPtr(obj3, (char**)&path)) {
+ SWIG_arg_fail(3);
+ return NULL;
+ }
+
+ pf = pi_file_open(path);
+ if (pf == NULL) {
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", PI_ERR_FILE_INVALID, "invalid file"));
+ return NULL;
+ }
+
+ {
+ PyThreadState *save = PyEval_SaveThread();
+ result = pi_file_install(pf, sd, cardno, NULL);
+ PyEval_RestoreThread(save);
+ }
+
+ pi_file_close(pf);
+
+ if (result < 0) {
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
+/*
+ * Python syntax: pi_file_retrieve(sd, cardno, dbname, storagepath, callback)
+ */
+static PyObject *_wrap_pi_file_retrieve (PyObject *self, PyObject *args)
+{
+ PyObject *obj1 = NULL;
+ PyObject *obj2 = NULL;
+ PyObject *obj3 = NULL;
+ PyObject *obj4 = NULL;
+ PyObject *cback = NULL;
+ int sd, cardno, result;
+ char *dbname = NULL;
+ char *path = NULL;
+ struct DBInfo dbi;
+ pi_file_t *pf = NULL;
+ PyThreadState *save;
+
+ if (!PyArg_ParseTuple(args, (char *)"OOOOO:pi_file_retrieve",&obj1,&obj2,&obj3,&obj4,&cback))
+ return NULL;
+
+ sd = SWIG_As_int(obj1);
+ cardno = SWIG_As_int(obj2);
+
+ if (!SWIG_AsCharPtr(obj3, (char**)&dbname)) {
+ SWIG_arg_fail(3);
+ return NULL;
+ }
+
+ if (!SWIG_AsCharPtr(obj4, (char **)&path)) {
+ SWIG_arg_fail(4);
+ return NULL;
+ }
+
+ /* let other threads run */
+ save = PyEval_SaveThread();
+
+ memset(&dbi, 0, sizeof(dbi));
+ result = dlp_FindDBByName(sd, cardno, dbname, NULL, NULL, &dbi, NULL);
+ if (result < 0) {
+ PyEval_RestoreThread(save);
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ pf = pi_file_create(path, &dbi);
+ if (pf == NULL) {
+ PyEval_RestoreThread(save);
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", PI_ERR_FILE_INVALID, "invalid file"));
+ return NULL;
+ }
+
+ result = pi_file_retrieve(pf, sd, cardno, NULL);
+ if (result < 0) {
+ PyEval_RestoreThread(save);
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ result = pi_file_close(pf);
+ PyEval_RestoreThread(save);
+ if (result < 0) {
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
+%}
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-socket-maps.i b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-socket-maps.i
new file mode 100644
index 00000000..abc9eb1a
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pi-socket-maps.i
@@ -0,0 +1,62 @@
+/*
+ * pi-socket-maps.i
+ *
+ * Provide our own wrappers for pi_file_install and pi_file_retrieve
+ *
+ * Copyright (c) 2004, Rob Tillotson
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $Id: pi-socket-maps.i,v 1.7 2006/05/31 17:59:55 desrod Exp $
+ */
+
+//
+// pi-sockaddr... the real structure might be defined in one of two
+// different ways, but luckily SWIG doesnt really care.
+//
+%typemap (python,in) struct sockaddr *INPUT {
+ static struct pi_sockaddr temp;
+ char *dev;
+ int len;
+
+ if (!PyArg_ParseTuple($input, "is#", &temp.pi_family, &dev, &len))
+ return NULL;
+ if (len > 255) {
+ // Should really raise an exception
+ len = 255;
+ }
+ strncpy(temp.pi_device, dev, len);
+ temp.pi_device[len] = 0;
+ $1 = (struct sockaddr *)&temp;
+}
+
+%typemap (python, argout,fragment="t_output_helper") struct sockaddr *remote_addr {
+ PyObject *o;
+
+ if ($1) {
+ o = Py_BuildValue("(is)", (int)((struct pi_sockaddr *)$1)->pi_family,
+ ((struct pi_sockaddr *)$1)->pi_device);
+ $result = t_output_helper($result, o);
+ }
+}
+
+%typemap (python,in,numinputs=0) struct sockaddr *remote_addr (struct pi_sockaddr temp) {
+ $1 = (struct sockaddr *)&temp;
+}
+
+%typemap (python,in,numinputs=0) size_t *namelen (size_t temp) {
+ $1 = (size_t *)&temp;
+}
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.i b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.i
new file mode 100644
index 00000000..629b9b73
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.i
@@ -0,0 +1,104 @@
+// -*-C-*-
+//
+// $Id: pisock.i,v 1.25 2005/06/03 10:46:46 fpillet Exp $
+//
+// Copyright 1999-2001 Rob Tillotson <rob@pyrite.org>
+// All Rights Reserved
+// Copyright (c) 2005 Florent Pillet, Nick Piper
+//
+// Permission to use, copy, modify, and distribute this software and
+// its documentation for any purpose and without fee or royalty is
+// hereby granted, provided that the above copyright notice appear in
+// all copies and that both the copyright notice and this permission
+// notice appear in supporting documentation or portions thereof,
+// including modifications, that you you make.
+//
+// THE AUTHOR ROB TILLOTSON DISCLAIMS ALL WARRANTIES WITH REGARD TO
+// THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+// SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+// RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+// CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE!
+//
+
+// This is an attempt at using SWIG to generate wrappers for the
+// pilot-link library. As one look at this source should tell you, it
+// turned out to be a non-trivial amount of work (but less than doing
+// it by hand). The semantics of the resulting module are not all
+// that different from the original Python interface to pilot-link,
+// but function names and arguments are closer to those in the raw
+// pilot-link library. In particular, no attempt is made to create
+// Python types for connections, databases, etc.; if you want object
+// structure, shadow classes should be easy to create.
+//
+// All of the dlp_* functions will throw an exception when the library
+// returns a negative status; the value of this exception will be a
+// tuple of the numeric error code and a message.
+
+%module pisock
+
+%pythoncode %{
+from pisockextras import *
+%}
+
+%{
+#include <time.h>
+#include "pi-header.h"
+#include "pi-source.h"
+#include "pi-error.h"
+#include "pi-socket.h"
+#include "pi-dlp.h"
+#include "pi-file.h"
+#include "pi-util.h"
+
+#define DGETLONG(src,key,default) (PyDict_GetItemString(src,key) ? \
+ PyInt_AsLong(PyDict_GetItemString(src,key)) : default)
+
+#define DGETSTR(src,key,default) (PyDict_GetItemString(src,key) ? \
+ PyString_AsString(PyDict_GetItemString(src,key)) : default)
+
+static PyObject *PIError = NULL;
+%}
+
+%init %{
+ PIError = PyErr_NewException("pisock.error", NULL, NULL);
+ Py_INCREF(PIError);
+ PyDict_SetItemString(d, "error", PIError);
+%}
+
+%pythoncode %{
+error = _pisock.error
+%}
+
+%include typemaps.i
+
+#define PI_DEPRECATED
+
+%include helperfuncs.i
+%include pi-error.i
+%include general-maps.i
+%include pi-socket-maps.i
+%include pi-dlp-maps.i
+%include pi-file-maps.i
+
+%include ../../../include/pi-args.h
+%include ../../../include/pi-header.h
+%include ../../../include/pi-error.h
+
+/* Put thread control around all those declarations that follow
+ * we use the exception mechanism to plug our code just around
+ * the C function call
+ */
+%feature("except") {
+ PyThreadState *__save = PyEval_SaveThread();
+ $action
+ PyEval_RestoreThread(__save);
+}
+
+%include ../../../include/pi-socket.h
+%include ../../../include/pi-dlp.h
+
+/* Stop putting thread control around all those declarations that follow. */
+%feature("except");
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.py b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.py
new file mode 100644
index 00000000..ece4a433
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock.py
@@ -0,0 +1,989 @@
+# This file was created automatically by SWIG 1.3.27.
+# Don't modify this file, modify the SWIG interface instead.
+
+import _pisock
+
+# This file is compatible with both classic and new-style classes.
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "this"):
+ if isinstance(value, class_type):
+ self.__dict__[name] = value.this
+ if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
+ del value.thisown
+ return
+ method = class_type.__swig_setmethods__.get(name,None)
+ if method: return method(self,value)
+ if (not static) or hasattr(self,name) or (name == "thisown"):
+ self.__dict__[name] = value
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+
+def _swig_setattr(self,class_type,name,value):
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
+
+def _swig_getattr(self,class_type,name):
+ method = class_type.__swig_getmethods__.get(name,None)
+ if method: return method(self)
+ raise AttributeError,name
+
+import types
+try:
+ _object = types.ObjectType
+ _newclass = 1
+except AttributeError:
+ class _object : pass
+ _newclass = 0
+del types
+
+
+from pisockextras import *
+
+error = _pisock.error
+
+PI_ERR_PROT_ABORTED = _pisock.PI_ERR_PROT_ABORTED
+PI_ERR_PROT_INCOMPATIBLE = _pisock.PI_ERR_PROT_INCOMPATIBLE
+PI_ERR_PROT_BADPACKET = _pisock.PI_ERR_PROT_BADPACKET
+PI_ERR_SOCK_DISCONNECTED = _pisock.PI_ERR_SOCK_DISCONNECTED
+PI_ERR_SOCK_INVALID = _pisock.PI_ERR_SOCK_INVALID
+PI_ERR_SOCK_TIMEOUT = _pisock.PI_ERR_SOCK_TIMEOUT
+PI_ERR_SOCK_CANCELED = _pisock.PI_ERR_SOCK_CANCELED
+PI_ERR_SOCK_IO = _pisock.PI_ERR_SOCK_IO
+PI_ERR_SOCK_LISTENER = _pisock.PI_ERR_SOCK_LISTENER
+PI_ERR_DLP_BUFSIZE = _pisock.PI_ERR_DLP_BUFSIZE
+PI_ERR_DLP_PALMOS = _pisock.PI_ERR_DLP_PALMOS
+PI_ERR_DLP_UNSUPPORTED = _pisock.PI_ERR_DLP_UNSUPPORTED
+PI_ERR_DLP_SOCKET = _pisock.PI_ERR_DLP_SOCKET
+PI_ERR_DLP_DATASIZE = _pisock.PI_ERR_DLP_DATASIZE
+PI_ERR_DLP_COMMAND = _pisock.PI_ERR_DLP_COMMAND
+PI_ERR_FILE_INVALID = _pisock.PI_ERR_FILE_INVALID
+PI_ERR_FILE_ERROR = _pisock.PI_ERR_FILE_ERROR
+PI_ERR_FILE_ABORTED = _pisock.PI_ERR_FILE_ABORTED
+PI_ERR_FILE_NOT_FOUND = _pisock.PI_ERR_FILE_NOT_FOUND
+PI_ERR_FILE_ALREADY_EXISTS = _pisock.PI_ERR_FILE_ALREADY_EXISTS
+PI_ERR_GENERIC_MEMORY = _pisock.PI_ERR_GENERIC_MEMORY
+PI_ERR_GENERIC_ARGUMENT = _pisock.PI_ERR_GENERIC_ARGUMENT
+PI_ERR_GENERIC_SYSTEM = _pisock.PI_ERR_GENERIC_SYSTEM
+PI_AF_PILOT = _pisock.PI_AF_PILOT
+PI_SOCK_STREAM = _pisock.PI_SOCK_STREAM
+PI_SOCK_RAW = _pisock.PI_SOCK_RAW
+PI_CMD_CMP = _pisock.PI_CMD_CMP
+PI_CMD_NET = _pisock.PI_CMD_NET
+PI_CMD_SYS = _pisock.PI_CMD_SYS
+PI_MSG_PEEK = _pisock.PI_MSG_PEEK
+PI_PF_DEV = _pisock.PI_PF_DEV
+PI_PF_SLP = _pisock.PI_PF_SLP
+PI_PF_SYS = _pisock.PI_PF_SYS
+PI_PF_PADP = _pisock.PI_PF_PADP
+PI_PF_NET = _pisock.PI_PF_NET
+PI_PF_DLP = _pisock.PI_PF_DLP
+PI_LEVEL_DEV = _pisock.PI_LEVEL_DEV
+PI_LEVEL_SLP = _pisock.PI_LEVEL_SLP
+PI_LEVEL_PADP = _pisock.PI_LEVEL_PADP
+PI_LEVEL_NET = _pisock.PI_LEVEL_NET
+PI_LEVEL_SYS = _pisock.PI_LEVEL_SYS
+PI_LEVEL_CMP = _pisock.PI_LEVEL_CMP
+PI_LEVEL_DLP = _pisock.PI_LEVEL_DLP
+PI_LEVEL_SOCK = _pisock.PI_LEVEL_SOCK
+PI_DEV_RATE = _pisock.PI_DEV_RATE
+PI_DEV_ESTRATE = _pisock.PI_DEV_ESTRATE
+PI_DEV_HIGHRATE = _pisock.PI_DEV_HIGHRATE
+PI_DEV_TIMEOUT = _pisock.PI_DEV_TIMEOUT
+PI_SLP_DEST = _pisock.PI_SLP_DEST
+PI_SLP_LASTDEST = _pisock.PI_SLP_LASTDEST
+PI_SLP_SRC = _pisock.PI_SLP_SRC
+PI_SLP_LASTSRC = _pisock.PI_SLP_LASTSRC
+PI_SLP_TYPE = _pisock.PI_SLP_TYPE
+PI_SLP_LASTTYPE = _pisock.PI_SLP_LASTTYPE
+PI_SLP_TXID = _pisock.PI_SLP_TXID
+PI_SLP_LASTTXID = _pisock.PI_SLP_LASTTXID
+PI_PADP_TYPE = _pisock.PI_PADP_TYPE
+PI_PADP_LASTTYPE = _pisock.PI_PADP_LASTTYPE
+PI_PADP_FREEZE_TXID = _pisock.PI_PADP_FREEZE_TXID
+PI_PADP_USE_LONG_FORMAT = _pisock.PI_PADP_USE_LONG_FORMAT
+PI_CMP_TYPE = _pisock.PI_CMP_TYPE
+PI_CMP_FLAGS = _pisock.PI_CMP_FLAGS
+PI_CMP_VERS = _pisock.PI_CMP_VERS
+PI_CMP_BAUD = _pisock.PI_CMP_BAUD
+PI_NET_TYPE = _pisock.PI_NET_TYPE
+PI_NET_SPLIT_WRITES = _pisock.PI_NET_SPLIT_WRITES
+PI_NET_WRITE_CHUNKSIZE = _pisock.PI_NET_WRITE_CHUNKSIZE
+PI_SOCK_STATE = _pisock.PI_SOCK_STATE
+PI_SOCK_HONOR_RX_TIMEOUT = _pisock.PI_SOCK_HONOR_RX_TIMEOUT
+class pi_socket_t(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, pi_socket_t, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, pi_socket_t, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C pi_socket_t instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["sd"] = _pisock.pi_socket_t_sd_set
+ __swig_getmethods__["sd"] = _pisock.pi_socket_t_sd_get
+ if _newclass:sd = property(_pisock.pi_socket_t_sd_get, _pisock.pi_socket_t_sd_set)
+ __swig_setmethods__["type"] = _pisock.pi_socket_t_type_set
+ __swig_getmethods__["type"] = _pisock.pi_socket_t_type_get
+ if _newclass:type = property(_pisock.pi_socket_t_type_get, _pisock.pi_socket_t_type_set)
+ __swig_setmethods__["protocol"] = _pisock.pi_socket_t_protocol_set
+ __swig_getmethods__["protocol"] = _pisock.pi_socket_t_protocol_get
+ if _newclass:protocol = property(_pisock.pi_socket_t_protocol_get, _pisock.pi_socket_t_protocol_set)
+ __swig_setmethods__["cmd"] = _pisock.pi_socket_t_cmd_set
+ __swig_getmethods__["cmd"] = _pisock.pi_socket_t_cmd_get
+ if _newclass:cmd = property(_pisock.pi_socket_t_cmd_get, _pisock.pi_socket_t_cmd_set)
+ __swig_setmethods__["laddr"] = _pisock.pi_socket_t_laddr_set
+ __swig_getmethods__["laddr"] = _pisock.pi_socket_t_laddr_get
+ if _newclass:laddr = property(_pisock.pi_socket_t_laddr_get, _pisock.pi_socket_t_laddr_set)
+ __swig_setmethods__["laddrlen"] = _pisock.pi_socket_t_laddrlen_set
+ __swig_getmethods__["laddrlen"] = _pisock.pi_socket_t_laddrlen_get
+ if _newclass:laddrlen = property(_pisock.pi_socket_t_laddrlen_get, _pisock.pi_socket_t_laddrlen_set)
+ __swig_setmethods__["raddr"] = _pisock.pi_socket_t_raddr_set
+ __swig_getmethods__["raddr"] = _pisock.pi_socket_t_raddr_get
+ if _newclass:raddr = property(_pisock.pi_socket_t_raddr_get, _pisock.pi_socket_t_raddr_set)
+ __swig_setmethods__["raddrlen"] = _pisock.pi_socket_t_raddrlen_set
+ __swig_getmethods__["raddrlen"] = _pisock.pi_socket_t_raddrlen_get
+ if _newclass:raddrlen = property(_pisock.pi_socket_t_raddrlen_get, _pisock.pi_socket_t_raddrlen_set)
+ __swig_setmethods__["protocol_queue"] = _pisock.pi_socket_t_protocol_queue_set
+ __swig_getmethods__["protocol_queue"] = _pisock.pi_socket_t_protocol_queue_get
+ if _newclass:protocol_queue = property(_pisock.pi_socket_t_protocol_queue_get, _pisock.pi_socket_t_protocol_queue_set)
+ __swig_setmethods__["queue_len"] = _pisock.pi_socket_t_queue_len_set
+ __swig_getmethods__["queue_len"] = _pisock.pi_socket_t_queue_len_get
+ if _newclass:queue_len = property(_pisock.pi_socket_t_queue_len_get, _pisock.pi_socket_t_queue_len_set)
+ __swig_setmethods__["cmd_queue"] = _pisock.pi_socket_t_cmd_queue_set
+ __swig_getmethods__["cmd_queue"] = _pisock.pi_socket_t_cmd_queue_get
+ if _newclass:cmd_queue = property(_pisock.pi_socket_t_cmd_queue_get, _pisock.pi_socket_t_cmd_queue_set)
+ __swig_setmethods__["cmd_len"] = _pisock.pi_socket_t_cmd_len_set
+ __swig_getmethods__["cmd_len"] = _pisock.pi_socket_t_cmd_len_get
+ if _newclass:cmd_len = property(_pisock.pi_socket_t_cmd_len_get, _pisock.pi_socket_t_cmd_len_set)
+ __swig_setmethods__["device"] = _pisock.pi_socket_t_device_set
+ __swig_getmethods__["device"] = _pisock.pi_socket_t_device_get
+ if _newclass:device = property(_pisock.pi_socket_t_device_get, _pisock.pi_socket_t_device_set)
+ __swig_setmethods__["state"] = _pisock.pi_socket_t_state_set
+ __swig_getmethods__["state"] = _pisock.pi_socket_t_state_get
+ if _newclass:state = property(_pisock.pi_socket_t_state_get, _pisock.pi_socket_t_state_set)
+ __swig_setmethods__["honor_rx_to"] = _pisock.pi_socket_t_honor_rx_to_set
+ __swig_getmethods__["honor_rx_to"] = _pisock.pi_socket_t_honor_rx_to_get
+ if _newclass:honor_rx_to = property(_pisock.pi_socket_t_honor_rx_to_get, _pisock.pi_socket_t_honor_rx_to_set)
+ __swig_setmethods__["command"] = _pisock.pi_socket_t_command_set
+ __swig_getmethods__["command"] = _pisock.pi_socket_t_command_get
+ if _newclass:command = property(_pisock.pi_socket_t_command_get, _pisock.pi_socket_t_command_set)
+ __swig_setmethods__["accept_to"] = _pisock.pi_socket_t_accept_to_set
+ __swig_getmethods__["accept_to"] = _pisock.pi_socket_t_accept_to_get
+ if _newclass:accept_to = property(_pisock.pi_socket_t_accept_to_get, _pisock.pi_socket_t_accept_to_set)
+ __swig_setmethods__["dlprecord"] = _pisock.pi_socket_t_dlprecord_set
+ __swig_getmethods__["dlprecord"] = _pisock.pi_socket_t_dlprecord_get
+ if _newclass:dlprecord = property(_pisock.pi_socket_t_dlprecord_get, _pisock.pi_socket_t_dlprecord_set)
+ __swig_setmethods__["dlpversion"] = _pisock.pi_socket_t_dlpversion_set
+ __swig_getmethods__["dlpversion"] = _pisock.pi_socket_t_dlpversion_get
+ if _newclass:dlpversion = property(_pisock.pi_socket_t_dlpversion_get, _pisock.pi_socket_t_dlpversion_set)
+ __swig_setmethods__["maxrecsize"] = _pisock.pi_socket_t_maxrecsize_set
+ __swig_getmethods__["maxrecsize"] = _pisock.pi_socket_t_maxrecsize_get
+ if _newclass:maxrecsize = property(_pisock.pi_socket_t_maxrecsize_get, _pisock.pi_socket_t_maxrecsize_set)
+ __swig_setmethods__["last_error"] = _pisock.pi_socket_t_last_error_set
+ __swig_getmethods__["last_error"] = _pisock.pi_socket_t_last_error_get
+ if _newclass:last_error = property(_pisock.pi_socket_t_last_error_get, _pisock.pi_socket_t_last_error_set)
+ __swig_setmethods__["palmos_error"] = _pisock.pi_socket_t_palmos_error_set
+ __swig_getmethods__["palmos_error"] = _pisock.pi_socket_t_palmos_error_get
+ if _newclass:palmos_error = property(_pisock.pi_socket_t_palmos_error_get, _pisock.pi_socket_t_palmos_error_set)
+ def __init__(self, *args):
+ _swig_setattr(self, pi_socket_t, 'this', _pisock.new_pi_socket_t(*args))
+ _swig_setattr(self, pi_socket_t, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_pi_socket_t):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class pi_socket_tPtr(pi_socket_t):
+ def __init__(self, this):
+ _swig_setattr(self, pi_socket_t, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, pi_socket_t, 'thisown', 0)
+ self.__class__ = pi_socket_t
+_pisock.pi_socket_t_swigregister(pi_socket_tPtr)
+dlp_ReadRecordIDList = _pisock.dlp_ReadRecordIDList
+
+pi_file_install = _pisock.pi_file_install
+
+pi_file_retrieve = _pisock.pi_file_retrieve
+
+
+class pi_socket_list_t(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, pi_socket_list_t, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, pi_socket_list_t, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C pi_socket_list_t instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["ps"] = _pisock.pi_socket_list_t_ps_set
+ __swig_getmethods__["ps"] = _pisock.pi_socket_list_t_ps_get
+ if _newclass:ps = property(_pisock.pi_socket_list_t_ps_get, _pisock.pi_socket_list_t_ps_set)
+ __swig_setmethods__["next"] = _pisock.pi_socket_list_t_next_set
+ __swig_getmethods__["next"] = _pisock.pi_socket_list_t_next_get
+ if _newclass:next = property(_pisock.pi_socket_list_t_next_get, _pisock.pi_socket_list_t_next_set)
+ def __init__(self, *args):
+ _swig_setattr(self, pi_socket_list_t, 'this', _pisock.new_pi_socket_list_t(*args))
+ _swig_setattr(self, pi_socket_list_t, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_pi_socket_list_t):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class pi_socket_list_tPtr(pi_socket_list_t):
+ def __init__(self, this):
+ _swig_setattr(self, pi_socket_list_t, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, pi_socket_list_t, 'thisown', 0)
+ self.__class__ = pi_socket_list_t
+_pisock.pi_socket_list_t_swigregister(pi_socket_list_tPtr)
+
+
+pi_socket = _pisock.pi_socket
+
+pi_socket_setsd = _pisock.pi_socket_setsd
+
+pi_getsockname = _pisock.pi_getsockname
+
+pi_getsockpeer = _pisock.pi_getsockpeer
+
+pi_getsockopt = _pisock.pi_getsockopt
+
+pi_setsockopt = _pisock.pi_setsockopt
+
+pi_protocol = _pisock.pi_protocol
+
+pi_protocol_next = _pisock.pi_protocol_next
+
+pi_socket_connected = _pisock.pi_socket_connected
+
+pi_connect = _pisock.pi_connect
+
+pi_bind = _pisock.pi_bind
+
+pi_listen = _pisock.pi_listen
+
+pi_accept = _pisock.pi_accept
+
+pi_accept_to = _pisock.pi_accept_to
+
+pi_close = _pisock.pi_close
+
+pi_send = _pisock.pi_send
+
+pi_recv = _pisock.pi_recv
+
+pi_read = _pisock.pi_read
+
+pi_write = _pisock.pi_write
+
+pi_flush = _pisock.pi_flush
+
+pi_error = _pisock.pi_error
+
+pi_set_error = _pisock.pi_set_error
+
+pi_palmos_error = _pisock.pi_palmos_error
+
+pi_set_palmos_error = _pisock.pi_set_palmos_error
+
+pi_reset_errors = _pisock.pi_reset_errors
+
+pi_version = _pisock.pi_version
+
+pi_maxrecsize = _pisock.pi_maxrecsize
+
+pi_tickle = _pisock.pi_tickle
+
+pi_watchdog = _pisock.pi_watchdog
+PI_DLP_VERSION_MAJOR = _pisock.PI_DLP_VERSION_MAJOR
+PI_DLP_VERSION_MINOR = _pisock.PI_DLP_VERSION_MINOR
+vfsMountFlagsUseThisFileSystem = _pisock.vfsMountFlagsUseThisFileSystem
+vfsMAXFILENAME = _pisock.vfsMAXFILENAME
+vfsInvalidVolRef = _pisock.vfsInvalidVolRef
+vfsInvalidFileRef = _pisock.vfsInvalidFileRef
+class VFSDirInfo(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, VFSDirInfo, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, VFSDirInfo, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C VFSDirInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["attr"] = _pisock.VFSDirInfo_attr_set
+ __swig_getmethods__["attr"] = _pisock.VFSDirInfo_attr_get
+ if _newclass:attr = property(_pisock.VFSDirInfo_attr_get, _pisock.VFSDirInfo_attr_set)
+ __swig_setmethods__["name"] = _pisock.VFSDirInfo_name_set
+ __swig_getmethods__["name"] = _pisock.VFSDirInfo_name_get
+ if _newclass:name = property(_pisock.VFSDirInfo_name_get, _pisock.VFSDirInfo_name_set)
+ def __init__(self, *args):
+ _swig_setattr(self, VFSDirInfo, 'this', _pisock.new_VFSDirInfo(*args))
+ _swig_setattr(self, VFSDirInfo, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_VFSDirInfo):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class VFSDirInfoPtr(VFSDirInfo):
+ def __init__(self, this):
+ _swig_setattr(self, VFSDirInfo, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, VFSDirInfo, 'thisown', 0)
+ self.__class__ = VFSDirInfo
+_pisock.VFSDirInfo_swigregister(VFSDirInfoPtr)
+
+class VFSAnyMountParam(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, VFSAnyMountParam, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, VFSAnyMountParam, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C VFSAnyMountParam instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["volRefNum"] = _pisock.VFSAnyMountParam_volRefNum_set
+ __swig_getmethods__["volRefNum"] = _pisock.VFSAnyMountParam_volRefNum_get
+ if _newclass:volRefNum = property(_pisock.VFSAnyMountParam_volRefNum_get, _pisock.VFSAnyMountParam_volRefNum_set)
+ __swig_setmethods__["reserved"] = _pisock.VFSAnyMountParam_reserved_set
+ __swig_getmethods__["reserved"] = _pisock.VFSAnyMountParam_reserved_get
+ if _newclass:reserved = property(_pisock.VFSAnyMountParam_reserved_get, _pisock.VFSAnyMountParam_reserved_set)
+ __swig_setmethods__["mountClass"] = _pisock.VFSAnyMountParam_mountClass_set
+ __swig_getmethods__["mountClass"] = _pisock.VFSAnyMountParam_mountClass_get
+ if _newclass:mountClass = property(_pisock.VFSAnyMountParam_mountClass_get, _pisock.VFSAnyMountParam_mountClass_set)
+ def __init__(self, *args):
+ _swig_setattr(self, VFSAnyMountParam, 'this', _pisock.new_VFSAnyMountParam(*args))
+ _swig_setattr(self, VFSAnyMountParam, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_VFSAnyMountParam):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class VFSAnyMountParamPtr(VFSAnyMountParam):
+ def __init__(self, this):
+ _swig_setattr(self, VFSAnyMountParam, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, VFSAnyMountParam, 'thisown', 0)
+ self.__class__ = VFSAnyMountParam
+_pisock.VFSAnyMountParam_swigregister(VFSAnyMountParamPtr)
+
+class VFSSlotMountParam(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, VFSSlotMountParam, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, VFSSlotMountParam, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C VFSSlotMountParam instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["vfsMountParam"] = _pisock.VFSSlotMountParam_vfsMountParam_set
+ __swig_getmethods__["vfsMountParam"] = _pisock.VFSSlotMountParam_vfsMountParam_get
+ if _newclass:vfsMountParam = property(_pisock.VFSSlotMountParam_vfsMountParam_get, _pisock.VFSSlotMountParam_vfsMountParam_set)
+ __swig_setmethods__["slotLibRefNum"] = _pisock.VFSSlotMountParam_slotLibRefNum_set
+ __swig_getmethods__["slotLibRefNum"] = _pisock.VFSSlotMountParam_slotLibRefNum_get
+ if _newclass:slotLibRefNum = property(_pisock.VFSSlotMountParam_slotLibRefNum_get, _pisock.VFSSlotMountParam_slotLibRefNum_set)
+ __swig_setmethods__["slotRefNum"] = _pisock.VFSSlotMountParam_slotRefNum_set
+ __swig_getmethods__["slotRefNum"] = _pisock.VFSSlotMountParam_slotRefNum_get
+ if _newclass:slotRefNum = property(_pisock.VFSSlotMountParam_slotRefNum_get, _pisock.VFSSlotMountParam_slotRefNum_set)
+ def __init__(self, *args):
+ _swig_setattr(self, VFSSlotMountParam, 'this', _pisock.new_VFSSlotMountParam(*args))
+ _swig_setattr(self, VFSSlotMountParam, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_VFSSlotMountParam):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class VFSSlotMountParamPtr(VFSSlotMountParam):
+ def __init__(self, this):
+ _swig_setattr(self, VFSSlotMountParam, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, VFSSlotMountParam, 'thisown', 0)
+ self.__class__ = VFSSlotMountParam
+_pisock.VFSSlotMountParam_swigregister(VFSSlotMountParamPtr)
+
+class VFSInfo(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, VFSInfo, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, VFSInfo, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C VFSInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["attributes"] = _pisock.VFSInfo_attributes_set
+ __swig_getmethods__["attributes"] = _pisock.VFSInfo_attributes_get
+ if _newclass:attributes = property(_pisock.VFSInfo_attributes_get, _pisock.VFSInfo_attributes_set)
+ __swig_setmethods__["fsType"] = _pisock.VFSInfo_fsType_set
+ __swig_getmethods__["fsType"] = _pisock.VFSInfo_fsType_get
+ if _newclass:fsType = property(_pisock.VFSInfo_fsType_get, _pisock.VFSInfo_fsType_set)
+ __swig_setmethods__["fsCreator"] = _pisock.VFSInfo_fsCreator_set
+ __swig_getmethods__["fsCreator"] = _pisock.VFSInfo_fsCreator_get
+ if _newclass:fsCreator = property(_pisock.VFSInfo_fsCreator_get, _pisock.VFSInfo_fsCreator_set)
+ __swig_setmethods__["mountClass"] = _pisock.VFSInfo_mountClass_set
+ __swig_getmethods__["mountClass"] = _pisock.VFSInfo_mountClass_get
+ if _newclass:mountClass = property(_pisock.VFSInfo_mountClass_get, _pisock.VFSInfo_mountClass_set)
+ __swig_setmethods__["slotLibRefNum"] = _pisock.VFSInfo_slotLibRefNum_set
+ __swig_getmethods__["slotLibRefNum"] = _pisock.VFSInfo_slotLibRefNum_get
+ if _newclass:slotLibRefNum = property(_pisock.VFSInfo_slotLibRefNum_get, _pisock.VFSInfo_slotLibRefNum_set)
+ __swig_setmethods__["slotRefNum"] = _pisock.VFSInfo_slotRefNum_set
+ __swig_getmethods__["slotRefNum"] = _pisock.VFSInfo_slotRefNum_get
+ if _newclass:slotRefNum = property(_pisock.VFSInfo_slotRefNum_get, _pisock.VFSInfo_slotRefNum_set)
+ __swig_setmethods__["mediaType"] = _pisock.VFSInfo_mediaType_set
+ __swig_getmethods__["mediaType"] = _pisock.VFSInfo_mediaType_get
+ if _newclass:mediaType = property(_pisock.VFSInfo_mediaType_get, _pisock.VFSInfo_mediaType_set)
+ __swig_setmethods__["reserved"] = _pisock.VFSInfo_reserved_set
+ __swig_getmethods__["reserved"] = _pisock.VFSInfo_reserved_get
+ if _newclass:reserved = property(_pisock.VFSInfo_reserved_get, _pisock.VFSInfo_reserved_set)
+ def __init__(self, *args):
+ _swig_setattr(self, VFSInfo, 'this', _pisock.new_VFSInfo(*args))
+ _swig_setattr(self, VFSInfo, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_VFSInfo):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class VFSInfoPtr(VFSInfo):
+ def __init__(self, this):
+ _swig_setattr(self, VFSInfo, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, VFSInfo, 'thisown', 0)
+ self.__class__ = VFSInfo
+_pisock.VFSInfo_swigregister(VFSInfoPtr)
+
+class PilotUser(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, PilotUser, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, PilotUser, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C PilotUser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["passwordLength"] = _pisock.PilotUser_passwordLength_set
+ __swig_getmethods__["passwordLength"] = _pisock.PilotUser_passwordLength_get
+ if _newclass:passwordLength = property(_pisock.PilotUser_passwordLength_get, _pisock.PilotUser_passwordLength_set)
+ __swig_setmethods__["username"] = _pisock.PilotUser_username_set
+ __swig_getmethods__["username"] = _pisock.PilotUser_username_get
+ if _newclass:username = property(_pisock.PilotUser_username_get, _pisock.PilotUser_username_set)
+ __swig_setmethods__["password"] = _pisock.PilotUser_password_set
+ __swig_getmethods__["password"] = _pisock.PilotUser_password_get
+ if _newclass:password = property(_pisock.PilotUser_password_get, _pisock.PilotUser_password_set)
+ __swig_setmethods__["userID"] = _pisock.PilotUser_userID_set
+ __swig_getmethods__["userID"] = _pisock.PilotUser_userID_get
+ if _newclass:userID = property(_pisock.PilotUser_userID_get, _pisock.PilotUser_userID_set)
+ __swig_setmethods__["viewerID"] = _pisock.PilotUser_viewerID_set
+ __swig_getmethods__["viewerID"] = _pisock.PilotUser_viewerID_get
+ if _newclass:viewerID = property(_pisock.PilotUser_viewerID_get, _pisock.PilotUser_viewerID_set)
+ __swig_setmethods__["lastSyncPC"] = _pisock.PilotUser_lastSyncPC_set
+ __swig_getmethods__["lastSyncPC"] = _pisock.PilotUser_lastSyncPC_get
+ if _newclass:lastSyncPC = property(_pisock.PilotUser_lastSyncPC_get, _pisock.PilotUser_lastSyncPC_set)
+ __swig_setmethods__["successfulSyncDate"] = _pisock.PilotUser_successfulSyncDate_set
+ __swig_getmethods__["successfulSyncDate"] = _pisock.PilotUser_successfulSyncDate_get
+ if _newclass:successfulSyncDate = property(_pisock.PilotUser_successfulSyncDate_get, _pisock.PilotUser_successfulSyncDate_set)
+ __swig_setmethods__["lastSyncDate"] = _pisock.PilotUser_lastSyncDate_set
+ __swig_getmethods__["lastSyncDate"] = _pisock.PilotUser_lastSyncDate_get
+ if _newclass:lastSyncDate = property(_pisock.PilotUser_lastSyncDate_get, _pisock.PilotUser_lastSyncDate_set)
+ def __init__(self, *args):
+ _swig_setattr(self, PilotUser, 'this', _pisock.new_PilotUser(*args))
+ _swig_setattr(self, PilotUser, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_PilotUser):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class PilotUserPtr(PilotUser):
+ def __init__(self, this):
+ _swig_setattr(self, PilotUser, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, PilotUser, 'thisown', 0)
+ self.__class__ = PilotUser
+_pisock.PilotUser_swigregister(PilotUserPtr)
+
+class SysInfo(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, SysInfo, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, SysInfo, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C SysInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["romVersion"] = _pisock.SysInfo_romVersion_set
+ __swig_getmethods__["romVersion"] = _pisock.SysInfo_romVersion_get
+ if _newclass:romVersion = property(_pisock.SysInfo_romVersion_get, _pisock.SysInfo_romVersion_set)
+ __swig_setmethods__["locale"] = _pisock.SysInfo_locale_set
+ __swig_getmethods__["locale"] = _pisock.SysInfo_locale_get
+ if _newclass:locale = property(_pisock.SysInfo_locale_get, _pisock.SysInfo_locale_set)
+ __swig_setmethods__["prodIDLength"] = _pisock.SysInfo_prodIDLength_set
+ __swig_getmethods__["prodIDLength"] = _pisock.SysInfo_prodIDLength_get
+ if _newclass:prodIDLength = property(_pisock.SysInfo_prodIDLength_get, _pisock.SysInfo_prodIDLength_set)
+ __swig_setmethods__["prodID"] = _pisock.SysInfo_prodID_set
+ __swig_getmethods__["prodID"] = _pisock.SysInfo_prodID_get
+ if _newclass:prodID = property(_pisock.SysInfo_prodID_get, _pisock.SysInfo_prodID_set)
+ __swig_setmethods__["dlpMajorVersion"] = _pisock.SysInfo_dlpMajorVersion_set
+ __swig_getmethods__["dlpMajorVersion"] = _pisock.SysInfo_dlpMajorVersion_get
+ if _newclass:dlpMajorVersion = property(_pisock.SysInfo_dlpMajorVersion_get, _pisock.SysInfo_dlpMajorVersion_set)
+ __swig_setmethods__["dlpMinorVersion"] = _pisock.SysInfo_dlpMinorVersion_set
+ __swig_getmethods__["dlpMinorVersion"] = _pisock.SysInfo_dlpMinorVersion_get
+ if _newclass:dlpMinorVersion = property(_pisock.SysInfo_dlpMinorVersion_get, _pisock.SysInfo_dlpMinorVersion_set)
+ __swig_setmethods__["compatMajorVersion"] = _pisock.SysInfo_compatMajorVersion_set
+ __swig_getmethods__["compatMajorVersion"] = _pisock.SysInfo_compatMajorVersion_get
+ if _newclass:compatMajorVersion = property(_pisock.SysInfo_compatMajorVersion_get, _pisock.SysInfo_compatMajorVersion_set)
+ __swig_setmethods__["compatMinorVersion"] = _pisock.SysInfo_compatMinorVersion_set
+ __swig_getmethods__["compatMinorVersion"] = _pisock.SysInfo_compatMinorVersion_get
+ if _newclass:compatMinorVersion = property(_pisock.SysInfo_compatMinorVersion_get, _pisock.SysInfo_compatMinorVersion_set)
+ __swig_setmethods__["maxRecSize"] = _pisock.SysInfo_maxRecSize_set
+ __swig_getmethods__["maxRecSize"] = _pisock.SysInfo_maxRecSize_get
+ if _newclass:maxRecSize = property(_pisock.SysInfo_maxRecSize_get, _pisock.SysInfo_maxRecSize_set)
+ def __init__(self, *args):
+ _swig_setattr(self, SysInfo, 'this', _pisock.new_SysInfo(*args))
+ _swig_setattr(self, SysInfo, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_SysInfo):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class SysInfoPtr(SysInfo):
+ def __init__(self, this):
+ _swig_setattr(self, SysInfo, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, SysInfo, 'thisown', 0)
+ self.__class__ = SysInfo
+_pisock.SysInfo_swigregister(SysInfoPtr)
+
+class DBInfo(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, DBInfo, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, DBInfo, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C DBInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["more"] = _pisock.DBInfo_more_set
+ __swig_getmethods__["more"] = _pisock.DBInfo_more_get
+ if _newclass:more = property(_pisock.DBInfo_more_get, _pisock.DBInfo_more_set)
+ __swig_setmethods__["name"] = _pisock.DBInfo_name_set
+ __swig_getmethods__["name"] = _pisock.DBInfo_name_get
+ if _newclass:name = property(_pisock.DBInfo_name_get, _pisock.DBInfo_name_set)
+ __swig_setmethods__["flags"] = _pisock.DBInfo_flags_set
+ __swig_getmethods__["flags"] = _pisock.DBInfo_flags_get
+ if _newclass:flags = property(_pisock.DBInfo_flags_get, _pisock.DBInfo_flags_set)
+ __swig_setmethods__["miscFlags"] = _pisock.DBInfo_miscFlags_set
+ __swig_getmethods__["miscFlags"] = _pisock.DBInfo_miscFlags_get
+ if _newclass:miscFlags = property(_pisock.DBInfo_miscFlags_get, _pisock.DBInfo_miscFlags_set)
+ __swig_setmethods__["version"] = _pisock.DBInfo_version_set
+ __swig_getmethods__["version"] = _pisock.DBInfo_version_get
+ if _newclass:version = property(_pisock.DBInfo_version_get, _pisock.DBInfo_version_set)
+ __swig_setmethods__["type"] = _pisock.DBInfo_type_set
+ __swig_getmethods__["type"] = _pisock.DBInfo_type_get
+ if _newclass:type = property(_pisock.DBInfo_type_get, _pisock.DBInfo_type_set)
+ __swig_setmethods__["creator"] = _pisock.DBInfo_creator_set
+ __swig_getmethods__["creator"] = _pisock.DBInfo_creator_get
+ if _newclass:creator = property(_pisock.DBInfo_creator_get, _pisock.DBInfo_creator_set)
+ __swig_setmethods__["modnum"] = _pisock.DBInfo_modnum_set
+ __swig_getmethods__["modnum"] = _pisock.DBInfo_modnum_get
+ if _newclass:modnum = property(_pisock.DBInfo_modnum_get, _pisock.DBInfo_modnum_set)
+ __swig_setmethods__["index"] = _pisock.DBInfo_index_set
+ __swig_getmethods__["index"] = _pisock.DBInfo_index_get
+ if _newclass:index = property(_pisock.DBInfo_index_get, _pisock.DBInfo_index_set)
+ __swig_setmethods__["createDate"] = _pisock.DBInfo_createDate_set
+ __swig_getmethods__["createDate"] = _pisock.DBInfo_createDate_get
+ if _newclass:createDate = property(_pisock.DBInfo_createDate_get, _pisock.DBInfo_createDate_set)
+ __swig_setmethods__["modifyDate"] = _pisock.DBInfo_modifyDate_set
+ __swig_getmethods__["modifyDate"] = _pisock.DBInfo_modifyDate_get
+ if _newclass:modifyDate = property(_pisock.DBInfo_modifyDate_get, _pisock.DBInfo_modifyDate_set)
+ __swig_setmethods__["backupDate"] = _pisock.DBInfo_backupDate_set
+ __swig_getmethods__["backupDate"] = _pisock.DBInfo_backupDate_get
+ if _newclass:backupDate = property(_pisock.DBInfo_backupDate_get, _pisock.DBInfo_backupDate_set)
+ def __init__(self, *args):
+ _swig_setattr(self, DBInfo, 'this', _pisock.new_DBInfo(*args))
+ _swig_setattr(self, DBInfo, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_DBInfo):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class DBInfoPtr(DBInfo):
+ def __init__(self, this):
+ _swig_setattr(self, DBInfo, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, DBInfo, 'thisown', 0)
+ self.__class__ = DBInfo
+_pisock.DBInfo_swigregister(DBInfoPtr)
+
+class DBSizeInfo(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, DBSizeInfo, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, DBSizeInfo, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C DBSizeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["numRecords"] = _pisock.DBSizeInfo_numRecords_set
+ __swig_getmethods__["numRecords"] = _pisock.DBSizeInfo_numRecords_get
+ if _newclass:numRecords = property(_pisock.DBSizeInfo_numRecords_get, _pisock.DBSizeInfo_numRecords_set)
+ __swig_setmethods__["totalBytes"] = _pisock.DBSizeInfo_totalBytes_set
+ __swig_getmethods__["totalBytes"] = _pisock.DBSizeInfo_totalBytes_get
+ if _newclass:totalBytes = property(_pisock.DBSizeInfo_totalBytes_get, _pisock.DBSizeInfo_totalBytes_set)
+ __swig_setmethods__["dataBytes"] = _pisock.DBSizeInfo_dataBytes_set
+ __swig_getmethods__["dataBytes"] = _pisock.DBSizeInfo_dataBytes_get
+ if _newclass:dataBytes = property(_pisock.DBSizeInfo_dataBytes_get, _pisock.DBSizeInfo_dataBytes_set)
+ __swig_setmethods__["appBlockSize"] = _pisock.DBSizeInfo_appBlockSize_set
+ __swig_getmethods__["appBlockSize"] = _pisock.DBSizeInfo_appBlockSize_get
+ if _newclass:appBlockSize = property(_pisock.DBSizeInfo_appBlockSize_get, _pisock.DBSizeInfo_appBlockSize_set)
+ __swig_setmethods__["sortBlockSize"] = _pisock.DBSizeInfo_sortBlockSize_set
+ __swig_getmethods__["sortBlockSize"] = _pisock.DBSizeInfo_sortBlockSize_get
+ if _newclass:sortBlockSize = property(_pisock.DBSizeInfo_sortBlockSize_get, _pisock.DBSizeInfo_sortBlockSize_set)
+ __swig_setmethods__["maxRecSize"] = _pisock.DBSizeInfo_maxRecSize_set
+ __swig_getmethods__["maxRecSize"] = _pisock.DBSizeInfo_maxRecSize_get
+ if _newclass:maxRecSize = property(_pisock.DBSizeInfo_maxRecSize_get, _pisock.DBSizeInfo_maxRecSize_set)
+ def __init__(self, *args):
+ _swig_setattr(self, DBSizeInfo, 'this', _pisock.new_DBSizeInfo(*args))
+ _swig_setattr(self, DBSizeInfo, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_DBSizeInfo):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class DBSizeInfoPtr(DBSizeInfo):
+ def __init__(self, this):
+ _swig_setattr(self, DBSizeInfo, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, DBSizeInfo, 'thisown', 0)
+ self.__class__ = DBSizeInfo
+_pisock.DBSizeInfo_swigregister(DBSizeInfoPtr)
+
+class CardInfo(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, CardInfo, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, CardInfo, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C CardInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["card"] = _pisock.CardInfo_card_set
+ __swig_getmethods__["card"] = _pisock.CardInfo_card_get
+ if _newclass:card = property(_pisock.CardInfo_card_get, _pisock.CardInfo_card_set)
+ __swig_setmethods__["version"] = _pisock.CardInfo_version_set
+ __swig_getmethods__["version"] = _pisock.CardInfo_version_get
+ if _newclass:version = property(_pisock.CardInfo_version_get, _pisock.CardInfo_version_set)
+ __swig_setmethods__["more"] = _pisock.CardInfo_more_set
+ __swig_getmethods__["more"] = _pisock.CardInfo_more_get
+ if _newclass:more = property(_pisock.CardInfo_more_get, _pisock.CardInfo_more_set)
+ __swig_setmethods__["creation"] = _pisock.CardInfo_creation_set
+ __swig_getmethods__["creation"] = _pisock.CardInfo_creation_get
+ if _newclass:creation = property(_pisock.CardInfo_creation_get, _pisock.CardInfo_creation_set)
+ __swig_setmethods__["romSize"] = _pisock.CardInfo_romSize_set
+ __swig_getmethods__["romSize"] = _pisock.CardInfo_romSize_get
+ if _newclass:romSize = property(_pisock.CardInfo_romSize_get, _pisock.CardInfo_romSize_set)
+ __swig_setmethods__["ramSize"] = _pisock.CardInfo_ramSize_set
+ __swig_getmethods__["ramSize"] = _pisock.CardInfo_ramSize_get
+ if _newclass:ramSize = property(_pisock.CardInfo_ramSize_get, _pisock.CardInfo_ramSize_set)
+ __swig_setmethods__["ramFree"] = _pisock.CardInfo_ramFree_set
+ __swig_getmethods__["ramFree"] = _pisock.CardInfo_ramFree_get
+ if _newclass:ramFree = property(_pisock.CardInfo_ramFree_get, _pisock.CardInfo_ramFree_set)
+ __swig_setmethods__["name"] = _pisock.CardInfo_name_set
+ __swig_getmethods__["name"] = _pisock.CardInfo_name_get
+ if _newclass:name = property(_pisock.CardInfo_name_get, _pisock.CardInfo_name_set)
+ __swig_setmethods__["manufacturer"] = _pisock.CardInfo_manufacturer_set
+ __swig_getmethods__["manufacturer"] = _pisock.CardInfo_manufacturer_get
+ if _newclass:manufacturer = property(_pisock.CardInfo_manufacturer_get, _pisock.CardInfo_manufacturer_set)
+ def __init__(self, *args):
+ _swig_setattr(self, CardInfo, 'this', _pisock.new_CardInfo(*args))
+ _swig_setattr(self, CardInfo, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_CardInfo):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class CardInfoPtr(CardInfo):
+ def __init__(self, this):
+ _swig_setattr(self, CardInfo, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, CardInfo, 'thisown', 0)
+ self.__class__ = CardInfo
+_pisock.CardInfo_swigregister(CardInfoPtr)
+
+class NetSyncInfo(_object):
+ __swig_setmethods__ = {}
+ __setattr__ = lambda self, name, value: _swig_setattr(self, NetSyncInfo, name, value)
+ __swig_getmethods__ = {}
+ __getattr__ = lambda self, name: _swig_getattr(self, NetSyncInfo, name)
+ def __repr__(self):
+ return "<%s.%s; proxy of C NetSyncInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ __swig_setmethods__["lanSync"] = _pisock.NetSyncInfo_lanSync_set
+ __swig_getmethods__["lanSync"] = _pisock.NetSyncInfo_lanSync_get
+ if _newclass:lanSync = property(_pisock.NetSyncInfo_lanSync_get, _pisock.NetSyncInfo_lanSync_set)
+ __swig_setmethods__["hostName"] = _pisock.NetSyncInfo_hostName_set
+ __swig_getmethods__["hostName"] = _pisock.NetSyncInfo_hostName_get
+ if _newclass:hostName = property(_pisock.NetSyncInfo_hostName_get, _pisock.NetSyncInfo_hostName_set)
+ __swig_setmethods__["hostAddress"] = _pisock.NetSyncInfo_hostAddress_set
+ __swig_getmethods__["hostAddress"] = _pisock.NetSyncInfo_hostAddress_get
+ if _newclass:hostAddress = property(_pisock.NetSyncInfo_hostAddress_get, _pisock.NetSyncInfo_hostAddress_set)
+ __swig_setmethods__["hostSubnetMask"] = _pisock.NetSyncInfo_hostSubnetMask_set
+ __swig_getmethods__["hostSubnetMask"] = _pisock.NetSyncInfo_hostSubnetMask_get
+ if _newclass:hostSubnetMask = property(_pisock.NetSyncInfo_hostSubnetMask_get, _pisock.NetSyncInfo_hostSubnetMask_set)
+ def __init__(self, *args):
+ _swig_setattr(self, NetSyncInfo, 'this', _pisock.new_NetSyncInfo(*args))
+ _swig_setattr(self, NetSyncInfo, 'thisown', 1)
+ def __del__(self, destroy=_pisock.delete_NetSyncInfo):
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+
+class NetSyncInfoPtr(NetSyncInfo):
+ def __init__(self, this):
+ _swig_setattr(self, NetSyncInfo, 'this', this)
+ if not hasattr(self,"thisown"): _swig_setattr(self, NetSyncInfo, 'thisown', 0)
+ self.__class__ = NetSyncInfo
+_pisock.NetSyncInfo_swigregister(NetSyncInfoPtr)
+
+dlpDBFlagResource = _pisock.dlpDBFlagResource
+dlpDBFlagReadOnly = _pisock.dlpDBFlagReadOnly
+dlpDBFlagAppInfoDirty = _pisock.dlpDBFlagAppInfoDirty
+dlpDBFlagBackup = _pisock.dlpDBFlagBackup
+dlpDBFlagHidden = _pisock.dlpDBFlagHidden
+dlpDBFlagLaunchable = _pisock.dlpDBFlagLaunchable
+dlpDBFlagRecyclable = _pisock.dlpDBFlagRecyclable
+dlpDBFlagBundle = _pisock.dlpDBFlagBundle
+dlpDBFlagOpen = _pisock.dlpDBFlagOpen
+dlpDBFlagNewer = _pisock.dlpDBFlagNewer
+dlpDBFlagReset = _pisock.dlpDBFlagReset
+dlpDBFlagCopyPrevention = _pisock.dlpDBFlagCopyPrevention
+dlpDBFlagStream = _pisock.dlpDBFlagStream
+dlpDBFlagSchema = _pisock.dlpDBFlagSchema
+dlpDBFlagSecure = _pisock.dlpDBFlagSecure
+dlpDBFlagExtended = _pisock.dlpDBFlagExtended
+dlpDBFlagFixedUp = _pisock.dlpDBFlagFixedUp
+dlpDBMiscFlagExcludeFromSync = _pisock.dlpDBMiscFlagExcludeFromSync
+dlpDBMiscFlagRamBased = _pisock.dlpDBMiscFlagRamBased
+dlpRecAttrDeleted = _pisock.dlpRecAttrDeleted
+dlpRecAttrDirty = _pisock.dlpRecAttrDirty
+dlpRecAttrBusy = _pisock.dlpRecAttrBusy
+dlpRecAttrSecret = _pisock.dlpRecAttrSecret
+dlpRecAttrArchived = _pisock.dlpRecAttrArchived
+dlpOpenRead = _pisock.dlpOpenRead
+dlpOpenWrite = _pisock.dlpOpenWrite
+dlpOpenExclusive = _pisock.dlpOpenExclusive
+dlpOpenSecret = _pisock.dlpOpenSecret
+dlpOpenReadWrite = _pisock.dlpOpenReadWrite
+dlpDBListRAM = _pisock.dlpDBListRAM
+dlpDBListROM = _pisock.dlpDBListROM
+dlpDBListMultiple = _pisock.dlpDBListMultiple
+dlpFindDBOptFlagGetAttributes = _pisock.dlpFindDBOptFlagGetAttributes
+dlpFindDBOptFlagGetSize = _pisock.dlpFindDBOptFlagGetSize
+dlpFindDBOptFlagMaxRecSize = _pisock.dlpFindDBOptFlagMaxRecSize
+dlpFindDBSrchFlagNewSearch = _pisock.dlpFindDBSrchFlagNewSearch
+dlpFindDBSrchFlagOnlyLatest = _pisock.dlpFindDBSrchFlagOnlyLatest
+dlpEndCodeNormal = _pisock.dlpEndCodeNormal
+dlpEndCodeOutOfMemory = _pisock.dlpEndCodeOutOfMemory
+dlpEndCodeUserCan = _pisock.dlpEndCodeUserCan
+dlpEndCodeOther = _pisock.dlpEndCodeOther
+dlpExpCapabilityHasStorage = _pisock.dlpExpCapabilityHasStorage
+dlpExpCapabilityReadOnly = _pisock.dlpExpCapabilityReadOnly
+dlpExpCapabilitySerial = _pisock.dlpExpCapabilitySerial
+vfsVolAttrSlotBased = _pisock.vfsVolAttrSlotBased
+vfsVolAttrReadOnly = _pisock.vfsVolAttrReadOnly
+vfsVolAttrHidden = _pisock.vfsVolAttrHidden
+vfsOriginBeginning = _pisock.vfsOriginBeginning
+vfsOriginCurrent = _pisock.vfsOriginCurrent
+vfsOriginEnd = _pisock.vfsOriginEnd
+dlpVFSOpenExclusive = _pisock.dlpVFSOpenExclusive
+dlpVFSOpenRead = _pisock.dlpVFSOpenRead
+dlpVFSOpenWrite = _pisock.dlpVFSOpenWrite
+dlpVFSOpenReadWrite = _pisock.dlpVFSOpenReadWrite
+vfsModeExclusive = _pisock.vfsModeExclusive
+vfsModeRead = _pisock.vfsModeRead
+vfsModeWrite = _pisock.vfsModeWrite
+vfsModeReadWrite = _pisock.vfsModeReadWrite
+vfsModeCreate = _pisock.vfsModeCreate
+vfsModeTruncate = _pisock.vfsModeTruncate
+vfsModeLeaveOpen = _pisock.vfsModeLeaveOpen
+vfsFileAttrReadOnly = _pisock.vfsFileAttrReadOnly
+vfsFileAttrHidden = _pisock.vfsFileAttrHidden
+vfsFileAttrSystem = _pisock.vfsFileAttrSystem
+vfsFileAttrVolumeLabel = _pisock.vfsFileAttrVolumeLabel
+vfsFileAttrDirectory = _pisock.vfsFileAttrDirectory
+vfsFileAttrArchive = _pisock.vfsFileAttrArchive
+vfsFileAttrLink = _pisock.vfsFileAttrLink
+vfsFileDateCreated = _pisock.vfsFileDateCreated
+vfsFileDateModified = _pisock.vfsFileDateModified
+vfsFileDateAccessed = _pisock.vfsFileDateAccessed
+vfsIteratorStart = _pisock.vfsIteratorStart
+vfsIteratorStop = _pisock.vfsIteratorStop
+dlpErrNoError = _pisock.dlpErrNoError
+dlpErrSystem = _pisock.dlpErrSystem
+dlpErrIllegalReq = _pisock.dlpErrIllegalReq
+dlpErrMemory = _pisock.dlpErrMemory
+dlpErrParam = _pisock.dlpErrParam
+dlpErrNotFound = _pisock.dlpErrNotFound
+dlpErrNoneOpen = _pisock.dlpErrNoneOpen
+dlpErrAlreadyOpen = _pisock.dlpErrAlreadyOpen
+dlpErrTooManyOpen = _pisock.dlpErrTooManyOpen
+dlpErrExists = _pisock.dlpErrExists
+dlpErrOpen = _pisock.dlpErrOpen
+dlpErrDeleted = _pisock.dlpErrDeleted
+dlpErrBusy = _pisock.dlpErrBusy
+dlpErrNotSupp = _pisock.dlpErrNotSupp
+dlpErrUnused1 = _pisock.dlpErrUnused1
+dlpErrReadOnly = _pisock.dlpErrReadOnly
+dlpErrSpace = _pisock.dlpErrSpace
+dlpErrLimit = _pisock.dlpErrLimit
+dlpErrSync = _pisock.dlpErrSync
+dlpErrWrapper = _pisock.dlpErrWrapper
+dlpErrArgument = _pisock.dlpErrArgument
+dlpErrSize = _pisock.dlpErrSize
+dlpErrUnknown = _pisock.dlpErrUnknown
+
+dlp_set_protocol_version = _pisock.dlp_set_protocol_version
+
+dlp_ptohdate = _pisock.dlp_ptohdate
+
+dlp_htopdate = _pisock.dlp_htopdate
+
+dlp_GetSysDateTime_ = _pisock.dlp_GetSysDateTime_
+
+dlp_SetSysDateTime = _pisock.dlp_SetSysDateTime
+
+dlp_ReadSysInfo = _pisock.dlp_ReadSysInfo
+
+dlp_ReadStorageInfo = _pisock.dlp_ReadStorageInfo
+
+dlp_ReadUserInfo = _pisock.dlp_ReadUserInfo
+
+dlp_WriteUserInfo = _pisock.dlp_WriteUserInfo
+
+dlp_ResetLastSyncPC = _pisock.dlp_ResetLastSyncPC
+
+dlp_ReadNetSyncInfo = _pisock.dlp_ReadNetSyncInfo
+
+dlp_WriteNetSyncInfo = _pisock.dlp_WriteNetSyncInfo
+
+dlp_OpenConduit = _pisock.dlp_OpenConduit
+
+dlp_EndOfSync = _pisock.dlp_EndOfSync
+
+dlp_AbortSync = _pisock.dlp_AbortSync
+
+dlp_ReadFeature = _pisock.dlp_ReadFeature
+
+dlp_GetROMToken = _pisock.dlp_GetROMToken
+
+dlp_AddSyncLogEntry = _pisock.dlp_AddSyncLogEntry
+
+dlp_CallApplication = _pisock.dlp_CallApplication
+
+dlp_ReadAppPreference = _pisock.dlp_ReadAppPreference
+
+dlp_WriteAppPreference = _pisock.dlp_WriteAppPreference
+
+dlp_ResetSystem = _pisock.dlp_ResetSystem
+
+dlp_ReadDBList_ = _pisock.dlp_ReadDBList_
+
+dlp_FindDBByName = _pisock.dlp_FindDBByName
+
+dlp_FindDBByOpenHandle = _pisock.dlp_FindDBByOpenHandle
+
+dlp_FindDBByTypeCreator = _pisock.dlp_FindDBByTypeCreator
+
+dlp_FindDBInfo = _pisock.dlp_FindDBInfo
+
+dlp_OpenDB = _pisock.dlp_OpenDB
+
+dlp_CloseDB = _pisock.dlp_CloseDB
+
+dlp_CloseDB_All = _pisock.dlp_CloseDB_All
+
+dlp_DeleteDB = _pisock.dlp_DeleteDB
+
+dlp_CreateDB = _pisock.dlp_CreateDB
+
+dlp_ReadOpenDBInfo = _pisock.dlp_ReadOpenDBInfo
+
+dlp_SetDBInfo = _pisock.dlp_SetDBInfo
+
+dlp_DeleteCategory = _pisock.dlp_DeleteCategory
+
+dlp_MoveCategory = _pisock.dlp_MoveCategory
+
+dlp_ReadAppBlock = _pisock.dlp_ReadAppBlock
+
+dlp_WriteAppBlock = _pisock.dlp_WriteAppBlock
+
+dlp_ReadSortBlock = _pisock.dlp_ReadSortBlock
+
+dlp_WriteSortBlock = _pisock.dlp_WriteSortBlock
+
+dlp_CleanUpDatabase = _pisock.dlp_CleanUpDatabase
+
+dlp_ResetSyncFlags = _pisock.dlp_ResetSyncFlags
+
+dlp_ResetDBIndex = _pisock.dlp_ResetDBIndex
+
+dlp_ReadRecordById = _pisock.dlp_ReadRecordById
+
+dlp_ReadRecordByIndex = _pisock.dlp_ReadRecordByIndex
+
+dlp_ReadNextModifiedRec = _pisock.dlp_ReadNextModifiedRec
+
+dlp_ReadNextModifiedRecInCategory = _pisock.dlp_ReadNextModifiedRecInCategory
+
+dlp_ReadNextRecInCategory = _pisock.dlp_ReadNextRecInCategory
+
+dlp_WriteRecord = _pisock.dlp_WriteRecord
+
+dlp_DeleteRecord = _pisock.dlp_DeleteRecord
+
+dlp_ReadResourceByType = _pisock.dlp_ReadResourceByType
+
+dlp_ReadResourceByIndex = _pisock.dlp_ReadResourceByIndex
+
+dlp_WriteResource = _pisock.dlp_WriteResource
+
+dlp_DeleteResource = _pisock.dlp_DeleteResource
+
+dlp_ExpSlotEnumerate = _pisock.dlp_ExpSlotEnumerate
+
+dlp_ExpCardPresent = _pisock.dlp_ExpCardPresent
+
+dlp_ExpCardInfo = _pisock.dlp_ExpCardInfo
+
+dlp_ExpSlotMediaType = _pisock.dlp_ExpSlotMediaType
+
+dlp_VFSVolumeEnumerate = _pisock.dlp_VFSVolumeEnumerate
+
+dlp_VFSVolumeInfo = _pisock.dlp_VFSVolumeInfo
+
+dlp_VFSVolumeGetLabel = _pisock.dlp_VFSVolumeGetLabel
+
+dlp_VFSVolumeSetLabel = _pisock.dlp_VFSVolumeSetLabel
+
+dlp_VFSVolumeSize = _pisock.dlp_VFSVolumeSize
+
+dlp_VFSVolumeFormat = _pisock.dlp_VFSVolumeFormat
+
+dlp_VFSGetDefaultDir = _pisock.dlp_VFSGetDefaultDir
+
+dlp_VFSDirEntryEnumerate = _pisock.dlp_VFSDirEntryEnumerate
+
+dlp_VFSDirCreate = _pisock.dlp_VFSDirCreate
+
+dlp_VFSImportDatabaseFromFile = _pisock.dlp_VFSImportDatabaseFromFile
+
+dlp_VFSExportDatabaseToFile = _pisock.dlp_VFSExportDatabaseToFile
+
+dlp_VFSFileCreate = _pisock.dlp_VFSFileCreate
+
+dlp_VFSFileOpen = _pisock.dlp_VFSFileOpen
+
+dlp_VFSFileClose = _pisock.dlp_VFSFileClose
+
+dlp_VFSFileWrite = _pisock.dlp_VFSFileWrite
+
+dlp_VFSFileRead = _pisock.dlp_VFSFileRead
+
+dlp_VFSFileDelete = _pisock.dlp_VFSFileDelete
+
+dlp_VFSFileRename = _pisock.dlp_VFSFileRename
+
+dlp_VFSFileEOF = _pisock.dlp_VFSFileEOF
+
+dlp_VFSFileTell = _pisock.dlp_VFSFileTell
+
+dlp_VFSFileGetAttributes = _pisock.dlp_VFSFileGetAttributes
+
+dlp_VFSFileSetAttributes = _pisock.dlp_VFSFileSetAttributes
+
+dlp_VFSFileGetDate = _pisock.dlp_VFSFileGetDate
+
+dlp_VFSFileSetDate = _pisock.dlp_VFSFileSetDate
+
+dlp_VFSFileSeek = _pisock.dlp_VFSFileSeek
+
+dlp_VFSFileResize = _pisock.dlp_VFSFileResize
+
+dlp_VFSFileSize = _pisock.dlp_VFSFileSize
+
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock_wrap.c b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock_wrap.c
new file mode 100644
index 00000000..794ee109
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisock_wrap.c
@@ -0,0 +1,13491 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.27
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGPYTHON
+/***********************************************************************
+ *
+ * This section contains generic SWIG labels for method/variable
+ * declarations/attributes, and other compiler dependent labels.
+ *
+ ************************************************************************/
+
+/* template workaround for compilers that cannot correctly implement the C++ standard */
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# else
+# define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+#endif
+
+/* inline attribute */
+#ifndef SWIGINLINE
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
+# define SWIGINLINE inline
+# else
+# define SWIGINLINE
+# endif
+#endif
+
+/* attribute recognised by some compilers to avoid 'unused' warnings */
+#ifndef SWIGUNUSED
+# if defined(__GNUC__) || defined(__ICC)
+# define SWIGUNUSED __attribute__ ((unused))
+# else
+# define SWIGUNUSED
+# endif
+#endif
+
+/* internal SWIG method */
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+/* internal inline SWIG method */
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/* exporting methods for Windows DLLs */
+#ifndef SWIGEXPORT
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT
+# else
+# define SWIGEXPORT __declspec(dllexport)
+# endif
+# else
+# define SWIGEXPORT
+# endif
+#endif
+
+/* calling conventions for Windows */
+#ifndef SWIGSTDCALL
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# define SWIGSTDCALL __stdcall
+# else
+# define SWIGSTDCALL
+# endif
+#endif
+
+
+
+#include <Python.h>
+
+/***********************************************************************
+ * swigrun.swg
+ *
+ * This file contains generic CAPI SWIG runtime support for pointer
+ * type checking.
+ *
+ ************************************************************************/
+
+/* This should only be incremented when either the layout of swig_type_info changes,
+ or for whatever reason, the runtime changes incompatibly */
+#define SWIG_RUNTIME_VERSION "2"
+
+/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
+#ifdef SWIG_TYPE_TABLE
+# define SWIG_QUOTE_STRING(x) #x
+# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
+# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
+#else
+# define SWIG_TYPE_TABLE_NAME
+#endif
+
+/*
+ You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
+ creating a static or dynamic library from the swig runtime code.
+ In 99.9% of the cases, swig just needs to declare them as 'static'.
+
+ But only do this if is strictly necessary, ie, if you have problems
+ with your compiler or so.
+*/
+
+#ifndef SWIGRUNTIME
+# define SWIGRUNTIME SWIGINTERN
+#endif
+
+#ifndef SWIGRUNTIMEINLINE
+# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
+#endif
+
+#include <string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *(*swig_converter_func)(void *);
+typedef struct swig_type_info *(*swig_dycast_func)(void **);
+
+/* Structure to store inforomation on one type */
+typedef struct swig_type_info {
+ const char *name; /* mangled name of this type */
+ const char *str; /* human readable name of this type */
+ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
+ struct swig_cast_info *cast; /* linked list of types that can cast into this type */
+ void *clientdata; /* language specific type data */
+} swig_type_info;
+
+/* Structure to store a type and conversion function used for casting */
+typedef struct swig_cast_info {
+ swig_type_info *type; /* pointer to type that is equivalent to this type */
+ swig_converter_func converter; /* function to cast the void pointers */
+ struct swig_cast_info *next; /* pointer to next cast in linked list */
+ struct swig_cast_info *prev; /* pointer to the previous cast */
+} swig_cast_info;
+
+/* Structure used to store module information
+ * Each module generates one structure like this, and the runtime collects
+ * all of these structures and stores them in a circularly linked list.*/
+typedef struct swig_module_info {
+ swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
+ size_t size; /* Number of types in this module */
+ struct swig_module_info *next; /* Pointer to next element in circularly linked list */
+ swig_type_info **type_initial; /* Array of initially generated type structures */
+ swig_cast_info **cast_initial; /* Array of initially generated casting structures */
+ void *clientdata; /* Language specific module data */
+} swig_module_info;
+
+
+/*
+ Compare two type names skipping the space characters, therefore
+ "char*" == "char *" and "Class<int>" == "Class<int >", etc.
+
+ Return 0 when the two name types are equivalent, as in
+ strncmp, but skipping ' '.
+*/
+SWIGRUNTIME int
+SWIG_TypeNameComp(const char *f1, const char *l1,
+ const char *f2, const char *l2) {
+ for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
+ while ((*f1 == ' ') && (f1 != l1)) ++f1;
+ while ((*f2 == ' ') && (f2 != l2)) ++f2;
+ if (*f1 != *f2) return (int)(*f1 - *f2);
+ }
+ return (l1 - f1) - (l2 - f2);
+}
+
+/*
+ Check type equivalence in a name list like <name1>|<name2>|...
+ Return 0 if not equal, 1 if equal
+*/
+SWIGRUNTIME int
+SWIG_TypeEquiv(const char *nb, const char *tb) {
+ int equiv = 0;
+ const char* te = tb + strlen(tb);
+ const char* ne = nb;
+ while (!equiv && *ne) {
+ for (nb = ne; *ne; ++ne) {
+ if (*ne == '|') break;
+ }
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ if (*ne) ++ne;
+ }
+ return equiv;
+}
+
+/*
+ Check type equivalence in a name list like <name1>|<name2>|...
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
+*/
+SWIGRUNTIME int
+SWIG_TypeCompare(const char *nb, const char *tb) {
+ int equiv = 0;
+ const char* te = tb + strlen(tb);
+ const char* ne = nb;
+ while (!equiv && *ne) {
+ for (nb = ne; *ne; ++ne) {
+ if (*ne == '|') break;
+ }
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ if (*ne) ++ne;
+ }
+ return equiv;
+}
+
+
+/* think of this as a c++ template<> or a scheme macro */
+#define SWIG_TypeCheck_Template(comparison, ty) \
+ if (ty) { \
+ swig_cast_info *iter = ty->cast; \
+ while (iter) { \
+ if (comparison) { \
+ if (iter == ty->cast) return iter; \
+ /* Move iter to the top of the linked list */ \
+ iter->prev->next = iter->next; \
+ if (iter->next) \
+ iter->next->prev = iter->prev; \
+ iter->next = ty->cast; \
+ iter->prev = 0; \
+ if (ty->cast) ty->cast->prev = iter; \
+ ty->cast = iter; \
+ return iter; \
+ } \
+ iter = iter->next; \
+ } \
+ } \
+ return 0
+
+/*
+ Check the typename
+*/
+SWIGRUNTIME swig_cast_info *
+SWIG_TypeCheck(const char *c, swig_type_info *ty) {
+ SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
+}
+
+/* Same as previous function, except strcmp is replaced with a pointer comparison */
+SWIGRUNTIME swig_cast_info *
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
+ SWIG_TypeCheck_Template(iter->type == from, into);
+}
+
+/*
+ Cast a pointer up an inheritance hierarchy
+*/
+SWIGRUNTIMEINLINE void *
+SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
+}
+
+/*
+ Dynamic pointer casting. Down an inheritance hierarchy
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
+ swig_type_info *lastty = ty;
+ if (!ty || !ty->dcast) return ty;
+ while (ty && (ty->dcast)) {
+ ty = (*ty->dcast)(ptr);
+ if (ty) lastty = ty;
+ }
+ return lastty;
+}
+
+/*
+ Return the name associated with this type
+*/
+SWIGRUNTIMEINLINE const char *
+SWIG_TypeName(const swig_type_info *ty) {
+ return ty->name;
+}
+
+/*
+ Return the pretty name associated with this type,
+ that is an unmangled type name in a form presentable to the user.
+*/
+SWIGRUNTIME const char *
+SWIG_TypePrettyName(const swig_type_info *type) {
+ /* The "str" field contains the equivalent pretty names of the
+ type, separated by vertical-bar characters. We choose
+ to print the last name, as it is often (?) the most
+ specific. */
+ if (type->str != NULL) {
+ const char *last_name = type->str;
+ const char *s;
+ for (s = type->str; *s; s++)
+ if (*s == '|') last_name = s+1;
+ return last_name;
+ }
+ else
+ return type->name;
+}
+
+/*
+ Set the clientdata field for a type
+*/
+SWIGRUNTIME void
+SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
+ swig_cast_info *cast = ti->cast;
+ /* if (ti->clientdata == clientdata) return; */
+ ti->clientdata = clientdata;
+
+ while (cast) {
+ if (!cast->converter) {
+ swig_type_info *tc = cast->type;
+ if (!tc->clientdata) {
+ SWIG_TypeClientData(tc, clientdata);
+ }
+ }
+ cast = cast->next;
+ }
+}
+
+/*
+ Search for a swig_type_info structure only by mangled name
+ Search is a O(log #types)
+
+ We start searching at module start, and finish searching when start == end.
+ Note: if start == end at the beginning of the function, we go all the way around
+ the circular list.
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_MangledTypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
+ const char *name) {
+ swig_module_info *iter = start;
+ do {
+ if (iter->size) {
+ register size_t l = 0;
+ register size_t r = iter->size - 1;
+ do {
+ /* since l+r >= 0, we can (>> 1) instead (/ 2) */
+ register size_t i = (l + r) >> 1;
+ const char *iname = iter->types[i]->name;
+ if (iname) {
+ register int compare = strcmp(name, iname);
+ if (compare == 0) {
+ return iter->types[i];
+ } else if (compare < 0) {
+ if (i) {
+ r = i - 1;
+ } else {
+ break;
+ }
+ } else if (compare > 0) {
+ l = i + 1;
+ }
+ } else {
+ break; /* should never happen */
+ }
+ } while (l <= r);
+ }
+ iter = iter->next;
+ } while (iter != end);
+ return 0;
+}
+
+/*
+ Search for a swig_type_info structure for either a mangled name or a human readable name.
+ It first searches the mangled names of the types, which is a O(log #types)
+ If a type is not found it then searches the human readable names, which is O(#types).
+
+ We start searching at module start, and finish searching when start == end.
+ Note: if start == end at the beginning of the function, we go all the way around
+ the circular list.
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_TypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
+ const char *name) {
+ /* STEP 1: Search the name field using binary search */
+ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
+ if (ret) {
+ return ret;
+ } else {
+ /* STEP 2: If the type hasn't been found, do a complete search
+ of the str field (the human readable name) */
+ swig_module_info *iter = start;
+ do {
+ register size_t i = 0;
+ for (; i < iter->size; ++i) {
+ if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
+ return iter->types[i];
+ }
+ iter = iter->next;
+ } while (iter != end);
+ }
+
+ /* neither found a match */
+ return 0;
+}
+
+
+/*
+ Pack binary data into a string
+*/
+SWIGRUNTIME char *
+SWIG_PackData(char *c, void *ptr, size_t sz) {
+ static const char hex[17] = "0123456789abcdef";
+ register const unsigned char *u = (unsigned char *) ptr;
+ register const unsigned char *eu = u + sz;
+ for (; u != eu; ++u) {
+ register unsigned char uu = *u;
+ *(c++) = hex[(uu & 0xf0) >> 4];
+ *(c++) = hex[uu & 0xf];
+ }
+ return c;
+}
+
+/*
+ Unpack binary data from a string
+*/
+SWIGRUNTIME const char *
+SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
+ register unsigned char *u = (unsigned char *) ptr;
+ register const unsigned char *eu = u + sz;
+ for (; u != eu; ++u) {
+ register char d = *(c++);
+ register unsigned char uu = 0;
+ if ((d >= '0') && (d <= '9'))
+ uu = ((d - '0') << 4);
+ else if ((d >= 'a') && (d <= 'f'))
+ uu = ((d - ('a'-10)) << 4);
+ else
+ return (char *) 0;
+ d = *(c++);
+ if ((d >= '0') && (d <= '9'))
+ uu |= (d - '0');
+ else if ((d >= 'a') && (d <= 'f'))
+ uu |= (d - ('a'-10));
+ else
+ return (char *) 0;
+ *u = uu;
+ }
+ return c;
+}
+
+/*
+ Pack 'void *' into a string buffer.
+*/
+SWIGRUNTIME char *
+SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
+ char *r = buff;
+ if ((2*sizeof(void *) + 2) > bsz) return 0;
+ *(r++) = '_';
+ r = SWIG_PackData(r,&ptr,sizeof(void *));
+ if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
+ strcpy(r,name);
+ return buff;
+}
+
+SWIGRUNTIME const char *
+SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
+ if (*c != '_') {
+ if (strcmp(c,"NULL") == 0) {
+ *ptr = (void *) 0;
+ return name;
+ } else {
+ return 0;
+ }
+ }
+ return SWIG_UnpackData(++c,ptr,sizeof(void *));
+}
+
+SWIGRUNTIME char *
+SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
+ char *r = buff;
+ size_t lname = (name ? strlen(name) : 0);
+ if ((2*sz + 2 + lname) > bsz) return 0;
+ *(r++) = '_';
+ r = SWIG_PackData(r,ptr,sz);
+ if (lname) {
+ strncpy(r,name,lname+1);
+ } else {
+ *r = 0;
+ }
+ return buff;
+}
+
+SWIGRUNTIME const char *
+SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
+ if (*c != '_') {
+ if (strcmp(c,"NULL") == 0) {
+ memset(ptr,0,sz);
+ return name;
+ } else {
+ return 0;
+ }
+ }
+ return SWIG_UnpackData(++c,ptr,sz);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+/* -----------------------------------------------------------------------------
+ * SWIG API. Portion that goes into the runtime
+ * ----------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* -----------------------------------------------------------------------------
+ * for internal method declarations
+ * ----------------------------------------------------------------------------- */
+
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/*
+ Exception handling in wrappers
+*/
+#define SWIG_fail goto fail
+#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
+#define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
+#define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
+#define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
+#define SWIG_null_ref(type) SWIG_Python_NullRef(type)
+
+/*
+ Contract support
+*/
+#define SWIG_contract_assert(expr, msg) \
+ if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
+
+/* -----------------------------------------------------------------------------
+ * Constant declarations
+ * ----------------------------------------------------------------------------- */
+
+/* Constant Types */
+#define SWIG_PY_INT 1
+#define SWIG_PY_FLOAT 2
+#define SWIG_PY_STRING 3
+#define SWIG_PY_POINTER 4
+#define SWIG_PY_BINARY 5
+
+/* Constant information structure */
+typedef struct swig_const_info {
+ int type;
+ char *name;
+ long lvalue;
+ double dvalue;
+ void *pvalue;
+ swig_type_info **ptype;
+} swig_const_info;
+
+
+/* -----------------------------------------------------------------------------
+ * Alloc. memory flags
+ * ----------------------------------------------------------------------------- */
+#define SWIG_OLDOBJ 1
+#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
+#define SWIG_PYSTR SWIG_NEWOBJ + 1
+
+#ifdef __cplusplus
+}
+#endif
+
+
+/***********************************************************************
+ * pyrun.swg
+ *
+ * This file contains the runtime support for Python modules
+ * and includes code for managing global variables and pointer
+ * type checking.
+ *
+ * Author : David Beazley (beazley@cs.uchicago.edu)
+ ************************************************************************/
+
+/* Common SWIG API */
+#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
+#define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
+#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
+
+
+/* Python-specific SWIG API */
+#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
+#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
+
+/* Runtime API */
+#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
+#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
+
+/* -----------------------------------------------------------------------------
+ * Pointer declarations
+ * ----------------------------------------------------------------------------- */
+/*
+ Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
+ C/C++ pointers in the python side. Very useful for debugging, but
+ not always safe.
+*/
+#if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
+# define SWIG_COBJECT_TYPES
+#endif
+
+/* Flags for pointer conversion */
+#define SWIG_POINTER_EXCEPTION 0x1
+#define SWIG_POINTER_DISOWN 0x2
+
+
+/* Add PyOS_snprintf for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+#define PyOS_snprintf snprintf
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* -----------------------------------------------------------------------------
+ * Create a new pointer string
+ * ----------------------------------------------------------------------------- */
+#ifndef SWIG_BUFFER_SIZE
+#define SWIG_BUFFER_SIZE 1024
+#endif
+
+/* A crude PyString_FromFormat implementation for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+static PyObject *
+PyString_FromFormat(const char *fmt, ...) {
+ va_list ap;
+ char buf[SWIG_BUFFER_SIZE * 2];
+ int res;
+ va_start(ap, fmt);
+ res = vsnprintf(buf, sizeof(buf), fmt, ap);
+ va_end(ap);
+ return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
+}
+#endif
+
+#if PY_VERSION_HEX < 0x01060000
+#define PyObject_Del(op) PyMem_DEL((op))
+#endif
+
+#if defined(SWIG_COBJECT_TYPES)
+#if !defined(SWIG_COBJECT_PYTHON)
+/* -----------------------------------------------------------------------------
+ * Implements a simple Swig Object type, and use it instead of PyCObject
+ * ----------------------------------------------------------------------------- */
+
+typedef struct {
+ PyObject_HEAD
+ void *ptr;
+ const char *desc;
+} PySwigObject;
+
+/* Declarations for objects of type PySwigObject */
+
+SWIGRUNTIME int
+PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
+{
+ char result[SWIG_BUFFER_SIZE];
+ flags = flags;
+ if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
+ fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
+ return 0;
+ } else {
+ return 1;
+ }
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_repr(PySwigObject *v)
+{
+ char result[SWIG_BUFFER_SIZE];
+ return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
+ PyString_FromFormat("<Swig Object at %s>", result) : 0;
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_str(PySwigObject *v)
+{
+ char result[SWIG_BUFFER_SIZE];
+ return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
+ PyString_FromString(result) : 0;
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_long(PySwigObject *v)
+{
+ return PyLong_FromVoidPtr(v->ptr);
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_format(const char* fmt, PySwigObject *v)
+{
+ PyObject *res = NULL;
+ PyObject *args = PyTuple_New(1);
+ if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
+ PyObject *ofmt = PyString_FromString(fmt);
+ if (ofmt) {
+ res = PyString_Format(ofmt,args);
+ Py_DECREF(ofmt);
+ }
+ Py_DECREF(args);
+ }
+ return res;
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_oct(PySwigObject *v)
+{
+ return PySwigObject_format("%o",v);
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_hex(PySwigObject *v)
+{
+ return PySwigObject_format("%x",v);
+}
+
+SWIGRUNTIME int
+PySwigObject_compare(PySwigObject *v, PySwigObject *w)
+{
+ int c = strcmp(v->desc, w->desc);
+ if (c) {
+ return (c > 0) ? 1 : -1;
+ } else {
+ void *i = v->ptr;
+ void *j = w->ptr;
+ return (i < j) ? -1 : ((i > j) ? 1 : 0);
+ }
+}
+
+SWIGRUNTIME void
+PySwigObject_dealloc(PySwigObject *self)
+{
+ PyObject_Del(self);
+}
+
+SWIGRUNTIME PyTypeObject*
+PySwigObject_type(void) {
+ static char pyswigobject_type__doc__[] =
+ "Swig object carries a C/C++ instance pointer";
+
+ static PyNumberMethods PySwigObject_as_number = {
+ (binaryfunc)0, /*nb_add*/
+ (binaryfunc)0, /*nb_subtract*/
+ (binaryfunc)0, /*nb_multiply*/
+ (binaryfunc)0, /*nb_divide*/
+ (binaryfunc)0, /*nb_remainder*/
+ (binaryfunc)0, /*nb_divmod*/
+ (ternaryfunc)0,/*nb_power*/
+ (unaryfunc)0, /*nb_negative*/
+ (unaryfunc)0, /*nb_positive*/
+ (unaryfunc)0, /*nb_absolute*/
+ (inquiry)0, /*nb_nonzero*/
+ 0, /*nb_invert*/
+ 0, /*nb_lshift*/
+ 0, /*nb_rshift*/
+ 0, /*nb_and*/
+ 0, /*nb_xor*/
+ 0, /*nb_or*/
+ (coercion)0, /*nb_coerce*/
+ (unaryfunc)PySwigObject_long, /*nb_int*/
+ (unaryfunc)PySwigObject_long, /*nb_long*/
+ (unaryfunc)0, /*nb_float*/
+ (unaryfunc)PySwigObject_oct, /*nb_oct*/
+ (unaryfunc)PySwigObject_hex, /*nb_hex*/
+#if PY_VERSION_HEX >= 0x02020000
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
+#elif PY_VERSION_HEX >= 0x02000000
+ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
+#endif
+ };
+
+ static PyTypeObject pyswigobject_type
+#if !defined(__cplusplus)
+ ;
+ static int type_init = 0;
+ if (!type_init) {
+ PyTypeObject tmp
+#endif
+ = {
+ PyObject_HEAD_INIT(&PyType_Type)
+ 0, /*ob_size*/
+ (char *)"PySwigObject", /*tp_name*/
+ sizeof(PySwigObject), /*tp_basicsize*/
+ 0, /*tp_itemsize*/
+ /* methods */
+ (destructor)PySwigObject_dealloc, /*tp_dealloc*/
+ (printfunc)PySwigObject_print, /*tp_print*/
+ (getattrfunc)0, /*tp_getattr*/
+ (setattrfunc)0, /*tp_setattr*/
+ (cmpfunc)PySwigObject_compare, /*tp_compare*/
+ (reprfunc)PySwigObject_repr, /*tp_repr*/
+ &PySwigObject_as_number, /*tp_as_number*/
+ 0, /*tp_as_sequence*/
+ 0, /*tp_as_mapping*/
+ (hashfunc)0, /*tp_hash*/
+ (ternaryfunc)0, /*tp_call*/
+ (reprfunc)PySwigObject_str, /*tp_str*/
+ /* Space for future expansion */
+ 0,0,0,0,
+ pyswigobject_type__doc__, /* Documentation string */
+#if PY_VERSION_HEX >= 0x02000000
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+#endif
+#if PY_VERSION_HEX >= 0x02010000
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+#endif
+#if PY_VERSION_HEX >= 0x02020000
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+ 0, /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+ 0,0,0,0 /* tp_alloc -> tp_next */
+#endif
+ };
+#if !defined(__cplusplus)
+ pyswigobject_type = tmp;
+ type_init = 1;
+ }
+#endif
+ return &pyswigobject_type;
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
+{
+ PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
+ if (self) {
+ self->ptr = ptr;
+ self->desc = desc;
+ }
+ return (PyObject *)self;
+}
+
+SWIGRUNTIMEINLINE void *
+PySwigObject_AsVoidPtr(PyObject *self)
+{
+ return ((PySwigObject *)self)->ptr;
+}
+
+SWIGRUNTIMEINLINE const char *
+PySwigObject_GetDesc(PyObject *self)
+{
+ return ((PySwigObject *)self)->desc;
+}
+
+SWIGRUNTIMEINLINE int
+PySwigObject_Check(PyObject *op) {
+ return ((op)->ob_type == PySwigObject_type())
+ || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
+}
+
+/* -----------------------------------------------------------------------------
+ * Implements a simple Swig Packed type, and use it instead of string
+ * ----------------------------------------------------------------------------- */
+
+typedef struct {
+ PyObject_HEAD
+ void *pack;
+ const char *desc;
+ size_t size;
+} PySwigPacked;
+
+SWIGRUNTIME int
+PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
+{
+ char result[SWIG_BUFFER_SIZE];
+ flags = flags;
+ fputs("<Swig Packed ", fp);
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
+ fputs("at ", fp);
+ fputs(result, fp);
+ }
+ fputs(v->desc,fp);
+ fputs(">", fp);
+ return 0;
+}
+
+SWIGRUNTIME PyObject *
+PySwigPacked_repr(PySwigPacked *v)
+{
+ char result[SWIG_BUFFER_SIZE];
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
+ return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
+ } else {
+ return PyString_FromFormat("<Swig Packed %s>", v->desc);
+ }
+}
+
+SWIGRUNTIME PyObject *
+PySwigPacked_str(PySwigPacked *v)
+{
+ char result[SWIG_BUFFER_SIZE];
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
+ return PyString_FromFormat("%s%s", result, v->desc);
+ } else {
+ return PyString_FromString(v->desc);
+ }
+}
+
+SWIGRUNTIME int
+PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
+{
+ int c = strcmp(v->desc, w->desc);
+ if (c) {
+ return (c > 0) ? 1 : -1;
+ } else {
+ size_t i = v->size;
+ size_t j = w->size;
+ int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
+ return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
+ }
+}
+
+SWIGRUNTIME void
+PySwigPacked_dealloc(PySwigPacked *self)
+{
+ free(self->pack);
+ PyObject_Del(self);
+}
+
+SWIGRUNTIME PyTypeObject*
+PySwigPacked_type(void) {
+ static char pyswigpacked_type__doc__[] =
+ "Swig object carries a C/C++ instance pointer";
+ static PyTypeObject pyswigpacked_type
+#if !defined(__cplusplus)
+ ;
+ static int type_init = 0;
+ if (!type_init) {
+ PyTypeObject tmp
+#endif
+ = {
+ PyObject_HEAD_INIT(&PyType_Type)
+ 0, /*ob_size*/
+ (char *)"PySwigPacked", /*tp_name*/
+ sizeof(PySwigPacked), /*tp_basicsize*/
+ 0, /*tp_itemsize*/
+ /* methods */
+ (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
+ (printfunc)PySwigPacked_print, /*tp_print*/
+ (getattrfunc)0, /*tp_getattr*/
+ (setattrfunc)0, /*tp_setattr*/
+ (cmpfunc)PySwigPacked_compare, /*tp_compare*/
+ (reprfunc)PySwigPacked_repr, /*tp_repr*/
+ 0, /*tp_as_number*/
+ 0, /*tp_as_sequence*/
+ 0, /*tp_as_mapping*/
+ (hashfunc)0, /*tp_hash*/
+ (ternaryfunc)0, /*tp_call*/
+ (reprfunc)PySwigPacked_str, /*tp_str*/
+ /* Space for future expansion */
+ 0,0,0,0,
+ pyswigpacked_type__doc__, /* Documentation string */
+#if PY_VERSION_HEX >= 0x02000000
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+#endif
+#if PY_VERSION_HEX >= 0x02010000
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+#endif
+#if PY_VERSION_HEX >= 0x02020000
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+ 0, /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+ 0,0,0,0 /* tp_alloc -> tp_next */
+#endif
+ };
+#if !defined(__cplusplus)
+ pyswigpacked_type = tmp;
+ type_init = 1;
+ }
+#endif
+ return &pyswigpacked_type;
+}
+
+SWIGRUNTIME PyObject *
+PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
+{
+ PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
+ if (self == NULL) {
+ return NULL;
+ } else {
+ void *pack = malloc(size);
+ if (pack) {
+ memcpy(pack, ptr, size);
+ self->pack = pack;
+ self->desc = desc;
+ self->size = size;
+ return (PyObject *) self;
+ }
+ return NULL;
+ }
+}
+
+SWIGRUNTIMEINLINE const char *
+PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
+{
+ PySwigPacked *self = (PySwigPacked *)obj;
+ if (self->size != size) return 0;
+ memcpy(ptr, self->pack, size);
+ return self->desc;
+}
+
+SWIGRUNTIMEINLINE const char *
+PySwigPacked_GetDesc(PyObject *self)
+{
+ return ((PySwigPacked *)self)->desc;
+}
+
+SWIGRUNTIMEINLINE int
+PySwigPacked_Check(PyObject *op) {
+ return ((op)->ob_type == PySwigPacked_type())
+ || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
+}
+
+#else
+/* -----------------------------------------------------------------------------
+ * Use the old Python PyCObject instead of PySwigObject
+ * ----------------------------------------------------------------------------- */
+
+#define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
+#define PySwigObject_Check(obj) PyCObject_Check(obj)
+#define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
+#define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
+
+#endif
+
+#endif
+
+/* -----------------------------------------------------------------------------
+ * errors manipulation
+ * ----------------------------------------------------------------------------- */
+
+SWIGRUNTIME void
+SWIG_Python_TypeError(const char *type, PyObject *obj)
+{
+ if (type) {
+#if defined(SWIG_COBJECT_TYPES)
+ if (obj && PySwigObject_Check(obj)) {
+ const char *otype = (const char *) PySwigObject_GetDesc(obj);
+ if (otype) {
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
+ type, otype);
+ return;
+ }
+ } else
+#endif
+ {
+ const char *otype = (obj ? obj->ob_type->tp_name : 0);
+ if (otype) {
+ PyObject *str = PyObject_Str(obj);
+ const char *cstr = str ? PyString_AsString(str) : 0;
+ if (cstr) {
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
+ type, otype, cstr);
+ } else {
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
+ type, otype);
+ }
+ Py_XDECREF(str);
+ return;
+ }
+ }
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
+ } else {
+ PyErr_Format(PyExc_TypeError, "unexpected type is received");
+ }
+}
+
+SWIGRUNTIMEINLINE void
+SWIG_Python_NullRef(const char *type)
+{
+ if (type) {
+ PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
+ } else {
+ PyErr_Format(PyExc_TypeError, "null reference was received");
+ }
+}
+
+SWIGRUNTIME int
+SWIG_Python_AddErrMesg(const char* mesg, int infront)
+{
+ if (PyErr_Occurred()) {
+ PyObject *type = 0;
+ PyObject *value = 0;
+ PyObject *traceback = 0;
+ PyErr_Fetch(&type, &value, &traceback);
+ if (value) {
+ PyObject *old_str = PyObject_Str(value);
+ Py_XINCREF(type);
+ PyErr_Clear();
+ if (infront) {
+ PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
+ } else {
+ PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
+ }
+ Py_DECREF(old_str);
+ }
+ return 1;
+ } else {
+ return 0;
+ }
+}
+
+SWIGRUNTIME int
+SWIG_Python_ArgFail(int argnum)
+{
+ if (PyErr_Occurred()) {
+ /* add information about failing argument */
+ char mesg[256];
+ PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
+ return SWIG_Python_AddErrMesg(mesg, 1);
+ } else {
+ return 0;
+ }
+}
+
+
+/* -----------------------------------------------------------------------------
+ * pointers/data manipulation
+ * ----------------------------------------------------------------------------- */
+
+/* Convert a pointer value */
+SWIGRUNTIME int
+SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
+ swig_cast_info *tc;
+ const char *c = 0;
+ static PyObject *SWIG_this = 0;
+ int newref = 0;
+ PyObject *pyobj = 0;
+ void *vptr;
+
+ if (!obj) return 0;
+ if (obj == Py_None) {
+ *ptr = 0;
+ return 0;
+ }
+
+#ifdef SWIG_COBJECT_TYPES
+ if (!(PySwigObject_Check(obj))) {
+ if (!SWIG_this)
+ SWIG_this = PyString_FromString("this");
+ pyobj = obj;
+ obj = PyObject_GetAttr(obj,SWIG_this);
+ newref = 1;
+ if (!obj) goto type_error;
+ if (!PySwigObject_Check(obj)) {
+ Py_DECREF(obj);
+ goto type_error;
+ }
+ }
+ vptr = PySwigObject_AsVoidPtr(obj);
+ c = (const char *) PySwigObject_GetDesc(obj);
+ if (newref) { Py_DECREF(obj); }
+ goto type_check;
+#else
+ if (!(PyString_Check(obj))) {
+ if (!SWIG_this)
+ SWIG_this = PyString_FromString("this");
+ pyobj = obj;
+ obj = PyObject_GetAttr(obj,SWIG_this);
+ newref = 1;
+ if (!obj) goto type_error;
+ if (!PyString_Check(obj)) {
+ Py_DECREF(obj);
+ goto type_error;
+ }
+ }
+ c = PyString_AsString(obj);
+ /* Pointer values must start with leading underscore */
+ c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
+ if (newref) { Py_DECREF(obj); }
+ if (!c) goto type_error;
+#endif
+
+type_check:
+ if (ty) {
+ tc = SWIG_TypeCheck(c,ty);
+ if (!tc) goto type_error;
+ *ptr = SWIG_TypeCast(tc,vptr);
+ } else {
+ *ptr = vptr;
+ }
+ if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
+ PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
+ }
+ return 0;
+
+type_error:
+ PyErr_Clear();
+ if (pyobj && !obj) {
+ obj = pyobj;
+ if (PyCFunction_Check(obj)) {
+ /* here we get the method pointer for callbacks */
+ char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+ c = doc ? strstr(doc, "swig_ptr: ") : 0;
+ if (c) {
+ c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
+ if (!c) goto type_error;
+ goto type_check;
+ }
+ }
+ }
+ if (flags & SWIG_POINTER_EXCEPTION) {
+ if (ty) {
+ SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
+ } else {
+ SWIG_Python_TypeError("C/C++ pointer", obj);
+ }
+ }
+ return -1;
+}
+
+/* Convert a pointer value, signal an exception on a type mismatch */
+SWIGRUNTIME void *
+SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
+ void *result;
+ if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
+ PyErr_Clear();
+ if (flags & SWIG_POINTER_EXCEPTION) {
+ SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
+ SWIG_Python_ArgFail(argnum);
+ }
+ }
+ return result;
+}
+
+/* Convert a packed value value */
+SWIGRUNTIME int
+SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
+ swig_cast_info *tc;
+ const char *c = 0;
+
+#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
+ c = PySwigPacked_UnpackData(obj, ptr, sz);
+#else
+ if ((!obj) || (!PyString_Check(obj))) goto type_error;
+ c = PyString_AsString(obj);
+ /* Pointer values must start with leading underscore */
+ c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
+#endif
+ if (!c) goto type_error;
+ if (ty) {
+ tc = SWIG_TypeCheck(c,ty);
+ if (!tc) goto type_error;
+ }
+ return 0;
+
+type_error:
+ PyErr_Clear();
+ if (flags & SWIG_POINTER_EXCEPTION) {
+ if (ty) {
+ SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
+ } else {
+ SWIG_Python_TypeError("C/C++ packed data", obj);
+ }
+ }
+ return -1;
+}
+
+/* Create a new array object */
+SWIGRUNTIME PyObject *
+SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
+ PyObject *robj = 0;
+ if (!type) {
+ if (!PyErr_Occurred()) {
+ PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
+ }
+ return robj;
+ }
+ if (!ptr) {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+#ifdef SWIG_COBJECT_TYPES
+ robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
+#else
+ {
+ char result[SWIG_BUFFER_SIZE];
+ robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
+ PyString_FromString(result) : 0;
+ }
+#endif
+ if (!robj || (robj == Py_None)) return robj;
+ if (type->clientdata) {
+ PyObject *inst;
+ PyObject *args = Py_BuildValue((char*)"(O)", robj);
+ Py_DECREF(robj);
+ inst = PyObject_CallObject((PyObject *) type->clientdata, args);
+ Py_DECREF(args);
+ if (inst) {
+ if (own) {
+ PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
+ }
+ robj = inst;
+ }
+ }
+ return robj;
+}
+
+SWIGRUNTIME PyObject *
+SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
+ PyObject *robj = 0;
+ if (!ptr) {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
+ robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
+#else
+ {
+ char result[SWIG_BUFFER_SIZE];
+ robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
+ PyString_FromString(result) : 0;
+ }
+#endif
+ return robj;
+}
+
+/* -----------------------------------------------------------------------------*
+ * Get type list
+ * -----------------------------------------------------------------------------*/
+
+#ifdef SWIG_LINK_RUNTIME
+void *SWIG_ReturnGlobalTypeList(void *);
+#endif
+
+SWIGRUNTIME swig_module_info *
+SWIG_Python_GetModule(void) {
+ static void *type_pointer = (void *)0;
+ /* first check if module already created */
+ if (!type_pointer) {
+#ifdef SWIG_LINK_RUNTIME
+ type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
+#else
+ type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
+ (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
+ if (PyErr_Occurred()) {
+ PyErr_Clear();
+ type_pointer = (void *)0;
+ }
+#endif
+ }
+ return (swig_module_info *) type_pointer;
+}
+
+#if PY_MAJOR_VERSION < 2
+/* PyModule_AddObject function was introduced in Python 2.0. The following function
+is copied out of Python/modsupport.c in python version 2.3.4 */
+SWIGINTERN int
+PyModule_AddObject(PyObject *m, char *name, PyObject *o)
+{
+ PyObject *dict;
+ if (!PyModule_Check(m)) {
+ PyErr_SetString(PyExc_TypeError,
+ "PyModule_AddObject() needs module as first arg");
+ return -1;
+ }
+ if (!o) {
+ PyErr_SetString(PyExc_TypeError,
+ "PyModule_AddObject() needs non-NULL value");
+ return -1;
+ }
+
+ dict = PyModule_GetDict(m);
+ if (dict == NULL) {
+ /* Internal error -- modules must have a dict! */
+ PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
+ PyModule_GetName(m));
+ return -1;
+ }
+ if (PyDict_SetItemString(dict, name, o))
+ return -1;
+ Py_DECREF(o);
+ return 0;
+}
+#endif
+
+SWIGRUNTIME void
+SWIG_Python_SetModule(swig_module_info *swig_module) {
+ static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
+
+ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
+ swig_empty_runtime_method_table);
+ PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
+ if (pointer && module) {
+ PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
+ }
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+
+/* -------- TYPES TABLE (BEGIN) -------- */
+
+#define SWIGTYPE_p_CardInfo swig_types[0]
+#define SWIGTYPE_p_DBInfo swig_types[1]
+#define SWIGTYPE_p_DBSizeInfo swig_types[2]
+#define SWIGTYPE_p_NetSyncInfo swig_types[3]
+#define SWIGTYPE_p_PilotUser swig_types[4]
+#define SWIGTYPE_p_SysInfo swig_types[5]
+#define SWIGTYPE_p_VFSAnyMountParam swig_types[6]
+#define SWIGTYPE_p_VFSDirInfo swig_types[7]
+#define SWIGTYPE_p_VFSInfo swig_types[8]
+#define SWIGTYPE_p_VFSSlotMountParam swig_types[9]
+#define SWIGTYPE_p_char swig_types[10]
+#define SWIGTYPE_p_int swig_types[11]
+#define SWIGTYPE_p_long swig_types[12]
+#define SWIGTYPE_p_p_char swig_types[13]
+#define SWIGTYPE_p_p_pi_protocol swig_types[14]
+#define SWIGTYPE_p_pi_buffer_t swig_types[15]
+#define SWIGTYPE_p_pi_device swig_types[16]
+#define SWIGTYPE_p_pi_protocol swig_types[17]
+#define SWIGTYPE_p_pi_socket swig_types[18]
+#define SWIGTYPE_p_pi_socket_list swig_types[19]
+#define SWIGTYPE_p_recordid_t swig_types[20]
+#define SWIGTYPE_p_size_t swig_types[21]
+#define SWIGTYPE_p_sockaddr swig_types[22]
+#define SWIGTYPE_p_ssize_t swig_types[23]
+#define SWIGTYPE_p_time_t swig_types[24]
+#define SWIGTYPE_p_unsigned_char swig_types[25]
+#define SWIGTYPE_p_unsigned_long swig_types[26]
+#define SWIGTYPE_ptrdiff_t swig_types[27]
+#define SWIGTYPE_size_t swig_types[28]
+static swig_type_info *swig_types[30];
+static swig_module_info swig_module = {swig_types, 29, 0, 0, 0, 0};
+#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
+#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
+
+/* -------- TYPES TABLE (END) -------- */
+
+
+/*-----------------------------------------------
+ @(target):= _pisock.so
+ ------------------------------------------------*/
+#define SWIG_init init_pisock
+
+#define SWIG_name "_pisock"
+
+#include <time.h>
+#include "pi-header.h"
+#include "pi-source.h"
+#include "pi-error.h"
+#include "pi-socket.h"
+#include "pi-dlp.h"
+#include "pi-file.h"
+#include "pi-util.h"
+
+#define DGETLONG(src,key,default) (PyDict_GetItemString(src,key) ? \
+ PyInt_AsLong(PyDict_GetItemString(src,key)) : default)
+
+#define DGETSTR(src,key,default) (PyDict_GetItemString(src,key) ? \
+ PyString_AsString(PyDict_GetItemString(src,key)) : default)
+
+static PyObject *PIError = NULL;
+
+
+
+static PyObject *ConvertFromEncoding(const char *data, const char *encoding, const char *errors, int allowErrors)
+{
+ PyObject *buffer, *string = NULL;
+
+ buffer = PyBuffer_FromMemory((void *)data, strlen(data));
+ if (buffer == NULL)
+ {
+ if (allowErrors)
+ {
+ PyErr_Clear();
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ return NULL;
+ }
+
+ string = PyUnicode_FromEncodedObject(buffer, encoding, errors);
+ if (string == NULL)
+ goto error;
+
+ Py_DECREF(buffer);
+ return string;
+
+error:
+ Py_XDECREF(buffer);
+ Py_XDECREF(string);
+ if (allowErrors)
+ {
+ PyErr_Clear();
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ return NULL;
+}
+
+static int ConvertToEncoding(PyObject *object, const char *encoding, const char *errors, int allowErrors, char *buffer, int maxBufSize)
+{
+ int len;
+ char *s;
+ PyObject *encoded = NULL;
+
+ if (PyString_Check(object))
+ encoded = PyString_AsEncodedObject(object, encoding, errors);
+ else if (PyUnicode_Check(object))
+ encoded = PyUnicode_AsEncodedString(object, encoding, errors);
+
+ if (encoded == NULL)
+ goto error;
+
+ s = PyString_AsString(encoded);
+ if (s == NULL)
+ goto error;
+ len = strlen(s);
+ if (len)
+ {
+ if (len >= maxBufSize)
+ len = maxBufSize - 1;
+ memcpy(buffer, s, len);
+ }
+ buffer[len] = 0;
+
+ Py_DECREF(encoded);
+ return 1;
+
+error:
+ Py_XDECREF(encoded);
+ if (allowErrors)
+ {
+ PyErr_Clear();
+ memset(buffer, 0, maxBufSize);
+ }
+ return 0;
+}
+
+static PyObject *PyObjectFromDBInfo(const struct DBInfo *dbi)
+{
+ PyObject *returnObj;
+ PyObject *nameObj = ConvertFromEncoding(dbi->name, "palmos", "replace", 1);
+
+ returnObj = Py_BuildValue("{sisisisOsOsislslslslsisOsisisisisisisisisisisisisisisi}",
+ "more", dbi->more,
+ "flags", dbi->flags,
+ "miscFlags", dbi->miscFlags,
+ "type", PyString_FromStringAndSize(printlong(dbi->type), 4),
+ "creator", PyString_FromStringAndSize(printlong(dbi->creator), 4),
+ "version", dbi->version,
+ "modnum", dbi->modnum,
+ "createDate", dbi->createDate,
+ "modifyDate", dbi->modifyDate,
+ "backupDate", dbi->backupDate,
+ "index", dbi->index,
+ "name", nameObj,
+
+ "flagResource", !!(dbi->flags & dlpDBFlagResource),
+ "flagReadOnly", !!(dbi->flags & dlpDBFlagReadOnly),
+ "flagAppInfoDirty", !!(dbi->flags & dlpDBFlagAppInfoDirty),
+ "flagBackup", !!(dbi->flags & dlpDBFlagBackup),
+ "flagLaunchable", !!(dbi->flags & dlpDBFlagLaunchable),
+ "flagOpen", !!(dbi->flags & dlpDBFlagOpen),
+ "flagNewer", !!(dbi->flags & dlpDBFlagNewer),
+ "flagReset", !!(dbi->flags & dlpDBFlagReset),
+ "flagCopyPrevention", !!(dbi->flags & dlpDBFlagCopyPrevention),
+ "flagStream", !!(dbi->flags & dlpDBFlagStream),
+ "flagExcludeFromSync", !!(dbi->miscFlags & dlpDBMiscFlagExcludeFromSync),
+
+ "flagSchema", !!(dbi->flags & dlpDBFlagSchema),
+ "flagSecure", !!(dbi->flags & dlpDBFlagSecure),
+ "flagExtended", !!(dbi->flags & dlpDBFlagExtended),
+ "flagFixedUp", !!(dbi->flags & dlpDBFlagFixedUp));
+
+ Py_DECREF(nameObj);
+ return returnObj;
+}
+
+/* unused at that time
+static int PyObjectToDBInfo(PyObject *o, struct DBInfo *di)
+{
+ PyObject *nameObj;
+
+ di->more = (int) DGETLONG(o, "more", 0);
+ di->type = makelong(DGETSTR(o, "type", " "));
+ di->creator = makelong(DGETSTR(o, "creator", " "));
+ di->version = DGETLONG(o, "version", 0);
+ di->modnum = DGETLONG(o, "modnum", 0);
+ di->createDate = DGETLONG(o, "createDate", 0);
+ di->modifyDate = DGETLONG(o, "modifyDate", 0);
+ di->backupDate = DGETLONG(o, "backupDate", 0);
+ di->index = DGETLONG(o, "index", 0);
+ memset(di->name, 0, sizeof(di->name));
+ nameObj = PyDict_GetItemString(o,"name");
+ if (nameObj) {
+ if (!ConvertToEncoding(nameObj, "palmos", "replace", 1, di->name, sizeof(di->name)))
+ return 0;
+ }
+ di->flags = 0;
+ if (DGETLONG(o,"flagResource",0)) di->flags |= dlpDBFlagResource;
+ if (DGETLONG(o,"flagReadOnly",0)) di->flags |= dlpDBFlagReadOnly;
+ if (DGETLONG(o,"flagAppInfoDirty",0)) di->flags |= dlpDBFlagAppInfoDirty;
+ if (DGETLONG(o,"flagBackup",0)) di->flags |= dlpDBFlagBackup;
+ if (DGETLONG(o,"flagLaunchable",0)) di->flags |= dlpDBFlagLaunchable;
+ if (DGETLONG(o,"flagOpen",0)) di->flags |= dlpDBFlagOpen;
+ if (DGETLONG(o,"flagNewer",0)) di->flags |= dlpDBFlagNewer;
+ if (DGETLONG(o,"flagReset",0)) di->flags |= dlpDBFlagReset;
+ if (DGETLONG(o,"flagCopyPrevention",0)) di->flags |= dlpDBFlagCopyPrevention;
+ if (DGETLONG(o,"flagStream",0)) di->flags |= dlpDBFlagStream;
+ if (DGETLONG(o,"flagSchema",0)) di->flags |= dlpDBFlagSchema;
+ if (DGETLONG(o,"flagSecure",0)) di->flags |= dlpDBFlagSecure;
+ if (DGETLONG(o,"flagExtended",0)) di->flags |= dlpDBFlagExtended;
+ if (DGETLONG(o,"flagFixedUp",0)) di->flags |= dlpDBFlagFixedUp;
+ di->miscFlags = 0;
+ if (DGETLONG(o,"flagExcludeFromSync",0)) di->miscFlags |= dlpDBMiscFlagExcludeFromSync;
+ return 1;
+}
+*/
+
+static PyObject* PyObjectFromDBSizeInfo(const struct DBSizeInfo *si)
+{
+ return Py_BuildValue("{slslslslslsl}",
+ "numRecords", si->numRecords,
+ "totalBytes", si->totalBytes,
+ "dataBytes", si->dataBytes,
+ "appBlockSize", si->appBlockSize,
+ "sortBlockSize", si->sortBlockSize,
+ "maxRecSize", si->maxRecSize);
+}
+
+static PyObject* PyObjectFromCardInfo(const struct CardInfo *ci)
+{
+ PyObject *returnObj, *nameObj, *manufacturerObj;
+
+ nameObj = ConvertFromEncoding(ci->name, "cp1252", "replace", 1);
+ manufacturerObj = ConvertFromEncoding(ci->manufacturer, "cp1252", "replace", 1);
+
+ returnObj = Py_BuildValue("{sisislslslslsOsOsi}",
+ "card", ci->card,
+ "version", ci->version,
+ "creation", ci->creation,
+ "romSize", ci->romSize,
+ "ramSize", ci->ramSize,
+ "ramFree", ci->ramFree,
+ "name", nameObj,
+ "manufacturer", manufacturerObj,
+ "more", ci->more);
+
+ Py_DECREF(nameObj);
+ Py_DECREF(manufacturerObj);
+ return returnObj;
+}
+
+static PyObject* PyObjectFromSysInfo(const struct SysInfo *si)
+{
+ return Py_BuildValue("{slslss#}",
+ "romVersion", si->romVersion,
+ "locale", si->locale,
+ "name", si->prodID, si->prodIDLength);
+}
+
+static PyObject* PyObjectFromPilotUser(const struct PilotUser *pi)
+{
+ PyObject *nameObj, *passwordObj, *returnObj;
+
+ nameObj = ConvertFromEncoding(pi->username, "palmos", "replace", 1);
+ passwordObj = ConvertFromEncoding(pi->password, "palmos", "strict", 1);
+
+ returnObj = Py_BuildValue("{slslslslslsOsO}",
+ "userID", pi->userID,
+ "viewerID", pi->viewerID,
+ "lastSyncPC", pi->lastSyncPC,
+ "successfulSyncDate", pi->successfulSyncDate,
+ "lastSyncDate", pi->lastSyncDate,
+ "name", nameObj,
+ "password", passwordObj);
+
+ Py_DECREF(nameObj);
+ Py_DECREF(passwordObj);
+ return returnObj;
+}
+
+static int PyObjectToPilotUser(PyObject *o, struct PilotUser *pi)
+{
+ /* return 0 if string conversion to palmos charset failed, otherwise return 1 */
+ PyObject *stringObj;
+
+ pi->userID = DGETLONG(o,"userID",0);
+ pi->viewerID = DGETLONG(o,"viewerID",0);
+ pi->lastSyncPC = DGETLONG(o,"lastSyncPC",0);
+ pi->successfulSyncDate = DGETLONG(o,"successfulSyncDate",0);
+ pi->lastSyncDate = DGETLONG(o,"lastSyncDate",0);
+
+ memset(pi->username, 0, sizeof(pi->username));
+ stringObj = PyDict_GetItemString(o,"name");
+ if (stringObj) {
+ if (!ConvertToEncoding(stringObj, "palmos", "replace", 0, pi->username, sizeof(pi->username)))
+ return 0;
+ }
+
+ memset(pi->password, 0, sizeof(pi->password));
+ stringObj = PyDict_GetItemString(o,"password");
+ if (stringObj) {
+ if (!ConvertToEncoding(stringObj, "palmos", "strict", 0, pi->password, sizeof(pi->password)))
+ return 0;
+ }
+
+ return 1;
+}
+
+static PyObject* PyObjectFromNetSyncInfo(const struct NetSyncInfo *ni)
+{
+ return Py_BuildValue("{sissssss}",
+ "lanSync", ni->lanSync,
+ "hostName", ni->hostName,
+ "hostAddress", ni->hostAddress,
+ "hostSubnetMask", ni->hostSubnetMask);
+}
+
+static void PyObjectToNetSyncInfo(PyObject *o, struct NetSyncInfo *ni)
+{
+ ni->lanSync = (int) DGETLONG(o,"lanSync",0);
+ strncpy(ni->hostName, DGETSTR(o,"hostName",""), sizeof(ni->hostName));
+ strncpy(ni->hostAddress, DGETSTR(o,"hostAddress",""), sizeof(ni->hostAddress));
+ strncpy(ni->hostSubnetMask, DGETSTR(o,"hostSubnetMask",""), sizeof(ni->hostSubnetMask));
+}
+
+
+
+static int pythonWrapper_handlePiErr(int sd, int err)
+{
+ /* This function is called by each function
+ * which receives a PI_ERR return code
+ */
+ if (err == PI_ERR_DLP_PALMOS) {
+ int palmerr = pi_palmos_error(sd);
+ if (palmerr == dlpErrNoError)
+ return 0;
+ if (palmerr > dlpErrNoError && palmerr <= dlpErrUnknown) {
+ PyErr_SetObject(PIError,
+ Py_BuildValue("(is)", palmerr, dlp_strerror(palmerr)));
+ return err;
+ }
+ }
+
+ if (IS_PROT_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "protocol error"));
+ else if (IS_SOCK_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "socket error"));
+ else if (IS_DLP_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "DLP error"));
+ else if (IS_FILE_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "file error"));
+ else if (IS_GENERIC_ERR(err))
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "generic error"));
+ else
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", err, "pisock error"));
+
+ return err;
+}
+
+
+static PyObject *_wrap_dlp_ReadRecordIDList (PyObject *self, PyObject *args) {
+ int sd, dbhandle, sort, start, max;
+ int ret;
+ recordid_t *buf;
+ int count, i;
+ PyObject *list;
+
+ buf = (recordid_t *)PyMem_Malloc(0xFFFF);
+
+ if (!PyArg_ParseTuple(args, "iiiii", &sd, &dbhandle, &sort, &start, &max))
+ return NULL;
+
+ /* this is a rather simplistic wrapper. if max is too big, we just
+ * refuse to do it; we don't loop, figuring that that is the job of
+ * the python wrapper.
+ */
+ if (max > (0xFFFF/sizeof(recordid_t))) {
+ PyErr_SetString(PyExc_ValueError, "can only return about 64k worth of ids at once");
+ return NULL;
+ }
+
+ {
+ PyThreadState *save = PyEval_SaveThread();
+ ret = dlp_ReadRecordIDList(sd, dbhandle, sort, start, max, buf, &count);
+ PyEval_RestoreThread(save);
+ }
+
+ if (ret < 0) {
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", ret, dlp_strerror(ret)));
+ PyMem_Free(buf);
+ return NULL;
+ }
+
+ list = PyList_New(0);
+ for (i=0; i<count; i++)
+ PyList_Append(list, PyInt_FromLong((long)buf[i]));
+
+ PyMem_Free(buf);
+ return list;
+}
+
+
+ /*@/usr/share/swig1.3/python/pymacros.swg,72,SWIG_define@*/
+#define SWIG_From_int PyInt_FromLong
+/*@@*/
+
+
+#include <limits.h>
+
+
+SWIGINTERN int
+ SWIG_CheckLongInRange(long value, long min_value, long max_value,
+ const char *errmsg)
+{
+ if (value < min_value) {
+ if (errmsg) {
+ PyErr_Format(PyExc_OverflowError,
+ "value %ld is less than '%s' minimum %ld",
+ value, errmsg, min_value);
+ }
+ return 0;
+ } else if (value > max_value) {
+ if (errmsg) {
+ PyErr_Format(PyExc_OverflowError,
+ "value %ld is greater than '%s' maximum %ld",
+ value, errmsg, max_value);
+ }
+ return 0;
+ }
+ return 1;
+}
+
+
+SWIGINTERN int
+ SWIG_AsVal_long(PyObject * obj, long* val)
+{
+ if (PyLong_Check(obj)) {
+ long v = PyLong_AsLong(obj);
+ if (!PyErr_Occurred()) {
+ if (val) *val = v;
+ return 1;
+ } else {
+ if (!val) PyErr_Clear();
+ return 0;
+ }
+ }
+ if (PyInt_Check(obj)) {
+ if (val) *val = PyInt_AsLong(obj);
+ return 1;
+ }
+ if (val) {
+ SWIG_type_error("long", obj);
+ }
+ return 0;
+ }
+
+
+#if INT_MAX != LONG_MAX
+SWIGINTERN int
+ SWIG_AsVal_int(PyObject *obj, int *val)
+{
+ const char* errmsg = val ? "int" : (char*)0;
+ long v;
+ if (SWIG_AsVal_long(obj, &v)) {
+ if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
+ if (val) *val = (int)(v);
+ return 1;
+ } else {
+ return 0;
+ }
+ } else {
+ PyErr_Clear();
+ }
+ if (val) {
+ SWIG_type_error(errmsg, obj);
+ }
+ return 0;
+}
+#else
+SWIGINTERNINLINE int
+ SWIG_AsVal_int(PyObject *obj, int *val)
+{
+ return SWIG_AsVal_long(obj,(long*)val);
+}
+#endif
+
+
+SWIGINTERNINLINE int
+SWIG_As_int(PyObject* obj)
+{
+ int v;
+ if (!SWIG_AsVal_int(obj, &v)) {
+ /*
+ this is needed to make valgrind/purify happier.
+ */
+ memset((void*)&v, 0, sizeof(int));
+ }
+ return v;
+}
+
+
+SWIGINTERNINLINE int
+SWIG_Check_int(PyObject* obj)
+{
+ return SWIG_AsVal_int(obj, (int*)0);
+}
+
+
+SWIGINTERN int
+ SWIG_AsVal_unsigned_SS_long(PyObject *obj, unsigned long *val)
+{
+ if (PyLong_Check(obj)) {
+ unsigned long v = PyLong_AsUnsignedLong(obj);
+ if (!PyErr_Occurred()) {
+ if (val) *val = v;
+ return 1;
+ } else {
+ if (!val) PyErr_Clear();
+ return 0;
+ }
+ }
+ if (PyInt_Check(obj)) {
+ long v = PyInt_AsLong(obj);
+ if (v >= 0) {
+ if (val) *val = v;
+ return 1;
+ }
+ }
+ if (val) {
+ SWIG_type_error("unsigned long", obj);
+ }
+ return 0;
+}
+
+
+SWIGINTERNINLINE unsigned long
+SWIG_As_unsigned_SS_long(PyObject* obj)
+{
+ unsigned long v;
+ if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
+ /*
+ this is needed to make valgrind/purify happier.
+ */
+ memset((void*)&v, 0, sizeof(unsigned long));
+ }
+ return v;
+}
+
+
+SWIGINTERNINLINE int
+SWIG_Check_unsigned_SS_long(PyObject* obj)
+{
+ return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
+}
+
+
+SWIGINTERNINLINE PyObject*
+ SWIG_From_unsigned_SS_long(unsigned long value)
+{
+ return (value > LONG_MAX) ?
+ PyLong_FromUnsignedLong(value)
+ : PyInt_FromLong((long)(value));
+}
+
+
+SWIGINTERN PyObject*
+t_output_helper(PyObject* target, PyObject* o) {
+ if (!target) {
+ target = o;
+ } else if (target == Py_None) {
+ Py_DECREF(target);
+ target = o;
+ } else {
+ if (!PyList_Check(target)) {
+ PyObject *o2 = target;
+ target = PyList_New(1);
+ PyList_SetItem(target, 0, o2);
+ }
+ PyList_Append(target,o);
+ Py_DECREF(o);
+ }
+ return target;
+}
+
+
+/* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */
+SWIGINTERN int
+SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize)
+{
+ static swig_type_info* pchar_info = 0;
+ char* vptr = 0;
+ if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
+ if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) {
+ if (cptr) *cptr = vptr;
+ if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
+ return SWIG_OLDOBJ;
+ } else {
+ PyErr_Clear();
+ if (PyString_Check(obj)) {
+ if (cptr) {
+ *cptr = PyString_AS_STRING(obj);
+ if (psize) {
+ *psize = PyString_GET_SIZE(obj) + 1;
+ }
+ }
+ return SWIG_PYSTR;
+ }
+ }
+ if (cptr) {
+ SWIG_type_error("char *", obj);
+ }
+ return 0;
+}
+
+
+SWIGINTERNINLINE int
+SWIG_AsCharPtr(PyObject *obj, char **val)
+{
+ if (SWIG_AsCharPtrAndSize(obj, val, (size_t*)(0))) {
+ return 1;
+ }
+ if (val) {
+ PyErr_Clear();
+ SWIG_type_error("char *", obj);
+ }
+ return 0;
+}
+
+
+ /*@/usr/share/swig1.3/python/pymacros.swg,72,SWIG_define@*/
+#define SWIG_From_long PyInt_FromLong
+/*@@*/
+
+
+SWIGINTERN int
+SWIG_AsCharArray(PyObject *obj, char *val, size_t size)
+{
+ char* cptr; size_t csize;
+ if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) {
+ /* in C you can do:
+
+ char x[5] = "hello";
+
+ ie, assing the array using an extra '0' char.
+ */
+ if ((csize == size + 1) && !(cptr[csize-1])) --csize;
+ if (csize <= size) {
+ if (val) {
+ if (csize) memcpy(val, cptr, csize);
+ if (csize < size) memset(val + csize, 0, size - csize);
+ }
+ return 1;
+ }
+ }
+ if (val) {
+ PyErr_Format(PyExc_TypeError,
+ "a char array of maximum size %lu is expected",
+ (unsigned long) size);
+ }
+ return 0;
+}
+
+
+SWIGINTERNINLINE PyObject *
+SWIG_FromCharArray(const char* carray, size_t size)
+{
+ if (size > INT_MAX) {
+ return SWIG_NewPointerObj((char *)(carray),
+ SWIG_TypeQuery("char *"), 0);
+ } else {
+ return PyString_FromStringAndSize(carray, (int)(size));
+ }
+}
+
+
+SWIGINTERNINLINE int
+ SWIG_CheckUnsignedLongInRange(unsigned long value,
+ unsigned long max_value,
+ const char *errmsg)
+{
+ if (value > max_value) {
+ if (errmsg) {
+ PyErr_Format(PyExc_OverflowError,
+ "value %lu is greater than '%s' minimum %lu",
+ value, errmsg, max_value);
+ }
+ return 0;
+ }
+ return 1;
+ }
+
+
+SWIGINTERN int
+ SWIG_AsVal_unsigned_SS_short(PyObject *obj, unsigned short *val)
+{
+ const char* errmsg = val ? "unsigned short" : (char*)0;
+ unsigned long v;
+ if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
+ if (SWIG_CheckUnsignedLongInRange(v, USHRT_MAX, errmsg)) {
+ if (val) *val = (unsigned short)(v);
+ return 1;
+ } else {
+ return 0;
+ }
+ } else {
+ PyErr_Clear();
+ }
+ if (val) {
+ SWIG_type_error(errmsg, obj);
+ }
+ return 0;
+}
+
+
+SWIGINTERNINLINE unsigned short
+SWIG_As_unsigned_SS_short(PyObject* obj)
+{
+ unsigned short v;
+ if (!SWIG_AsVal_unsigned_SS_short(obj, &v)) {
+ /*
+ this is needed to make valgrind/purify happier.
+ */
+ memset((void*)&v, 0, sizeof(unsigned short));
+ }
+ return v;
+}
+
+
+SWIGINTERNINLINE int
+SWIG_Check_unsigned_SS_short(PyObject* obj)
+{
+ return SWIG_AsVal_unsigned_SS_short(obj, (unsigned short*)0);
+}
+
+
+ /*@/usr/share/swig1.3/python/pymacros.swg,72,SWIG_define@*/
+#define SWIG_From_unsigned_SS_short PyInt_FromLong
+/*@@*/
+
+
+SWIGINTERNINLINE long
+SWIG_As_long(PyObject* obj)
+{
+ long v;
+ if (!SWIG_AsVal_long(obj, &v)) {
+ /*
+ this is needed to make valgrind/purify happier.
+ */
+ memset((void*)&v, 0, sizeof(long));
+ }
+ return v;
+}
+
+
+SWIGINTERNINLINE int
+SWIG_Check_long(PyObject* obj)
+{
+ return SWIG_AsVal_long(obj, (long*)0);
+}
+
+
+SWIGINTERN int
+ SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
+{
+ const char* errmsg = val ? "unsigned char" : (char*)0;
+ unsigned long v;
+ if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
+ if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
+ if (val) *val = (unsigned char)(v);
+ return 1;
+ } else {
+ return 0;
+ }
+ } else {
+ PyErr_Clear();
+ }
+ if (val) {
+ SWIG_type_error(errmsg, obj);
+ }
+ return 0;
+}
+
+
+SWIGINTERNINLINE unsigned char
+SWIG_As_unsigned_SS_char(PyObject* obj)
+{
+ unsigned char v;
+ if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
+ /*
+ this is needed to make valgrind/purify happier.
+ */
+ memset((void*)&v, 0, sizeof(unsigned char));
+ }
+ return v;
+}
+
+
+SWIGINTERNINLINE int
+SWIG_Check_unsigned_SS_char(PyObject* obj)
+{
+ return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
+}
+
+
+ /*@/usr/share/swig1.3/python/pymacros.swg,72,SWIG_define@*/
+#define SWIG_From_unsigned_SS_char PyInt_FromLong
+/*@@*/
+
+
+#if UINT_MAX != ULONG_MAX
+SWIGINTERN int
+ SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
+{
+ const char* errmsg = val ? "unsigned int" : (char*)0;
+ unsigned long v;
+ if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
+ if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
+ if (val) *val = (unsigned int)(v);
+ return 1;
+ }
+ } else {
+ PyErr_Clear();
+ }
+ if (val) {
+ SWIG_type_error(errmsg, obj);
+ }
+ return 0;
+}
+#else
+SWIGINTERNINLINE unsigned int
+ SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
+{
+ return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
+}
+#endif
+
+
+SWIGINTERNINLINE unsigned int
+SWIG_As_unsigned_SS_int(PyObject* obj)
+{
+ unsigned int v;
+ if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
+ /*
+ this is needed to make valgrind/purify happier.
+ */
+ memset((void*)&v, 0, sizeof(unsigned int));
+ }
+ return v;
+}
+
+
+SWIGINTERNINLINE int
+SWIG_Check_unsigned_SS_int(PyObject* obj)
+{
+ return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
+}
+
+
+#if UINT_MAX < LONG_MAX
+/*@/usr/share/swig1.3/python/pymacros.swg,72,SWIG_define@*/
+#define SWIG_From_unsigned_SS_int SWIG_From_long
+/*@@*/
+#else
+/*@/usr/share/swig1.3/python/pymacros.swg,72,SWIG_define@*/
+#define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
+/*@@*/
+#endif
+
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Python syntax: pi_file_install(sd, cardno, filename, callback)
+ */
+static PyObject *_wrap_pi_file_install (PyObject *self, PyObject *args)
+{
+ PyObject *obj1 = NULL;
+ PyObject *obj2 = NULL;
+ PyObject *obj3 = NULL;
+ PyObject *cback = NULL;
+ int sd, cardno, result;
+ char *path = NULL;
+ pi_file_t *pf = NULL;
+
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:pi_file_install",&obj1, &obj2, &obj3, &cback))
+ return NULL;
+
+ sd = (int)SWIG_As_int(obj1);
+ cardno = (int)SWIG_As_int(obj2);
+ if (!SWIG_AsCharPtr(obj3, (char**)&path)) {
+ SWIG_arg_fail(3);
+ return NULL;
+ }
+
+ pf = pi_file_open(path);
+ if (pf == NULL) {
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", PI_ERR_FILE_INVALID, "invalid file"));
+ return NULL;
+ }
+
+ {
+ PyThreadState *save = PyEval_SaveThread();
+ result = pi_file_install(pf, sd, cardno, NULL);
+ PyEval_RestoreThread(save);
+ }
+
+ pi_file_close(pf);
+
+ if (result < 0) {
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
+/*
+ * Python syntax: pi_file_retrieve(sd, cardno, dbname, storagepath, callback)
+ */
+static PyObject *_wrap_pi_file_retrieve (PyObject *self, PyObject *args)
+{
+ PyObject *obj1 = NULL;
+ PyObject *obj2 = NULL;
+ PyObject *obj3 = NULL;
+ PyObject *obj4 = NULL;
+ PyObject *cback = NULL;
+ int sd, cardno, result;
+ char *dbname = NULL;
+ char *path = NULL;
+ struct DBInfo dbi;
+ pi_file_t *pf = NULL;
+ PyThreadState *save;
+
+ if (!PyArg_ParseTuple(args, (char *)"OOOOO:pi_file_retrieve",&obj1,&obj2,&obj3,&obj4,&cback))
+ return NULL;
+
+ sd = SWIG_As_int(obj1);
+ cardno = SWIG_As_int(obj2);
+
+ if (!SWIG_AsCharPtr(obj3, (char**)&dbname)) {
+ SWIG_arg_fail(3);
+ return NULL;
+ }
+
+ if (!SWIG_AsCharPtr(obj4, (char **)&path)) {
+ SWIG_arg_fail(4);
+ return NULL;
+ }
+
+ /* let other threads run */
+ save = PyEval_SaveThread();
+
+ memset(&dbi, 0, sizeof(dbi));
+ result = dlp_FindDBByName(sd, cardno, dbname, NULL, NULL, &dbi, NULL);
+ if (result < 0) {
+ PyEval_RestoreThread(save);
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ pf = pi_file_create(path, &dbi);
+ if (pf == NULL) {
+ PyEval_RestoreThread(save);
+ PyErr_SetObject(PIError, Py_BuildValue("(is)", PI_ERR_FILE_INVALID, "invalid file"));
+ return NULL;
+ }
+
+ result = pi_file_retrieve(pf, sd, cardno, NULL);
+ if (result < 0) {
+ PyEval_RestoreThread(save);
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ result = pi_file_close(pf);
+ PyEval_RestoreThread(save);
+ if (result < 0) {
+ pythonWrapper_handlePiErr(sd, result);
+ return NULL;
+ }
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
+
+static PyObject *_wrap_pi_socket_t_sd_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_sd_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->sd = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_sd_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_sd_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->sd);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_type_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_type_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->type = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_type_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_type_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->type);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_protocol_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_protocol_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->protocol = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_protocol_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_protocol_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->protocol);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_cmd_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_cmd_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->cmd = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_cmd_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_cmd_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->cmd);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_laddr_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct sockaddr *arg2 = (struct sockaddr *) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_laddr_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_sockaddr, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->laddr = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_laddr_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct sockaddr *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_laddr_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (struct sockaddr *) ((arg1)->laddr);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_sockaddr, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_laddrlen_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ size_t arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_laddrlen_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->laddrlen = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_laddrlen_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ size_t result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_laddrlen_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = ((arg1)->laddrlen);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_raddr_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct sockaddr *arg2 = (struct sockaddr *) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_raddr_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_sockaddr, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->raddr = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_raddr_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct sockaddr *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_raddr_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (struct sockaddr *) ((arg1)->raddr);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_sockaddr, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_raddrlen_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ size_t arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_raddrlen_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->raddrlen = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_raddrlen_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ size_t result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_raddrlen_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = ((arg1)->raddrlen);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_protocol_queue_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct pi_protocol **arg2 = (struct pi_protocol **) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_protocol_queue_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_p_pi_protocol, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->protocol_queue = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_protocol_queue_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct pi_protocol **result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_protocol_queue_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (struct pi_protocol **) ((arg1)->protocol_queue);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_p_pi_protocol, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_queue_len_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_queue_len_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->queue_len = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_queue_len_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_queue_len_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->queue_len);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_cmd_queue_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct pi_protocol **arg2 = (struct pi_protocol **) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_cmd_queue_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_p_pi_protocol, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->cmd_queue = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_cmd_queue_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct pi_protocol **result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_cmd_queue_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (struct pi_protocol **) ((arg1)->cmd_queue);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_p_pi_protocol, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_cmd_len_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_cmd_len_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->cmd_len = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_cmd_len_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_cmd_len_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->cmd_len);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_device_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct pi_device *arg2 = (struct pi_device *) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_device_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_pi_device, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->device = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_device_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ struct pi_device *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_device_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (struct pi_device *) ((arg1)->device);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_pi_device, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_state_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_state_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->state = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_state_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_state_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->state);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_honor_rx_to_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_honor_rx_to_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->honor_rx_to = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_honor_rx_to_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_honor_rx_to_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->honor_rx_to);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_command_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_command_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->command = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_command_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_command_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->command);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_accept_to_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_accept_to_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->accept_to = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_accept_to_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_accept_to_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->accept_to);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_dlprecord_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_dlprecord_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->dlprecord = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_dlprecord_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_dlprecord_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->dlprecord);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_dlpversion_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_dlpversion_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->dlpversion = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_dlpversion_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_dlpversion_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->dlpversion);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_maxrecsize_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_maxrecsize_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->maxrecsize = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_maxrecsize_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_maxrecsize_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->maxrecsize);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_last_error_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_last_error_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->last_error = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_last_error_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_last_error_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->last_error);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_palmos_error_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_t_palmos_error_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->palmos_error = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_t_palmos_error_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_t_palmos_error_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->palmos_error);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_pi_socket_t(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_pi_socket_t")) goto fail;
+ result = (pi_socket_t *)(pi_socket_t *) calloc(1, sizeof(pi_socket_t));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_pi_socket, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_pi_socket_t(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_pi_socket_t",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * pi_socket_t_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_pi_socket, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_pi_socket_list_t_ps_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_list_t *arg1 = (pi_socket_list_t *) 0 ;
+ pi_socket_t *arg2 = (pi_socket_t *) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_list_t_ps_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket_list, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->ps = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_list_t_ps_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_list_t *arg1 = (pi_socket_list_t *) 0 ;
+ pi_socket_t *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_list_t_ps_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket_list, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (pi_socket_t *) ((arg1)->ps);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_pi_socket, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_list_t_next_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_list_t *arg1 = (pi_socket_list_t *) 0 ;
+ struct pi_socket_list *arg2 = (struct pi_socket_list *) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_list_t_next_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket_list, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_pi_socket_list, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->next = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_list_t_next_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_list_t *arg1 = (pi_socket_list_t *) 0 ;
+ struct pi_socket_list *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_list_t_next_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket_list, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (struct pi_socket_list *) ((arg1)->next);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_pi_socket_list, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_pi_socket_list_t(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_list_t *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_pi_socket_list_t")) goto fail;
+ result = (pi_socket_list_t *)(pi_socket_list_t *) calloc(1, sizeof(pi_socket_list_t));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_pi_socket_list, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_pi_socket_list_t(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_list_t *arg1 = (pi_socket_list_t *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_pi_socket_list_t",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket_list, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * pi_socket_list_t_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_pi_socket_list, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_pi_socket(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:pi_socket",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_socket(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_setsd(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ pi_socket_t *arg1 = (pi_socket_t *) 0 ;
+ int arg2 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_socket_setsd",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_pi_socket, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_socket_setsd(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_getsockname(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct sockaddr *arg2 = (struct sockaddr *) 0 ;
+ size_t *arg3 = (size_t *) 0 ;
+ int result;
+ struct pi_sockaddr temp2 ;
+ size_t temp3 ;
+ PyObject * obj0 = 0 ;
+
+ {
+ arg2 = (struct sockaddr *)&temp2;
+ }
+ {
+ arg3 = (size_t *)&temp3;
+ }
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_getsockname",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_getsockname(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ {
+ PyObject *o;
+
+ if (arg2) {
+ o = Py_BuildValue("(is)", (int)((struct pi_sockaddr *)arg2)->pi_family,
+ ((struct pi_sockaddr *)arg2)->pi_device);
+ resultobj = t_output_helper(resultobj, o);
+ }
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_getsockpeer(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct sockaddr *arg2 = (struct sockaddr *) 0 ;
+ size_t *arg3 = (size_t *) 0 ;
+ int result;
+ struct pi_sockaddr temp2 ;
+ size_t temp3 ;
+ PyObject * obj0 = 0 ;
+
+ {
+ arg2 = (struct sockaddr *)&temp2;
+ }
+ {
+ arg3 = (size_t *)&temp3;
+ }
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_getsockpeer",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_getsockpeer(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ {
+ PyObject *o;
+
+ if (arg2) {
+ o = Py_BuildValue("(is)", (int)((struct pi_sockaddr *)arg2)->pi_family,
+ ((struct pi_sockaddr *)arg2)->pi_device);
+ resultobj = t_output_helper(resultobj, o);
+ }
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_getsockopt(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ void *arg4 = (void *) 0 ;
+ size_t *arg5 = (size_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:pi_getsockopt",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),0,SWIG_POINTER_EXCEPTION|0))== -1) {
+ SWIG_arg_fail(4);SWIG_fail;
+ }
+ }
+ SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_size_t, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_getsockopt(arg1,arg2,arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_setsockopt(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ void *arg4 = (void *) 0 ;
+ size_t *arg5 = (size_t *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:pi_setsockopt",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),0,SWIG_POINTER_EXCEPTION|0))== -1) {
+ SWIG_arg_fail(4);SWIG_fail;
+ }
+ }
+ SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_size_t, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_setsockopt(arg1,arg2,arg3,(void const *)arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_protocol(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ struct pi_protocol *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_protocol",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (struct pi_protocol *)pi_protocol(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_pi_protocol, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_protocol_next(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ struct pi_protocol *result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_protocol_next",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (struct pi_protocol *)pi_protocol_next(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_pi_protocol, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_socket_connected(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_socket_connected",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_socket_connected(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_connect(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ char *arg2 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_connect",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj1, (char**)&arg2)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)pi_connect(arg1,(char const *)arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_bind(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ char *arg2 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_bind",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj1, (char**)&arg2)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)pi_bind(arg1,(char const *)arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_listen(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_listen",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)pi_listen(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_accept(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct sockaddr *arg2 = (struct sockaddr *) 0 ;
+ size_t *arg3 = (size_t *) 0 ;
+ PI_ERR result;
+ struct pi_sockaddr temp2 ;
+ size_t temp3 ;
+ PyObject * obj0 = 0 ;
+
+ {
+ arg2 = (struct sockaddr *)&temp2;
+ }
+ {
+ arg3 = (size_t *)&temp3;
+ }
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_accept",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)pi_accept(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ PyObject *o;
+
+ if (arg2) {
+ o = Py_BuildValue("(is)", (int)((struct pi_sockaddr *)arg2)->pi_family,
+ ((struct pi_sockaddr *)arg2)->pi_device);
+ resultobj = t_output_helper(resultobj, o);
+ }
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_accept_to(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct sockaddr *arg2 = (struct sockaddr *) 0 ;
+ size_t *arg3 = (size_t *) 0 ;
+ int arg4 ;
+ PI_ERR result;
+ struct pi_sockaddr temp2 ;
+ size_t temp3 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ {
+ arg2 = (struct sockaddr *)&temp2;
+ }
+ {
+ arg3 = (size_t *)&temp3;
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_accept_to",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)pi_accept_to(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ PyObject *o;
+
+ if (arg2) {
+ o = Py_BuildValue("(is)", (int)((struct pi_sockaddr *)arg2)->pi_family,
+ ((struct pi_sockaddr *)arg2)->pi_device);
+ resultobj = t_output_helper(resultobj, o);
+ }
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_close(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_close",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_close(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_send(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ void *arg2 = (void *) 0 ;
+ size_t arg3 ;
+ int arg4 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:pi_send",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),0,SWIG_POINTER_EXCEPTION|0))== -1) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ }
+ {
+ arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_send(arg1,(void const *)arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_recv(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ pi_buffer_t *arg2 = (pi_buffer_t *) 0 ;
+ size_t arg3 ;
+ int arg4 ;
+ ssize_t result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ {
+ arg2 = pi_buffer_new(0xFFFF);
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OOO:pi_recv",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = pi_recv(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ ssize_t * resultptr;
+ resultptr = (ssize_t *) malloc(sizeof(ssize_t));
+ if (resultptr) memcpy(resultptr, &result, sizeof(ssize_t));
+ resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_ssize_t, 1);
+ }
+ {
+ if (arg2) {
+ PyObject *o1 = Py_BuildValue("s#", arg2->data, arg2->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ {
+ if (arg2) {
+ pi_buffer_free(arg2);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg2) {
+ pi_buffer_free(arg2);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_read(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ pi_buffer_t *arg2 = (pi_buffer_t *) 0 ;
+ size_t arg3 ;
+ ssize_t result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ {
+ arg2 = pi_buffer_new(0xFFFF);
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_read",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = pi_read(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ ssize_t * resultptr;
+ resultptr = (ssize_t *) malloc(sizeof(ssize_t));
+ if (resultptr) memcpy(resultptr, &result, sizeof(ssize_t));
+ resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_ssize_t, 1);
+ }
+ {
+ if (arg2) {
+ PyObject *o1 = Py_BuildValue("s#", arg2->data, arg2->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ {
+ if (arg2) {
+ pi_buffer_free(arg2);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg2) {
+ pi_buffer_free(arg2);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_write(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ void *arg2 = (void *) 0 ;
+ size_t arg3 ;
+ ssize_t result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_write",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+
+ arg2 = (void *)PyString_AsString(obj1);
+ arg3 = PyString_Size(obj1);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = pi_write(arg1,(void const *)arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ ssize_t * resultptr;
+ resultptr = (ssize_t *) malloc(sizeof(ssize_t));
+ if (resultptr) memcpy(resultptr, &result, sizeof(ssize_t));
+ resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_ssize_t, 1);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_flush(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_flush",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ pi_flush(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_error(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_error",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_error(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_set_error(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_set_error",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_set_error(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_palmos_error(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_palmos_error",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_palmos_error(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_set_palmos_error(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_set_palmos_error",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_set_palmos_error(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_reset_errors(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_reset_errors",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ pi_reset_errors(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_version(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_version",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)pi_version(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_maxrecsize(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_maxrecsize",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (unsigned long)pi_maxrecsize(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_tickle(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:pi_tickle",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)pi_tickle(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_pi_watchdog(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:pi_watchdog",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (int)pi_watchdog(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSDirInfo_attr_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSDirInfo *arg1 = (struct VFSDirInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSDirInfo_attr_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSDirInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->attr = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSDirInfo_attr_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSDirInfo *arg1 = (struct VFSDirInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSDirInfo_attr_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSDirInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->attr);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSDirInfo_name_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSDirInfo *arg1 = (struct VFSDirInfo *) 0 ;
+ char *arg2 ;
+ char temp2[256] ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSDirInfo_name_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSDirInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (!SWIG_AsCharArray(obj1, temp2, 256)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->name,arg2,256*sizeof(char));
+ else memset(arg1->name,0,256*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSDirInfo_name_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSDirInfo *arg1 = (struct VFSDirInfo *) 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSDirInfo_name_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSDirInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (char *)(char *) ((arg1)->name);
+
+ {
+ size_t size = 256;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_VFSDirInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSDirInfo *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_VFSDirInfo")) goto fail;
+ result = (struct VFSDirInfo *)(struct VFSDirInfo *) calloc(1, sizeof(struct VFSDirInfo));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_VFSDirInfo, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_VFSDirInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSDirInfo *arg1 = (struct VFSDirInfo *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_VFSDirInfo",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSDirInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * VFSDirInfo_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_VFSDirInfo, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_VFSAnyMountParam_volRefNum_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *arg1 = (struct VFSAnyMountParam *) 0 ;
+ unsigned short arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSAnyMountParam_volRefNum_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->volRefNum = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSAnyMountParam_volRefNum_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *arg1 = (struct VFSAnyMountParam *) 0 ;
+ unsigned short result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSAnyMountParam_volRefNum_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned short) ((arg1)->volRefNum);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSAnyMountParam_reserved_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *arg1 = (struct VFSAnyMountParam *) 0 ;
+ unsigned short arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSAnyMountParam_reserved_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->reserved = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSAnyMountParam_reserved_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *arg1 = (struct VFSAnyMountParam *) 0 ;
+ unsigned short result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSAnyMountParam_reserved_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned short) ((arg1)->reserved);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSAnyMountParam_mountClass_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *arg1 = (struct VFSAnyMountParam *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSAnyMountParam_mountClass_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->mountClass = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSAnyMountParam_mountClass_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *arg1 = (struct VFSAnyMountParam *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSAnyMountParam_mountClass_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->mountClass);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_VFSAnyMountParam(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_VFSAnyMountParam")) goto fail;
+ result = (struct VFSAnyMountParam *)(struct VFSAnyMountParam *) calloc(1, sizeof(struct VFSAnyMountParam));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_VFSAnyMountParam, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_VFSAnyMountParam(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSAnyMountParam *arg1 = (struct VFSAnyMountParam *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_VFSAnyMountParam",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * VFSAnyMountParam_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_VFSAnyMountParam, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_VFSSlotMountParam_vfsMountParam_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *arg1 = (struct VFSSlotMountParam *) 0 ;
+ struct VFSAnyMountParam *arg2 = (struct VFSAnyMountParam *) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSSlotMountParam_vfsMountParam_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_VFSAnyMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ if (arg1) (arg1)->vfsMountParam = *arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSSlotMountParam_vfsMountParam_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *arg1 = (struct VFSSlotMountParam *) 0 ;
+ struct VFSAnyMountParam *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSSlotMountParam_vfsMountParam_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (struct VFSAnyMountParam *)& ((arg1)->vfsMountParam);
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_VFSAnyMountParam, 0);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSSlotMountParam_slotLibRefNum_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *arg1 = (struct VFSSlotMountParam *) 0 ;
+ unsigned short arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSSlotMountParam_slotLibRefNum_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->slotLibRefNum = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSSlotMountParam_slotLibRefNum_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *arg1 = (struct VFSSlotMountParam *) 0 ;
+ unsigned short result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSSlotMountParam_slotLibRefNum_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned short) ((arg1)->slotLibRefNum);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSSlotMountParam_slotRefNum_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *arg1 = (struct VFSSlotMountParam *) 0 ;
+ unsigned short arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSSlotMountParam_slotRefNum_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->slotRefNum = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSSlotMountParam_slotRefNum_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *arg1 = (struct VFSSlotMountParam *) 0 ;
+ unsigned short result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSSlotMountParam_slotRefNum_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned short) ((arg1)->slotRefNum);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_VFSSlotMountParam(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_VFSSlotMountParam")) goto fail;
+ result = (struct VFSSlotMountParam *)(struct VFSSlotMountParam *) calloc(1, sizeof(struct VFSSlotMountParam));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_VFSSlotMountParam, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_VFSSlotMountParam(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSSlotMountParam *arg1 = (struct VFSSlotMountParam *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_VFSSlotMountParam",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * VFSSlotMountParam_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_VFSSlotMountParam, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_VFSInfo_attributes_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_attributes_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->attributes = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_attributes_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_attributes_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->attributes);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_fsType_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_fsType_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->fsType = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_fsType_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_fsType_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->fsType);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_fsCreator_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_fsCreator_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->fsCreator = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_fsCreator_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_fsCreator_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->fsCreator);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_mountClass_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_mountClass_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->mountClass = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_mountClass_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_mountClass_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->mountClass);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_slotLibRefNum_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_slotLibRefNum_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->slotLibRefNum = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_slotLibRefNum_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_slotLibRefNum_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->slotLibRefNum);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_slotRefNum_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_slotRefNum_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->slotRefNum = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_slotRefNum_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_slotRefNum_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->slotRefNum);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_mediaType_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_mediaType_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->mediaType = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_mediaType_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_mediaType_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->mediaType);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_reserved_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:VFSInfo_reserved_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->reserved = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_VFSInfo_reserved_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:VFSInfo_reserved_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->reserved);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_VFSInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_VFSInfo")) goto fail;
+ result = (struct VFSInfo *)(struct VFSInfo *) calloc(1, sizeof(struct VFSInfo));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_VFSInfo, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_VFSInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct VFSInfo *arg1 = (struct VFSInfo *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_VFSInfo",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * VFSInfo_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_VFSInfo, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_PilotUser_passwordLength_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ size_t arg2 ;
+ struct PilotUser temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_passwordLength_set",&obj0)) goto fail;
+ {
+ arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->passwordLength = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_passwordLength_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ size_t result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_passwordLength_get")) goto fail;
+ result = ((arg1)->passwordLength);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_username_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ char *arg2 ;
+ struct PilotUser temp1 ;
+ char temp2[128] ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_username_set",&obj0)) goto fail;
+ {
+ if (!SWIG_AsCharArray(obj0, temp2, 128)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->username,arg2,128*sizeof(char));
+ else memset(arg1->username,0,128*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_username_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ char *result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_username_get")) goto fail;
+ result = (char *)(char *) ((arg1)->username);
+
+ {
+ size_t size = 128;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_password_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ char *arg2 ;
+ struct PilotUser temp1 ;
+ char temp2[128] ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_password_set",&obj0)) goto fail;
+ {
+ if (!SWIG_AsCharArray(obj0, temp2, 128)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->password,arg2,128*sizeof(char));
+ else memset(arg1->password,0,128*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_password_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ char *result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_password_get")) goto fail;
+ result = (char *)(char *) ((arg1)->password);
+
+ {
+ size_t size = 128;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_userID_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ unsigned long arg2 ;
+ struct PilotUser temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_userID_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->userID = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_userID_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ unsigned long result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_userID_get")) goto fail;
+ result = (unsigned long) ((arg1)->userID);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_viewerID_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ unsigned long arg2 ;
+ struct PilotUser temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_viewerID_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->viewerID = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_viewerID_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ unsigned long result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_viewerID_get")) goto fail;
+ result = (unsigned long) ((arg1)->viewerID);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_lastSyncPC_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ unsigned long arg2 ;
+ struct PilotUser temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_lastSyncPC_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->lastSyncPC = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_lastSyncPC_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ unsigned long result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_lastSyncPC_get")) goto fail;
+ result = (unsigned long) ((arg1)->lastSyncPC);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_successfulSyncDate_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ time_t arg2 ;
+ struct PilotUser temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_successfulSyncDate_set",&obj0)) goto fail;
+ {
+ arg2 = (time_t)(SWIG_As_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->successfulSyncDate = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_successfulSyncDate_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ time_t result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_successfulSyncDate_get")) goto fail;
+ result = ((arg1)->successfulSyncDate);
+
+ {
+ resultobj = SWIG_From_long((long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_lastSyncDate_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ time_t arg2 ;
+ struct PilotUser temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:PilotUser_lastSyncDate_set",&obj0)) goto fail;
+ {
+ arg2 = (time_t)(SWIG_As_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->lastSyncDate = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_PilotUser_lastSyncDate_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ time_t result;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":PilotUser_lastSyncDate_get")) goto fail;
+ result = ((arg1)->lastSyncDate);
+
+ {
+ resultobj = SWIG_From_long((long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_PilotUser(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_PilotUser")) goto fail;
+ result = (struct PilotUser *)(struct PilotUser *) calloc(1, sizeof(struct PilotUser));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_PilotUser, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_PilotUser(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct PilotUser *arg1 = (struct PilotUser *) 0 ;
+ struct PilotUser temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":delete_PilotUser")) goto fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * PilotUser_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_PilotUser, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_SysInfo_romVersion_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned long arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_romVersion_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->romVersion = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_romVersion_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned long result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_romVersion_get")) goto fail;
+ result = (unsigned long) ((arg1)->romVersion);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_locale_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned long arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_locale_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->locale = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_locale_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned long result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_locale_get")) goto fail;
+ result = (unsigned long) ((arg1)->locale);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_prodIDLength_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned char arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_prodIDLength_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->prodIDLength = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_prodIDLength_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned char result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_prodIDLength_get")) goto fail;
+ result = (unsigned char) ((arg1)->prodIDLength);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_prodID_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ char *arg2 ;
+ struct SysInfo temp1 ;
+ char temp2[128] ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_prodID_set",&obj0)) goto fail;
+ {
+ if (!SWIG_AsCharArray(obj0, temp2, 128)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->prodID,arg2,128*sizeof(char));
+ else memset(arg1->prodID,0,128*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_prodID_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ char *result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_prodID_get")) goto fail;
+ result = (char *)(char *) ((arg1)->prodID);
+
+ {
+ size_t size = 128;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_dlpMajorVersion_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_dlpMajorVersion_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->dlpMajorVersion = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_dlpMajorVersion_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_dlpMajorVersion_get")) goto fail;
+ result = (unsigned short) ((arg1)->dlpMajorVersion);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_dlpMinorVersion_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_dlpMinorVersion_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->dlpMinorVersion = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_dlpMinorVersion_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_dlpMinorVersion_get")) goto fail;
+ result = (unsigned short) ((arg1)->dlpMinorVersion);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_compatMajorVersion_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_compatMajorVersion_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->compatMajorVersion = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_compatMajorVersion_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_compatMajorVersion_get")) goto fail;
+ result = (unsigned short) ((arg1)->compatMajorVersion);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_compatMinorVersion_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_compatMinorVersion_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned short)(SWIG_As_unsigned_SS_short(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->compatMinorVersion = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_compatMinorVersion_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned short result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_compatMinorVersion_get")) goto fail;
+ result = (unsigned short) ((arg1)->compatMinorVersion);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_maxRecSize_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned long arg2 ;
+ struct SysInfo temp1 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:SysInfo_maxRecSize_set",&obj0)) goto fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj0));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->maxRecSize = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_SysInfo_maxRecSize_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ unsigned long result;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":SysInfo_maxRecSize_get")) goto fail;
+ result = (unsigned long) ((arg1)->maxRecSize);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_SysInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_SysInfo")) goto fail;
+ result = (struct SysInfo *)(struct SysInfo *) calloc(1, sizeof(struct SysInfo));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_SysInfo, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_SysInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct SysInfo *arg1 = (struct SysInfo *) 0 ;
+ struct SysInfo temp1 ;
+
+
+ arg1 = &temp1;
+
+ if(!PyArg_ParseTuple(args,(char *)":delete_SysInfo")) goto fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+
+ if (arg1) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg1));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * SysInfo_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_SysInfo, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_DBInfo_more_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_more_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->more = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_more_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_more_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->more);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_name_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ char *arg2 ;
+ char temp2[34] ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_name_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (!SWIG_AsCharArray(obj1, temp2, 34)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->name,arg2,34*sizeof(char));
+ else memset(arg1->name,0,34*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_name_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_name_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (char *)(char *) ((arg1)->name);
+
+ {
+ size_t size = 34;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_flags_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_flags_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->flags = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_flags_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_flags_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned int) ((arg1)->flags);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_miscFlags_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_miscFlags_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->miscFlags = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_miscFlags_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_miscFlags_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned int) ((arg1)->miscFlags);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_version_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_version_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->version = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_version_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_version_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned int) ((arg1)->version);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_type_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_type_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ if (arg1) (arg1)->type = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_type_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_type_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->type);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_creator_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_creator_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ if (arg1) (arg1)->creator = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_creator_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_creator_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->creator);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_modnum_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_modnum_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->modnum = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_modnum_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_modnum_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->modnum);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_index_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_index_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->index = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_index_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ unsigned int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_index_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned int) ((arg1)->index);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_createDate_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ time_t arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_createDate_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (time_t)(SWIG_As_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->createDate = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_createDate_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ time_t result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_createDate_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = ((arg1)->createDate);
+
+ {
+ resultobj = SWIG_From_long((long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_modifyDate_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ time_t arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_modifyDate_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (time_t)(SWIG_As_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->modifyDate = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_modifyDate_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ time_t result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_modifyDate_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = ((arg1)->modifyDate);
+
+ {
+ resultobj = SWIG_From_long((long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_backupDate_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ time_t arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBInfo_backupDate_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (time_t)(SWIG_As_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->backupDate = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBInfo_backupDate_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ time_t result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBInfo_backupDate_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = ((arg1)->backupDate);
+
+ {
+ resultobj = SWIG_From_long((long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_DBInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_DBInfo")) goto fail;
+ result = (struct DBInfo *)(struct DBInfo *) calloc(1, sizeof(struct DBInfo));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_DBInfo, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_DBInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBInfo *arg1 = (struct DBInfo *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_DBInfo",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * DBInfo_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_DBInfo, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_DBSizeInfo_numRecords_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBSizeInfo_numRecords_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->numRecords = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_numRecords_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBSizeInfo_numRecords_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->numRecords);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_totalBytes_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBSizeInfo_totalBytes_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->totalBytes = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_totalBytes_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBSizeInfo_totalBytes_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->totalBytes);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_dataBytes_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBSizeInfo_dataBytes_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->dataBytes = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_dataBytes_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBSizeInfo_dataBytes_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->dataBytes);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_appBlockSize_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBSizeInfo_appBlockSize_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->appBlockSize = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_appBlockSize_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBSizeInfo_appBlockSize_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->appBlockSize);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_sortBlockSize_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBSizeInfo_sortBlockSize_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->sortBlockSize = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_sortBlockSize_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBSizeInfo_sortBlockSize_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->sortBlockSize);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_maxRecSize_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:DBSizeInfo_maxRecSize_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->maxRecSize = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_DBSizeInfo_maxRecSize_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:DBSizeInfo_maxRecSize_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->maxRecSize);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_DBSizeInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_DBSizeInfo")) goto fail;
+ result = (struct DBSizeInfo *)(struct DBSizeInfo *) calloc(1, sizeof(struct DBSizeInfo));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_DBSizeInfo, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_DBSizeInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct DBSizeInfo *arg1 = (struct DBSizeInfo *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_DBSizeInfo",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_DBSizeInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * DBSizeInfo_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_DBSizeInfo, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_CardInfo_card_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_card_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->card = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_card_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_card_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->card);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_version_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_version_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->version = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_version_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_version_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->version);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_more_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_more_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->more = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_more_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_more_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->more);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_creation_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ time_t arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_creation_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (time_t)(SWIG_As_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->creation = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_creation_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ time_t result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_creation_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = ((arg1)->creation);
+
+ {
+ resultobj = SWIG_From_long((long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_romSize_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_romSize_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->romSize = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_romSize_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_romSize_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->romSize);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_ramSize_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_ramSize_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->ramSize = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_ramSize_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_ramSize_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->ramSize);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_ramFree_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ unsigned long arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_ramFree_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->ramFree = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_ramFree_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ unsigned long result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_ramFree_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (unsigned long) ((arg1)->ramFree);
+
+ {
+ resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_name_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ char *arg2 ;
+ char temp2[128] ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_name_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (!SWIG_AsCharArray(obj1, temp2, 128)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->name,arg2,128*sizeof(char));
+ else memset(arg1->name,0,128*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_name_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_name_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (char *)(char *) ((arg1)->name);
+
+ {
+ size_t size = 128;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_manufacturer_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ char *arg2 ;
+ char temp2[128] ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:CardInfo_manufacturer_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (!SWIG_AsCharArray(obj1, temp2, 128)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->manufacturer,arg2,128*sizeof(char));
+ else memset(arg1->manufacturer,0,128*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_CardInfo_manufacturer_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:CardInfo_manufacturer_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (char *)(char *) ((arg1)->manufacturer);
+
+ {
+ size_t size = 128;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_CardInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_CardInfo")) goto fail;
+ result = (struct CardInfo *)(struct CardInfo *) calloc(1, sizeof(struct CardInfo));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CardInfo, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_CardInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct CardInfo *arg1 = (struct CardInfo *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_CardInfo",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CardInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * CardInfo_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_CardInfo, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_NetSyncInfo_lanSync_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:NetSyncInfo_lanSync_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (arg1) (arg1)->lanSync = arg2;
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_NetSyncInfo_lanSync_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ int result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:NetSyncInfo_lanSync_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (int) ((arg1)->lanSync);
+
+ {
+ resultobj = SWIG_From_int((int)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_NetSyncInfo_hostName_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ char *arg2 ;
+ char temp2[256] ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:NetSyncInfo_hostName_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (!SWIG_AsCharArray(obj1, temp2, 256)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->hostName,arg2,256*sizeof(char));
+ else memset(arg1->hostName,0,256*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_NetSyncInfo_hostName_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:NetSyncInfo_hostName_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (char *)(char *) ((arg1)->hostName);
+
+ {
+ size_t size = 256;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_NetSyncInfo_hostAddress_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ char *arg2 ;
+ char temp2[40] ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:NetSyncInfo_hostAddress_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (!SWIG_AsCharArray(obj1, temp2, 40)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->hostAddress,arg2,40*sizeof(char));
+ else memset(arg1->hostAddress,0,40*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_NetSyncInfo_hostAddress_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:NetSyncInfo_hostAddress_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (char *)(char *) ((arg1)->hostAddress);
+
+ {
+ size_t size = 40;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_NetSyncInfo_hostSubnetMask_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ char *arg2 ;
+ char temp2[40] ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:NetSyncInfo_hostSubnetMask_set",&obj0,&obj1)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ if (!SWIG_AsCharArray(obj1, temp2, 40)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ arg2 = temp2;
+ }
+ {
+ if (arg2) memcpy(arg1->hostSubnetMask,arg2,40*sizeof(char));
+ else memset(arg1->hostSubnetMask,0,40*sizeof(char));
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_NetSyncInfo_hostSubnetMask_get(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ char *result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:NetSyncInfo_hostSubnetMask_get",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ result = (char *)(char *) ((arg1)->hostSubnetMask);
+
+ {
+ size_t size = 40;
+#ifndef SWIG_PRESERVE_CARRAY_SIZE
+ while (size && (result[size - 1] == '\0')) --size;
+#endif
+ resultobj = SWIG_FromCharArray(result, size);
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_new_NetSyncInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *result;
+
+ if(!PyArg_ParseTuple(args,(char *)":new_NetSyncInfo")) goto fail;
+ result = (struct NetSyncInfo *)(struct NetSyncInfo *) calloc(1, sizeof(struct NetSyncInfo));
+
+ resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_NetSyncInfo, 1);
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_delete_NetSyncInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ struct NetSyncInfo *arg1 = (struct NetSyncInfo *) 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:delete_NetSyncInfo",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_NetSyncInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ free((char *) arg1);
+
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject * NetSyncInfo_swigregister(PyObject *self, PyObject *args) {
+ PyObject *obj;
+ if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
+ SWIG_TypeClientData(SWIGTYPE_p_NetSyncInfo, obj);
+ Py_INCREF(obj);
+ return Py_BuildValue((char *)"");
+}
+static PyObject *_wrap_dlp_set_protocol_version(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_set_protocol_version",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ dlp_set_protocol_version(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ptohdate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ unsigned char *arg1 = (unsigned char *) 0 ;
+ time_t result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_ptohdate",&obj0)) goto fail;
+ SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = dlp_ptohdate((unsigned char const *)arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+ {
+ resultobj = SWIG_From_long((long)(result));
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_htopdate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ time_t arg1 ;
+ unsigned char *arg2 = (unsigned char *) 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_htopdate",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (time_t)(SWIG_As_long(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ dlp_htopdate(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_GetSysDateTime_(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ time_t *arg2 = (time_t *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_GetSysDateTime_",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_time_t, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_GetSysDateTime(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_SetSysDateTime(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ time_t arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_SetSysDateTime",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (time_t)(SWIG_As_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_SetSysDateTime(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadSysInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct SysInfo *arg2 = (struct SysInfo *) 0 ;
+ PI_ERR result;
+ struct SysInfo temp2 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg2 = &temp2;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_ReadSysInfo",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadSysInfo(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg2) resultobj = t_output_helper(resultobj, PyObjectFromSysInfo(arg2));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadStorageInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ struct CardInfo *arg3 = (struct CardInfo *) 0 ;
+ PI_ERR result;
+ struct CardInfo temp3 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+
+ arg3 = &temp3;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_ReadStorageInfo",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadStorageInfo(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg3) resultobj = t_output_helper(resultobj, PyObjectFromCardInfo(arg3));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadUserInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct PilotUser *arg2 = (struct PilotUser *) 0 ;
+ PI_ERR result;
+ struct PilotUser temp2 ;
+ PyObject * obj0 = 0 ;
+
+
+ arg2 = &temp2;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_ReadUserInfo",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadUserInfo(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg2) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg2));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_WriteUserInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct PilotUser *arg2 = (struct PilotUser *) 0 ;
+ PI_ERR result;
+ struct PilotUser temp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_WriteUserInfo",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+
+ if (!PyObjectToPilotUser(obj1, &temp2))
+ SWIG_fail;
+ arg2 = &temp2;
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_WriteUserInfo(arg1,(struct PilotUser const *)arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg2) resultobj = t_output_helper(resultobj, PyObjectFromPilotUser(arg2));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ResetLastSyncPC(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_ResetLastSyncPC",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ResetLastSyncPC(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadNetSyncInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct NetSyncInfo *arg2 = (struct NetSyncInfo *) 0 ;
+ PI_ERR result;
+ struct NetSyncInfo temp2 ;
+ PyObject * obj0 = 0 ;
+
+ {
+ arg2 = &temp2;
+ }
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_ReadNetSyncInfo",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadNetSyncInfo(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg2) resultobj = t_output_helper(resultobj, PyObjectFromNetSyncInfo(arg2));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_WriteNetSyncInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ struct NetSyncInfo *arg2 = (struct NetSyncInfo *) 0 ;
+ PI_ERR result;
+ struct NetSyncInfo temp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_WriteNetSyncInfo",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+
+ PyObjectToNetSyncInfo(obj1, &temp2);
+ arg2 = &temp2;
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_WriteNetSyncInfo(arg1,(struct NetSyncInfo const *)arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_OpenConduit(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_OpenConduit",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_OpenConduit(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_EndOfSync(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_EndOfSync",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_EndOfSync(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_AbortSync(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_AbortSync",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_AbortSync(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadFeature(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long arg2 ;
+ int arg3 ;
+ unsigned long *arg4 = (unsigned long *) 0 ;
+ PI_ERR result;
+ unsigned long temp4 ;
+ int res4 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ arg4 = &temp4; res4 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_ReadFeature",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadFeature(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_long, 0)));
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_GetROMToken(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t *arg4 = (size_t *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_GetROMToken",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ }
+ SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_size_t, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_GetROMToken(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_AddSyncLogEntry(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ char *arg2 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_AddSyncLogEntry",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj1, (char**)&arg2)) {
+ SWIG_arg_fail(2);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_AddSyncLogEntry(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_CallApplication(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long arg2 ;
+ unsigned long arg3 ;
+ int arg4 ;
+ size_t arg5 ;
+ void *arg6 = (void *) 0 ;
+ unsigned long *arg7 = (unsigned long *) 0 ;
+ pi_buffer_t *arg8 = (pi_buffer_t *) 0 ;
+ PI_ERR result;
+ unsigned long temp7 ;
+ int res7 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ arg7 = &temp7; res7 = SWIG_NEWOBJ;
+ {
+ arg8 = pi_buffer_new(0xFFFF);
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_CallApplication",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ if (PyString_Check(obj2))
+ arg3 = makelong(PyString_AS_STRING(obj2));
+ else if (PyInt_Check(obj2))
+ arg3 = PyInt_AsLong(obj2);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+
+ arg5 = PyString_Size(obj4);
+ arg6 = (void *)PyString_AsString(obj4);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_CallApplication(arg1,arg2,arg3,arg4,arg5,(void const *)arg6,arg7,arg8);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_unsigned_long, 0)));
+ {
+ if (arg8) {
+ PyObject *o1 = Py_BuildValue("s#", arg8->data, arg8->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ {
+ if (arg8) {
+ pi_buffer_free(arg8);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg8) {
+ pi_buffer_free(arg8);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadAppPreference(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int arg5 ;
+ void *arg6 = (void *) 0 ;
+ size_t *arg7 = (size_t *) 0 ;
+ int *arg8 = (int *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+ PyObject * obj7 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOOOOO:dlp_ReadAppPreference",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (int)(SWIG_As_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+ {
+ if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),0,SWIG_POINTER_EXCEPTION|0))== -1) {
+ SWIG_arg_fail(6);SWIG_fail;
+ }
+ }
+ SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_size_t, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(7)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(8)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadAppPreference(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg6) resultobj = t_output_helper(resultobj, Py_BuildValue("is#", arg8, arg6, arg7));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_WriteAppPreference(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long arg2 ;
+ int arg3 ;
+ int arg4 ;
+ int arg5 ;
+ void *arg6 = (void *) 0 ;
+ size_t arg7 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOOO:dlp_WriteAppPreference",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (int)(SWIG_As_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+
+ arg6 = (void *)PyString_AsString(obj5);
+ arg7 = PyString_Size(obj5);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_WriteAppPreference(arg1,arg2,arg3,arg4,arg5,(void const *)arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ResetSystem(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_ResetSystem",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ResetSystem(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadDBList_(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ pi_buffer_t *arg5 = (pi_buffer_t *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ {
+ arg5 = pi_buffer_new(0xFFFF);
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_ReadDBList_",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadDBList(arg1,arg2,arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg5) {
+ int j;
+ struct DBInfo info;
+ resultobj = PyList_New((arg5->used / sizeof(struct DBInfo)));
+ for (j=0; j < (arg5->used / sizeof(struct DBInfo)); j++) {
+ memcpy(&info, arg5->data + j * sizeof(struct DBInfo), sizeof(struct DBInfo));
+ PyObject *o = PyObjectFromDBInfo(&info);
+ Py_INCREF(o);
+ PyList_SET_ITEM(resultobj, j, o);
+ }
+ }
+
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_FindDBByName(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ unsigned long *arg4 = (unsigned long *) 0 ;
+ int *arg5 = (int *) 0 ;
+ struct DBInfo *arg6 = (struct DBInfo *) 0 ;
+ struct DBSizeInfo *arg7 = (struct DBSizeInfo *) 0 ;
+ PI_ERR result;
+ unsigned long temp4 ;
+ int res4 = 0 ;
+ int temp5 ;
+ int res5 = 0 ;
+ struct DBInfo temp16 ;
+ struct DBSizeInfo temp26 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ arg4 = &temp4; res4 = SWIG_NEWOBJ;
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+
+ arg6 = &temp16;
+ arg7 = &temp26;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_FindDBByName",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_FindDBByName(arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_long, 0)));
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
+
+ if (arg6) resultobj = t_output_helper(resultobj, PyObjectFromDBInfo(arg6));
+ if (arg7) resultobj = t_output_helper(resultobj, PyObjectFromDBSizeInfo(arg7));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_FindDBByOpenHandle(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int *arg3 = (int *) 0 ;
+ unsigned long *arg4 = (unsigned long *) 0 ;
+ struct DBInfo *arg5 = (struct DBInfo *) 0 ;
+ struct DBSizeInfo *arg6 = (struct DBSizeInfo *) 0 ;
+ PI_ERR result;
+ int temp3 ;
+ int res3 = 0 ;
+ unsigned long temp4 ;
+ int res4 = 0 ;
+ struct DBInfo temp15 ;
+ struct DBSizeInfo temp25 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ arg3 = &temp3; res3 = SWIG_NEWOBJ;
+ arg4 = &temp4; res4 = SWIG_NEWOBJ;
+
+ arg5 = &temp15;
+ arg6 = &temp25;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_FindDBByOpenHandle",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_FindDBByOpenHandle(arg1,arg2,arg3,arg4,arg5,arg6);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_long, 0)));
+
+ if (arg5) resultobj = t_output_helper(resultobj, PyObjectFromDBInfo(arg5));
+ if (arg6) resultobj = t_output_helper(resultobj, PyObjectFromDBSizeInfo(arg6));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_FindDBByTypeCreator(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long arg2 ;
+ unsigned long arg3 ;
+ int arg4 ;
+ int arg5 ;
+ int *arg6 = (int *) 0 ;
+ unsigned long *arg7 = (unsigned long *) 0 ;
+ int *arg8 = (int *) 0 ;
+ struct DBInfo *arg9 = (struct DBInfo *) 0 ;
+ struct DBSizeInfo *arg10 = (struct DBSizeInfo *) 0 ;
+ PI_ERR result;
+ int temp6 ;
+ int res6 = 0 ;
+ unsigned long temp7 ;
+ int res7 = 0 ;
+ int temp8 ;
+ int res8 = 0 ;
+ struct DBInfo temp19 ;
+ struct DBSizeInfo temp29 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ arg7 = &temp7; res7 = SWIG_NEWOBJ;
+ arg8 = &temp8; res8 = SWIG_NEWOBJ;
+
+ arg9 = &temp19;
+ arg10 = &temp29;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_FindDBByTypeCreator",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ if (PyString_Check(obj2))
+ arg3 = makelong(PyString_AS_STRING(obj2));
+ else if (PyInt_Check(obj2))
+ arg3 = PyInt_AsLong(obj2);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (int)(SWIG_As_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_FindDBByTypeCreator(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_unsigned_long, 0)));
+ resultobj = t_output_helper(resultobj, ((res8 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg8)) : SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, 0)));
+
+ if (arg9) resultobj = t_output_helper(resultobj, PyObjectFromDBInfo(arg9));
+ if (arg10) resultobj = t_output_helper(resultobj, PyObjectFromDBSizeInfo(arg10));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_FindDBInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ char *arg4 = (char *) 0 ;
+ unsigned long arg5 ;
+ unsigned long arg6 ;
+ struct DBInfo *arg7 = (struct DBInfo *) 0 ;
+ PI_ERR result;
+ struct DBInfo temp7 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+
+
+ arg7 = &temp7;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOOO:dlp_FindDBInfo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj3, (char**)&arg4)) {
+ SWIG_arg_fail(4);SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj4))
+ arg5 = makelong(PyString_AS_STRING(obj4));
+ else if (PyInt_Check(obj4))
+ arg5 = PyInt_AsLong(obj4);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ if (PyString_Check(obj5))
+ arg6 = makelong(PyString_AS_STRING(obj5));
+ else if (PyInt_Check(obj5))
+ arg6 = PyInt_AsLong(obj5);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_FindDBInfo(arg1,arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg7) resultobj = t_output_helper(resultobj, PyObjectFromDBInfo(arg7));
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_OpenDB(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ char *arg4 = (char *) 0 ;
+ int *arg5 = (int *) 0 ;
+ PI_ERR result;
+ int temp5 ;
+ int res5 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_OpenDB",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj3, (char**)&arg4)) {
+ SWIG_arg_fail(4);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_OpenDB(arg1,arg2,arg3,(char const *)arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_CloseDB(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_CloseDB",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_CloseDB(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_CloseDB_All(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_CloseDB_All",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_CloseDB_All(arg1);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_DeleteDB(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_DeleteDB",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_DeleteDB(arg1,arg2,(char const *)arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_CreateDB(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned long arg2 ;
+ unsigned long arg3 ;
+ int arg4 ;
+ int arg5 ;
+ unsigned int arg6 ;
+ char *arg7 = (char *) 0 ;
+ int *arg8 = (int *) 0 ;
+ PI_ERR result;
+ int temp8 ;
+ int res8 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+
+ arg8 = &temp8; res8 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOOOOOO:dlp_CreateDB",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj1))
+ arg2 = makelong(PyString_AS_STRING(obj1));
+ else if (PyInt_Check(obj1))
+ arg2 = PyInt_AsLong(obj1);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ if (PyString_Check(obj2))
+ arg3 = makelong(PyString_AS_STRING(obj2));
+ else if (PyInt_Check(obj2))
+ arg3 = PyInt_AsLong(obj2);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (int)(SWIG_As_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+ {
+ arg6 = (unsigned int)(SWIG_As_unsigned_SS_int(obj5));
+ if (SWIG_arg_fail(6)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj6, (char**)&arg7)) {
+ SWIG_arg_fail(7);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_CreateDB(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7,arg8);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res8 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg8)) : SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, 0)));
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadOpenDBInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int *arg3 = (int *) 0 ;
+ PI_ERR result;
+ int temp3 ;
+ int res3 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ arg3 = &temp3; res3 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_ReadOpenDBInfo",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadOpenDBInfo(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_SetDBInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ unsigned int arg5 ;
+ time_t arg6 ;
+ time_t arg7 ;
+ time_t arg8 ;
+ unsigned long arg9 ;
+ unsigned long arg10 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+ PyObject * obj6 = 0 ;
+ PyObject * obj7 = 0 ;
+ PyObject * obj8 = 0 ;
+ PyObject * obj9 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:dlp_SetDBInfo",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (unsigned int)(SWIG_As_unsigned_SS_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+ {
+ arg6 = (time_t)(SWIG_As_long(obj5));
+ if (SWIG_arg_fail(6)) SWIG_fail;
+ }
+ {
+ arg7 = (time_t)(SWIG_As_long(obj6));
+ if (SWIG_arg_fail(7)) SWIG_fail;
+ }
+ {
+ arg8 = (time_t)(SWIG_As_long(obj7));
+ if (SWIG_arg_fail(8)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj8))
+ arg9 = makelong(PyString_AS_STRING(obj8));
+ else if (PyInt_Check(obj8))
+ arg9 = PyInt_AsLong(obj8);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ if (PyString_Check(obj9))
+ arg10 = makelong(PyString_AS_STRING(obj9));
+ else if (PyInt_Check(obj9))
+ arg10 = PyInt_AsLong(obj9);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_SetDBInfo(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_DeleteCategory(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_DeleteCategory",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_DeleteCategory(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_MoveCategory(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_MoveCategory",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_MoveCategory(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadAppBlock(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ pi_buffer_t *arg5 = (pi_buffer_t *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ {
+ arg5 = pi_buffer_new(0xFFFF);
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_ReadAppBlock",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadAppBlock(arg1,arg2,arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg5) {
+ PyObject *o1 = Py_BuildValue("s#", arg5->data, arg5->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_WriteAppBlock(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_WriteAppBlock",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+
+ arg3 = (void *)PyString_AsString(obj2);
+ arg4 = PyString_Size(obj2);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_WriteAppBlock(arg1,arg2,(void const *)arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadSortBlock(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ int arg4 ;
+ pi_buffer_t *arg5 = (pi_buffer_t *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ {
+ arg5 = pi_buffer_new(0xFFFF);
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_ReadSortBlock",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadSortBlock(arg1,arg2,arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg5) {
+ PyObject *o1 = Py_BuildValue("s#", arg5->data, arg5->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_WriteSortBlock(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_WriteSortBlock",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+
+ arg3 = (void *)PyString_AsString(obj2);
+ arg4 = PyString_Size(obj2);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_WriteSortBlock(arg1,arg2,(void const *)arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_CleanUpDatabase(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_CleanUpDatabase",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_CleanUpDatabase(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ResetSyncFlags(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_ResetSyncFlags",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ResetSyncFlags(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ResetDBIndex(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_ResetDBIndex",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ResetDBIndex(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadRecordById(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ recordid_t arg3 ;
+ pi_buffer_t *arg4 = (pi_buffer_t *) 0 ;
+ int *arg5 = (int *) 0 ;
+ int *arg6 = (int *) 0 ;
+ int *arg7 = (int *) 0 ;
+ PI_ERR result;
+ int temp5 ;
+ int res5 = 0 ;
+ int temp6 ;
+ int res6 = 0 ;
+ int temp7 ;
+ int res7 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ {
+ arg4 = pi_buffer_new(0xFFFF);
+ }
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ arg7 = &temp7; res7 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_ReadRecordById",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (recordid_t)(SWIG_As_unsigned_SS_long(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadRecordById(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg4) {
+ PyObject *o1 = Py_BuildValue("s#", arg4->data, arg4->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, 0)));
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadRecordByIndex(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ pi_buffer_t *arg4 = (pi_buffer_t *) 0 ;
+ recordid_t *arg5 = (recordid_t *) 0 ;
+ int *arg6 = (int *) 0 ;
+ int *arg7 = (int *) 0 ;
+ PI_ERR result;
+ recordid_t temp5 ;
+ int res5 = 0 ;
+ int temp6 ;
+ int res6 = 0 ;
+ int temp7 ;
+ int res7 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ {
+ arg4 = pi_buffer_new(0xFFFF);
+ }
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ arg7 = &temp7; res7 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_ReadRecordByIndex",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadRecordByIndex(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg4) {
+ PyObject *o1 = Py_BuildValue("s#", arg4->data, arg4->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_recordid_t, 0)));
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, 0)));
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadNextModifiedRec(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ pi_buffer_t *arg3 = (pi_buffer_t *) 0 ;
+ recordid_t *arg4 = (recordid_t *) 0 ;
+ int *arg5 = (int *) 0 ;
+ int *arg6 = (int *) 0 ;
+ int *arg7 = (int *) 0 ;
+ PI_ERR result;
+ recordid_t temp4 ;
+ int res4 = 0 ;
+ int temp5 ;
+ int res5 = 0 ;
+ int temp6 ;
+ int res6 = 0 ;
+ int temp7 ;
+ int res7 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ {
+ arg3 = pi_buffer_new(0xFFFF);
+ }
+ arg4 = &temp4; res4 = SWIG_NEWOBJ;
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ arg7 = &temp7; res7 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_ReadNextModifiedRec",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadNextModifiedRec(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg3) {
+ PyObject *o1 = Py_BuildValue("s#", arg3->data, arg3->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_recordid_t, 0)));
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, 0)));
+ {
+ if (arg3) {
+ pi_buffer_free(arg3);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg3) {
+ pi_buffer_free(arg3);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadNextModifiedRecInCategory(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ pi_buffer_t *arg4 = (pi_buffer_t *) 0 ;
+ recordid_t *arg5 = (recordid_t *) 0 ;
+ int *arg6 = (int *) 0 ;
+ int *arg7 = (int *) 0 ;
+ PI_ERR result;
+ recordid_t temp5 ;
+ int res5 = 0 ;
+ int temp6 ;
+ int res6 = 0 ;
+ int temp7 ;
+ int res7 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ {
+ arg4 = pi_buffer_new(0xFFFF);
+ }
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ arg7 = &temp7; res7 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_ReadNextModifiedRecInCategory",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadNextModifiedRecInCategory(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg4) {
+ PyObject *o1 = Py_BuildValue("s#", arg4->data, arg4->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_recordid_t, 0)));
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, 0)));
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadNextRecInCategory(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ pi_buffer_t *arg4 = (pi_buffer_t *) 0 ;
+ recordid_t *arg5 = (recordid_t *) 0 ;
+ int *arg6 = (int *) 0 ;
+ int *arg7 = (int *) 0 ;
+ PI_ERR result;
+ recordid_t temp5 ;
+ int res5 = 0 ;
+ int temp6 ;
+ int res6 = 0 ;
+ int temp7 ;
+ int res7 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ {
+ arg4 = pi_buffer_new(0xFFFF);
+ }
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ arg7 = &temp7; res7 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_ReadNextRecInCategory",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadNextRecInCategory(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg4) {
+ PyObject *o1 = Py_BuildValue("s#", arg4->data, arg4->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_recordid_t, 0)));
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, 0)));
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_WriteRecord(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ recordid_t arg4 ;
+ int arg5 ;
+ void *arg6 = (void *) 0 ;
+ size_t arg7 ;
+ recordid_t *arg8 = (recordid_t *) 0 ;
+ PI_ERR result;
+ recordid_t temp8 ;
+ int res8 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+ PyObject * obj5 = 0 ;
+
+ arg8 = &temp8; res8 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOOOOO:dlp_WriteRecord",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (recordid_t)(SWIG_As_unsigned_SS_long(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (int)(SWIG_As_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+
+ arg6 = (void *)PyString_AsString(obj5);
+ arg7 = PyString_Size(obj5);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_WriteRecord(arg1,arg2,arg3,arg4,arg5,(void const *)arg6,arg7,arg8);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res8 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg8)) : SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_recordid_t, 0)));
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_DeleteRecord(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ recordid_t arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_DeleteRecord",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (recordid_t)(SWIG_As_unsigned_SS_long(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_DeleteRecord(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadResourceByType(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ unsigned long arg3 ;
+ int arg4 ;
+ pi_buffer_t *arg5 = (pi_buffer_t *) 0 ;
+ int *arg6 = (int *) 0 ;
+ PI_ERR result;
+ int temp6 ;
+ int res6 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ {
+ arg5 = pi_buffer_new(0xFFFF);
+ }
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_ReadResourceByType",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ if (PyString_Check(obj2))
+ arg3 = makelong(PyString_AS_STRING(obj2));
+ else if (PyInt_Check(obj2))
+ arg3 = PyInt_AsLong(obj2);
+ else {
+ PyErr_SetString(PyExc_TypeError,"You must specify a type/creator");
+ SWIG_fail;
+ }
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadResourceByType(arg1,arg2,arg3,arg4,arg5,arg6);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg5) {
+ PyObject *o1 = Py_BuildValue("s#", arg5->data, arg5->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg5) {
+ pi_buffer_free(arg5);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ReadResourceByIndex(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ pi_buffer_t *arg4 = (pi_buffer_t *) 0 ;
+ unsigned long *arg5 = (unsigned long *) 0 ;
+ int *arg6 = (int *) 0 ;
+ PI_ERR result;
+ int temp6 ;
+ int res6 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ {
+ arg4 = pi_buffer_new(0xFFFF);
+ }
+ arg6 = &temp6; res6 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_ReadResourceByIndex",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj3, (void **)&arg5, SWIGTYPE_p_unsigned_long, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ReadResourceByIndex(arg1,arg2,arg3,arg4,arg5,arg6);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg4) {
+ PyObject *o1 = Py_BuildValue("s#", arg4->data, arg4->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg4) {
+ pi_buffer_free(arg4);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_WriteResource(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ unsigned long arg3 ;
+ int arg4 ;
+ void *arg5 = (void *) 0 ;
+ size_t arg6 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_WriteResource",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (unsigned long)(SWIG_As_unsigned_SS_long(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+
+ arg5 = (void *)PyString_AsString(obj4);
+ arg6 = PyString_Size(obj4);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_WriteResource(arg1,arg2,arg3,arg4,(void const *)arg5,arg6);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_DeleteResource(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int arg3 ;
+ unsigned long arg4 ;
+ int arg5 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_DeleteResource",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (unsigned long)(SWIG_As_unsigned_SS_long(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (int)(SWIG_As_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_DeleteResource(arg1,arg2,arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ExpSlotEnumerate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int *arg2 = (int *) 0 ;
+ int *arg3 = (int *) 0 ;
+ PI_ERR result;
+ int numSlots2 ;
+ int slotRefs2[16] ;
+ PyObject * obj0 = 0 ;
+
+
+ numSlots2 = sizeof(slotRefs2) / sizeof(slotRefs2[0]);
+ arg2 = &numSlots2;
+ arg3 = &slotRefs2[0];
+
+ if(!PyArg_ParseTuple(args,(char *)"O:dlp_ExpSlotEnumerate",&obj0)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ExpSlotEnumerate(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+
+ if (arg2 && arg3) {
+ int slotIndex;
+ for (slotIndex=0; slotIndex < *arg2; slotIndex++)
+ t_output_helper(resultobj, PyInt_FromLong(arg3[slotIndex]));
+ }
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ExpCardPresent(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_ExpCardPresent",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ExpCardPresent(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ExpCardInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ unsigned long *arg3 = (unsigned long *) 0 ;
+ int *arg4 = (int *) 0 ;
+ char **arg5 = (char **) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_ExpCardInfo",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_long, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_p_char, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ExpCardInfo(arg1,arg2,arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_ExpSlotMediaType(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ unsigned long *arg3 = (unsigned long *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_ExpSlotMediaType",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_long, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_ExpSlotMediaType(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSVolumeEnumerate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int *arg2 = (int *) 0 ;
+ int *arg3 = (int *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSVolumeEnumerate",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSVolumeEnumerate(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSVolumeInfo(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ struct VFSInfo *arg3 = (struct VFSInfo *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSVolumeInfo",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_VFSInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSVolumeInfo(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSVolumeGetLabel(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ int *arg3 = (int *) 0 ;
+ char *arg4 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_VFSVolumeGetLabel",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ if (!SWIG_AsCharPtr(obj3, (char**)&arg4)) {
+ SWIG_arg_fail(4);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSVolumeGetLabel(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSVolumeSetLabel(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSVolumeSetLabel",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSVolumeSetLabel(arg1,arg2,(char const *)arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSVolumeSize(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ long *arg3 = (long *) 0 ;
+ long *arg4 = (long *) 0 ;
+ PI_ERR result;
+ long temp3 ;
+ int res3 = 0 ;
+ long temp4 ;
+ int res4 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ arg3 = &temp3; res3 = SWIG_NEWOBJ;
+ arg4 = &temp4; res4 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_VFSVolumeSize",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSVolumeSize(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
+ SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
+ resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
+ SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSVolumeFormat(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ unsigned char arg2 ;
+ int arg3 ;
+ struct VFSSlotMountParam *arg4 = (struct VFSSlotMountParam *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_VFSVolumeFormat",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_VFSSlotMountParam, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSVolumeFormat(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSGetDefaultDir(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ int *arg5 = (int *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_VFSGetDefaultDir",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj3, (char**)&arg4)) {
+ SWIG_arg_fail(4);SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSGetDefaultDir(arg1,arg2,(char const *)arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSDirEntryEnumerate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ unsigned long *arg3 = (unsigned long *) 0 ;
+ int *arg4 = (int *) 0 ;
+ struct VFSDirInfo *arg5 = (struct VFSDirInfo *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_VFSDirEntryEnumerate",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_long, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_VFSDirInfo, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSDirEntryEnumerate(arg1,arg2,arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSDirCreate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSDirCreate",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSDirCreate(arg1,arg2,(char const *)arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSImportDatabaseFromFile(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ int *arg4 = (int *) 0 ;
+ unsigned long *arg5 = (unsigned long *) 0 ;
+ PI_ERR result;
+ int temp4 ;
+ int res4 = 0 ;
+ unsigned long temp5 ;
+ int res5 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ arg4 = &temp4; res4 = SWIG_NEWOBJ;
+ arg5 = &temp5; res5 = SWIG_NEWOBJ;
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSImportDatabaseFromFile",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSImportDatabaseFromFile(arg1,arg2,(char const *)arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
+ SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
+ resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
+ SWIG_From_unsigned_SS_long((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_long, 0)));
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSExportDatabaseToFile(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 ;
+ unsigned int arg5 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_VFSExportDatabaseToFile",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ arg5 = (unsigned int)(SWIG_As_unsigned_SS_int(obj4));
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSExportDatabaseToFile(arg1,arg2,(char const *)arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileCreate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileCreate",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileCreate(arg1,arg2,(char const *)arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileOpen(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ int arg4 ;
+ FileRef *arg5 = (FileRef *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+ PyObject * obj4 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOOO:dlp_VFSFileOpen",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_unsigned_long, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(5)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileOpen(arg1,arg2,(char const *)arg3,arg4,arg5);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileClose(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_VFSFileClose",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileClose(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileWrite(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileWrite",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+
+ arg3 = (void *)PyString_AsString(obj2);
+ arg4 = PyString_Size(obj2);
+
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileWrite(arg1,arg2,(void const *)arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileRead(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ pi_buffer_t *arg3 = (pi_buffer_t *) 0 ;
+ size_t arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ {
+ arg3 = pi_buffer_new(0xFFFF);
+ }
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileRead",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg4 = (size_t)(SWIG_As_unsigned_SS_long(obj2));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileRead(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ {
+ if (arg3) {
+ PyObject *o1 = Py_BuildValue("s#", arg3->data, arg3->used);
+ resultobj = t_output_helper(resultobj, o1);
+ }
+ }
+ {
+ if (arg3) {
+ pi_buffer_free(arg3);
+ }
+ }
+ return resultobj;
+ fail:
+ {
+ if (arg3) {
+ pi_buffer_free(arg3);
+ }
+ }
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileDelete(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileDelete",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileDelete(arg1,arg2,(char const *)arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileRename(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
+ char *arg4 = (char *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_VFSFileRename",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (int)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj2, (char**)&arg3)) {
+ SWIG_arg_fail(3);SWIG_fail;
+ }
+ if (!SWIG_AsCharPtr(obj3, (char**)&arg4)) {
+ SWIG_arg_fail(4);SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileRename(arg1,arg2,(char const *)arg3,(char const *)arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileEOF(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OO:dlp_VFSFileEOF",&obj0,&obj1)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileEOF(arg1,arg2);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileTell(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ int *arg3 = (int *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileTell",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileTell(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileGetAttributes(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ unsigned long *arg3 = (unsigned long *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileGetAttributes",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_long, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileGetAttributes(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileSetAttributes(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ unsigned long arg3 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileSetAttributes",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (unsigned long)(SWIG_As_unsigned_SS_long(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileSetAttributes(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileGetDate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ int arg3 ;
+ time_t *arg4 = (time_t *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_VFSFileGetDate",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_time_t, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileGetDate(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileSetDate(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ int arg3 ;
+ time_t arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_VFSFileSetDate",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (time_t)(SWIG_As_long(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileSetDate(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileSeek(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ int arg3 ;
+ int arg4 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOOO:dlp_VFSFileSeek",&obj0,&obj1,&obj2,&obj3)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ arg4 = (int)(SWIG_As_int(obj3));
+ if (SWIG_arg_fail(4)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileSeek(arg1,arg2,arg3,arg4);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileResize(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ int arg3 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileResize",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ {
+ arg3 = (int)(SWIG_As_int(obj2));
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ }
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileResize(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_dlp_VFSFileSize(PyObject *self, PyObject *args) {
+ PyObject *resultobj = NULL;
+ int arg1 ;
+ FileRef arg2 ;
+ int *arg3 = (int *) 0 ;
+ PI_ERR result;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+
+ if(!PyArg_ParseTuple(args,(char *)"OOO:dlp_VFSFileSize",&obj0,&obj1,&obj2)) goto fail;
+ {
+ arg1 = (int)(SWIG_As_int(obj0));
+ if (SWIG_arg_fail(1)) SWIG_fail;
+ }
+ {
+ arg2 = (FileRef)(SWIG_As_unsigned_SS_long(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_int, SWIG_POINTER_EXCEPTION | 0);
+ if (SWIG_arg_fail(3)) SWIG_fail;
+ {
+ PyThreadState *__save = PyEval_SaveThread();
+ result = (PI_ERR)dlp_VFSFileSize(arg1,arg2,arg3);
+
+ PyEval_RestoreThread(__save);
+ }
+
+ if (result < 0 && pythonWrapper_handlePiErr(arg1, result) != 0)
+ SWIG_fail;
+ resultobj = Py_None;
+ Py_INCREF(Py_None);
+
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyMethodDef SwigMethods[] = {
+ { (char *)"dlp_ReadRecordIDList", _wrap_dlp_ReadRecordIDList, METH_VARARGS, NULL},
+ { (char *)"pi_file_install", _wrap_pi_file_install, METH_VARARGS, NULL},
+ { (char *)"pi_file_retrieve", _wrap_pi_file_retrieve, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_sd_set", _wrap_pi_socket_t_sd_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_sd_get", _wrap_pi_socket_t_sd_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_type_set", _wrap_pi_socket_t_type_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_type_get", _wrap_pi_socket_t_type_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_protocol_set", _wrap_pi_socket_t_protocol_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_protocol_get", _wrap_pi_socket_t_protocol_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_cmd_set", _wrap_pi_socket_t_cmd_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_cmd_get", _wrap_pi_socket_t_cmd_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_laddr_set", _wrap_pi_socket_t_laddr_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_laddr_get", _wrap_pi_socket_t_laddr_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_laddrlen_set", _wrap_pi_socket_t_laddrlen_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_laddrlen_get", _wrap_pi_socket_t_laddrlen_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_raddr_set", _wrap_pi_socket_t_raddr_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_raddr_get", _wrap_pi_socket_t_raddr_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_raddrlen_set", _wrap_pi_socket_t_raddrlen_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_raddrlen_get", _wrap_pi_socket_t_raddrlen_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_protocol_queue_set", _wrap_pi_socket_t_protocol_queue_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_protocol_queue_get", _wrap_pi_socket_t_protocol_queue_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_queue_len_set", _wrap_pi_socket_t_queue_len_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_queue_len_get", _wrap_pi_socket_t_queue_len_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_cmd_queue_set", _wrap_pi_socket_t_cmd_queue_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_cmd_queue_get", _wrap_pi_socket_t_cmd_queue_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_cmd_len_set", _wrap_pi_socket_t_cmd_len_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_cmd_len_get", _wrap_pi_socket_t_cmd_len_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_device_set", _wrap_pi_socket_t_device_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_device_get", _wrap_pi_socket_t_device_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_state_set", _wrap_pi_socket_t_state_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_state_get", _wrap_pi_socket_t_state_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_honor_rx_to_set", _wrap_pi_socket_t_honor_rx_to_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_honor_rx_to_get", _wrap_pi_socket_t_honor_rx_to_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_command_set", _wrap_pi_socket_t_command_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_command_get", _wrap_pi_socket_t_command_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_accept_to_set", _wrap_pi_socket_t_accept_to_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_accept_to_get", _wrap_pi_socket_t_accept_to_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_dlprecord_set", _wrap_pi_socket_t_dlprecord_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_dlprecord_get", _wrap_pi_socket_t_dlprecord_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_dlpversion_set", _wrap_pi_socket_t_dlpversion_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_dlpversion_get", _wrap_pi_socket_t_dlpversion_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_maxrecsize_set", _wrap_pi_socket_t_maxrecsize_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_maxrecsize_get", _wrap_pi_socket_t_maxrecsize_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_last_error_set", _wrap_pi_socket_t_last_error_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_last_error_get", _wrap_pi_socket_t_last_error_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_palmos_error_set", _wrap_pi_socket_t_palmos_error_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_palmos_error_get", _wrap_pi_socket_t_palmos_error_get, METH_VARARGS, NULL},
+ { (char *)"new_pi_socket_t", _wrap_new_pi_socket_t, METH_VARARGS, NULL},
+ { (char *)"delete_pi_socket_t", _wrap_delete_pi_socket_t, METH_VARARGS, NULL},
+ { (char *)"pi_socket_t_swigregister", pi_socket_t_swigregister, METH_VARARGS, NULL},
+ { (char *)"pi_socket_list_t_ps_set", _wrap_pi_socket_list_t_ps_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_list_t_ps_get", _wrap_pi_socket_list_t_ps_get, METH_VARARGS, NULL},
+ { (char *)"pi_socket_list_t_next_set", _wrap_pi_socket_list_t_next_set, METH_VARARGS, NULL},
+ { (char *)"pi_socket_list_t_next_get", _wrap_pi_socket_list_t_next_get, METH_VARARGS, NULL},
+ { (char *)"new_pi_socket_list_t", _wrap_new_pi_socket_list_t, METH_VARARGS, NULL},
+ { (char *)"delete_pi_socket_list_t", _wrap_delete_pi_socket_list_t, METH_VARARGS, NULL},
+ { (char *)"pi_socket_list_t_swigregister", pi_socket_list_t_swigregister, METH_VARARGS, NULL},
+ { (char *)"pi_socket", _wrap_pi_socket, METH_VARARGS, NULL},
+ { (char *)"pi_socket_setsd", _wrap_pi_socket_setsd, METH_VARARGS, NULL},
+ { (char *)"pi_getsockname", _wrap_pi_getsockname, METH_VARARGS, NULL},
+ { (char *)"pi_getsockpeer", _wrap_pi_getsockpeer, METH_VARARGS, NULL},
+ { (char *)"pi_getsockopt", _wrap_pi_getsockopt, METH_VARARGS, NULL},
+ { (char *)"pi_setsockopt", _wrap_pi_setsockopt, METH_VARARGS, NULL},
+ { (char *)"pi_protocol", _wrap_pi_protocol, METH_VARARGS, NULL},
+ { (char *)"pi_protocol_next", _wrap_pi_protocol_next, METH_VARARGS, NULL},
+ { (char *)"pi_socket_connected", _wrap_pi_socket_connected, METH_VARARGS, NULL},
+ { (char *)"pi_connect", _wrap_pi_connect, METH_VARARGS, NULL},
+ { (char *)"pi_bind", _wrap_pi_bind, METH_VARARGS, NULL},
+ { (char *)"pi_listen", _wrap_pi_listen, METH_VARARGS, NULL},
+ { (char *)"pi_accept", _wrap_pi_accept, METH_VARARGS, NULL},
+ { (char *)"pi_accept_to", _wrap_pi_accept_to, METH_VARARGS, NULL},
+ { (char *)"pi_close", _wrap_pi_close, METH_VARARGS, NULL},
+ { (char *)"pi_send", _wrap_pi_send, METH_VARARGS, NULL},
+ { (char *)"pi_recv", _wrap_pi_recv, METH_VARARGS, NULL},
+ { (char *)"pi_read", _wrap_pi_read, METH_VARARGS, NULL},
+ { (char *)"pi_write", _wrap_pi_write, METH_VARARGS, NULL},
+ { (char *)"pi_flush", _wrap_pi_flush, METH_VARARGS, NULL},
+ { (char *)"pi_error", _wrap_pi_error, METH_VARARGS, NULL},
+ { (char *)"pi_set_error", _wrap_pi_set_error, METH_VARARGS, NULL},
+ { (char *)"pi_palmos_error", _wrap_pi_palmos_error, METH_VARARGS, NULL},
+ { (char *)"pi_set_palmos_error", _wrap_pi_set_palmos_error, METH_VARARGS, NULL},
+ { (char *)"pi_reset_errors", _wrap_pi_reset_errors, METH_VARARGS, NULL},
+ { (char *)"pi_version", _wrap_pi_version, METH_VARARGS, NULL},
+ { (char *)"pi_maxrecsize", _wrap_pi_maxrecsize, METH_VARARGS, NULL},
+ { (char *)"pi_tickle", _wrap_pi_tickle, METH_VARARGS, NULL},
+ { (char *)"pi_watchdog", _wrap_pi_watchdog, METH_VARARGS, NULL},
+ { (char *)"VFSDirInfo_attr_set", _wrap_VFSDirInfo_attr_set, METH_VARARGS, NULL},
+ { (char *)"VFSDirInfo_attr_get", _wrap_VFSDirInfo_attr_get, METH_VARARGS, NULL},
+ { (char *)"VFSDirInfo_name_set", _wrap_VFSDirInfo_name_set, METH_VARARGS, NULL},
+ { (char *)"VFSDirInfo_name_get", _wrap_VFSDirInfo_name_get, METH_VARARGS, NULL},
+ { (char *)"new_VFSDirInfo", _wrap_new_VFSDirInfo, METH_VARARGS, NULL},
+ { (char *)"delete_VFSDirInfo", _wrap_delete_VFSDirInfo, METH_VARARGS, NULL},
+ { (char *)"VFSDirInfo_swigregister", VFSDirInfo_swigregister, METH_VARARGS, NULL},
+ { (char *)"VFSAnyMountParam_volRefNum_set", _wrap_VFSAnyMountParam_volRefNum_set, METH_VARARGS, NULL},
+ { (char *)"VFSAnyMountParam_volRefNum_get", _wrap_VFSAnyMountParam_volRefNum_get, METH_VARARGS, NULL},
+ { (char *)"VFSAnyMountParam_reserved_set", _wrap_VFSAnyMountParam_reserved_set, METH_VARARGS, NULL},
+ { (char *)"VFSAnyMountParam_reserved_get", _wrap_VFSAnyMountParam_reserved_get, METH_VARARGS, NULL},
+ { (char *)"VFSAnyMountParam_mountClass_set", _wrap_VFSAnyMountParam_mountClass_set, METH_VARARGS, NULL},
+ { (char *)"VFSAnyMountParam_mountClass_get", _wrap_VFSAnyMountParam_mountClass_get, METH_VARARGS, NULL},
+ { (char *)"new_VFSAnyMountParam", _wrap_new_VFSAnyMountParam, METH_VARARGS, NULL},
+ { (char *)"delete_VFSAnyMountParam", _wrap_delete_VFSAnyMountParam, METH_VARARGS, NULL},
+ { (char *)"VFSAnyMountParam_swigregister", VFSAnyMountParam_swigregister, METH_VARARGS, NULL},
+ { (char *)"VFSSlotMountParam_vfsMountParam_set", _wrap_VFSSlotMountParam_vfsMountParam_set, METH_VARARGS, NULL},
+ { (char *)"VFSSlotMountParam_vfsMountParam_get", _wrap_VFSSlotMountParam_vfsMountParam_get, METH_VARARGS, NULL},
+ { (char *)"VFSSlotMountParam_slotLibRefNum_set", _wrap_VFSSlotMountParam_slotLibRefNum_set, METH_VARARGS, NULL},
+ { (char *)"VFSSlotMountParam_slotLibRefNum_get", _wrap_VFSSlotMountParam_slotLibRefNum_get, METH_VARARGS, NULL},
+ { (char *)"VFSSlotMountParam_slotRefNum_set", _wrap_VFSSlotMountParam_slotRefNum_set, METH_VARARGS, NULL},
+ { (char *)"VFSSlotMountParam_slotRefNum_get", _wrap_VFSSlotMountParam_slotRefNum_get, METH_VARARGS, NULL},
+ { (char *)"new_VFSSlotMountParam", _wrap_new_VFSSlotMountParam, METH_VARARGS, NULL},
+ { (char *)"delete_VFSSlotMountParam", _wrap_delete_VFSSlotMountParam, METH_VARARGS, NULL},
+ { (char *)"VFSSlotMountParam_swigregister", VFSSlotMountParam_swigregister, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_attributes_set", _wrap_VFSInfo_attributes_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_attributes_get", _wrap_VFSInfo_attributes_get, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_fsType_set", _wrap_VFSInfo_fsType_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_fsType_get", _wrap_VFSInfo_fsType_get, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_fsCreator_set", _wrap_VFSInfo_fsCreator_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_fsCreator_get", _wrap_VFSInfo_fsCreator_get, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_mountClass_set", _wrap_VFSInfo_mountClass_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_mountClass_get", _wrap_VFSInfo_mountClass_get, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_slotLibRefNum_set", _wrap_VFSInfo_slotLibRefNum_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_slotLibRefNum_get", _wrap_VFSInfo_slotLibRefNum_get, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_slotRefNum_set", _wrap_VFSInfo_slotRefNum_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_slotRefNum_get", _wrap_VFSInfo_slotRefNum_get, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_mediaType_set", _wrap_VFSInfo_mediaType_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_mediaType_get", _wrap_VFSInfo_mediaType_get, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_reserved_set", _wrap_VFSInfo_reserved_set, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_reserved_get", _wrap_VFSInfo_reserved_get, METH_VARARGS, NULL},
+ { (char *)"new_VFSInfo", _wrap_new_VFSInfo, METH_VARARGS, NULL},
+ { (char *)"delete_VFSInfo", _wrap_delete_VFSInfo, METH_VARARGS, NULL},
+ { (char *)"VFSInfo_swigregister", VFSInfo_swigregister, METH_VARARGS, NULL},
+ { (char *)"PilotUser_passwordLength_set", _wrap_PilotUser_passwordLength_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_passwordLength_get", _wrap_PilotUser_passwordLength_get, METH_VARARGS, NULL},
+ { (char *)"PilotUser_username_set", _wrap_PilotUser_username_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_username_get", _wrap_PilotUser_username_get, METH_VARARGS, NULL},
+ { (char *)"PilotUser_password_set", _wrap_PilotUser_password_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_password_get", _wrap_PilotUser_password_get, METH_VARARGS, NULL},
+ { (char *)"PilotUser_userID_set", _wrap_PilotUser_userID_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_userID_get", _wrap_PilotUser_userID_get, METH_VARARGS, NULL},
+ { (char *)"PilotUser_viewerID_set", _wrap_PilotUser_viewerID_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_viewerID_get", _wrap_PilotUser_viewerID_get, METH_VARARGS, NULL},
+ { (char *)"PilotUser_lastSyncPC_set", _wrap_PilotUser_lastSyncPC_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_lastSyncPC_get", _wrap_PilotUser_lastSyncPC_get, METH_VARARGS, NULL},
+ { (char *)"PilotUser_successfulSyncDate_set", _wrap_PilotUser_successfulSyncDate_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_successfulSyncDate_get", _wrap_PilotUser_successfulSyncDate_get, METH_VARARGS, NULL},
+ { (char *)"PilotUser_lastSyncDate_set", _wrap_PilotUser_lastSyncDate_set, METH_VARARGS, NULL},
+ { (char *)"PilotUser_lastSyncDate_get", _wrap_PilotUser_lastSyncDate_get, METH_VARARGS, NULL},
+ { (char *)"new_PilotUser", _wrap_new_PilotUser, METH_VARARGS, NULL},
+ { (char *)"delete_PilotUser", _wrap_delete_PilotUser, METH_VARARGS, NULL},
+ { (char *)"PilotUser_swigregister", PilotUser_swigregister, METH_VARARGS, NULL},
+ { (char *)"SysInfo_romVersion_set", _wrap_SysInfo_romVersion_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_romVersion_get", _wrap_SysInfo_romVersion_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_locale_set", _wrap_SysInfo_locale_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_locale_get", _wrap_SysInfo_locale_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_prodIDLength_set", _wrap_SysInfo_prodIDLength_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_prodIDLength_get", _wrap_SysInfo_prodIDLength_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_prodID_set", _wrap_SysInfo_prodID_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_prodID_get", _wrap_SysInfo_prodID_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_dlpMajorVersion_set", _wrap_SysInfo_dlpMajorVersion_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_dlpMajorVersion_get", _wrap_SysInfo_dlpMajorVersion_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_dlpMinorVersion_set", _wrap_SysInfo_dlpMinorVersion_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_dlpMinorVersion_get", _wrap_SysInfo_dlpMinorVersion_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_compatMajorVersion_set", _wrap_SysInfo_compatMajorVersion_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_compatMajorVersion_get", _wrap_SysInfo_compatMajorVersion_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_compatMinorVersion_set", _wrap_SysInfo_compatMinorVersion_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_compatMinorVersion_get", _wrap_SysInfo_compatMinorVersion_get, METH_VARARGS, NULL},
+ { (char *)"SysInfo_maxRecSize_set", _wrap_SysInfo_maxRecSize_set, METH_VARARGS, NULL},
+ { (char *)"SysInfo_maxRecSize_get", _wrap_SysInfo_maxRecSize_get, METH_VARARGS, NULL},
+ { (char *)"new_SysInfo", _wrap_new_SysInfo, METH_VARARGS, NULL},
+ { (char *)"delete_SysInfo", _wrap_delete_SysInfo, METH_VARARGS, NULL},
+ { (char *)"SysInfo_swigregister", SysInfo_swigregister, METH_VARARGS, NULL},
+ { (char *)"DBInfo_more_set", _wrap_DBInfo_more_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_more_get", _wrap_DBInfo_more_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_name_set", _wrap_DBInfo_name_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_name_get", _wrap_DBInfo_name_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_flags_set", _wrap_DBInfo_flags_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_flags_get", _wrap_DBInfo_flags_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_miscFlags_set", _wrap_DBInfo_miscFlags_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_miscFlags_get", _wrap_DBInfo_miscFlags_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_version_set", _wrap_DBInfo_version_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_version_get", _wrap_DBInfo_version_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_type_set", _wrap_DBInfo_type_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_type_get", _wrap_DBInfo_type_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_creator_set", _wrap_DBInfo_creator_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_creator_get", _wrap_DBInfo_creator_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_modnum_set", _wrap_DBInfo_modnum_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_modnum_get", _wrap_DBInfo_modnum_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_index_set", _wrap_DBInfo_index_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_index_get", _wrap_DBInfo_index_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_createDate_set", _wrap_DBInfo_createDate_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_createDate_get", _wrap_DBInfo_createDate_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_modifyDate_set", _wrap_DBInfo_modifyDate_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_modifyDate_get", _wrap_DBInfo_modifyDate_get, METH_VARARGS, NULL},
+ { (char *)"DBInfo_backupDate_set", _wrap_DBInfo_backupDate_set, METH_VARARGS, NULL},
+ { (char *)"DBInfo_backupDate_get", _wrap_DBInfo_backupDate_get, METH_VARARGS, NULL},
+ { (char *)"new_DBInfo", _wrap_new_DBInfo, METH_VARARGS, NULL},
+ { (char *)"delete_DBInfo", _wrap_delete_DBInfo, METH_VARARGS, NULL},
+ { (char *)"DBInfo_swigregister", DBInfo_swigregister, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_numRecords_set", _wrap_DBSizeInfo_numRecords_set, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_numRecords_get", _wrap_DBSizeInfo_numRecords_get, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_totalBytes_set", _wrap_DBSizeInfo_totalBytes_set, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_totalBytes_get", _wrap_DBSizeInfo_totalBytes_get, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_dataBytes_set", _wrap_DBSizeInfo_dataBytes_set, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_dataBytes_get", _wrap_DBSizeInfo_dataBytes_get, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_appBlockSize_set", _wrap_DBSizeInfo_appBlockSize_set, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_appBlockSize_get", _wrap_DBSizeInfo_appBlockSize_get, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_sortBlockSize_set", _wrap_DBSizeInfo_sortBlockSize_set, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_sortBlockSize_get", _wrap_DBSizeInfo_sortBlockSize_get, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_maxRecSize_set", _wrap_DBSizeInfo_maxRecSize_set, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_maxRecSize_get", _wrap_DBSizeInfo_maxRecSize_get, METH_VARARGS, NULL},
+ { (char *)"new_DBSizeInfo", _wrap_new_DBSizeInfo, METH_VARARGS, NULL},
+ { (char *)"delete_DBSizeInfo", _wrap_delete_DBSizeInfo, METH_VARARGS, NULL},
+ { (char *)"DBSizeInfo_swigregister", DBSizeInfo_swigregister, METH_VARARGS, NULL},
+ { (char *)"CardInfo_card_set", _wrap_CardInfo_card_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_card_get", _wrap_CardInfo_card_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_version_set", _wrap_CardInfo_version_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_version_get", _wrap_CardInfo_version_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_more_set", _wrap_CardInfo_more_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_more_get", _wrap_CardInfo_more_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_creation_set", _wrap_CardInfo_creation_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_creation_get", _wrap_CardInfo_creation_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_romSize_set", _wrap_CardInfo_romSize_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_romSize_get", _wrap_CardInfo_romSize_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_ramSize_set", _wrap_CardInfo_ramSize_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_ramSize_get", _wrap_CardInfo_ramSize_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_ramFree_set", _wrap_CardInfo_ramFree_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_ramFree_get", _wrap_CardInfo_ramFree_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_name_set", _wrap_CardInfo_name_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_name_get", _wrap_CardInfo_name_get, METH_VARARGS, NULL},
+ { (char *)"CardInfo_manufacturer_set", _wrap_CardInfo_manufacturer_set, METH_VARARGS, NULL},
+ { (char *)"CardInfo_manufacturer_get", _wrap_CardInfo_manufacturer_get, METH_VARARGS, NULL},
+ { (char *)"new_CardInfo", _wrap_new_CardInfo, METH_VARARGS, NULL},
+ { (char *)"delete_CardInfo", _wrap_delete_CardInfo, METH_VARARGS, NULL},
+ { (char *)"CardInfo_swigregister", CardInfo_swigregister, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_lanSync_set", _wrap_NetSyncInfo_lanSync_set, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_lanSync_get", _wrap_NetSyncInfo_lanSync_get, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_hostName_set", _wrap_NetSyncInfo_hostName_set, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_hostName_get", _wrap_NetSyncInfo_hostName_get, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_hostAddress_set", _wrap_NetSyncInfo_hostAddress_set, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_hostAddress_get", _wrap_NetSyncInfo_hostAddress_get, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_hostSubnetMask_set", _wrap_NetSyncInfo_hostSubnetMask_set, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_hostSubnetMask_get", _wrap_NetSyncInfo_hostSubnetMask_get, METH_VARARGS, NULL},
+ { (char *)"new_NetSyncInfo", _wrap_new_NetSyncInfo, METH_VARARGS, NULL},
+ { (char *)"delete_NetSyncInfo", _wrap_delete_NetSyncInfo, METH_VARARGS, NULL},
+ { (char *)"NetSyncInfo_swigregister", NetSyncInfo_swigregister, METH_VARARGS, NULL},
+ { (char *)"dlp_set_protocol_version", _wrap_dlp_set_protocol_version, METH_VARARGS, NULL},
+ { (char *)"dlp_ptohdate", _wrap_dlp_ptohdate, METH_VARARGS, NULL},
+ { (char *)"dlp_htopdate", _wrap_dlp_htopdate, METH_VARARGS, NULL},
+ { (char *)"dlp_GetSysDateTime_", _wrap_dlp_GetSysDateTime_, METH_VARARGS, NULL},
+ { (char *)"dlp_SetSysDateTime", _wrap_dlp_SetSysDateTime, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadSysInfo", _wrap_dlp_ReadSysInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadStorageInfo", _wrap_dlp_ReadStorageInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadUserInfo", _wrap_dlp_ReadUserInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_WriteUserInfo", _wrap_dlp_WriteUserInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_ResetLastSyncPC", _wrap_dlp_ResetLastSyncPC, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadNetSyncInfo", _wrap_dlp_ReadNetSyncInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_WriteNetSyncInfo", _wrap_dlp_WriteNetSyncInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_OpenConduit", _wrap_dlp_OpenConduit, METH_VARARGS, NULL},
+ { (char *)"dlp_EndOfSync", _wrap_dlp_EndOfSync, METH_VARARGS, NULL},
+ { (char *)"dlp_AbortSync", _wrap_dlp_AbortSync, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadFeature", _wrap_dlp_ReadFeature, METH_VARARGS, NULL},
+ { (char *)"dlp_GetROMToken", _wrap_dlp_GetROMToken, METH_VARARGS, NULL},
+ { (char *)"dlp_AddSyncLogEntry", _wrap_dlp_AddSyncLogEntry, METH_VARARGS, NULL},
+ { (char *)"dlp_CallApplication", _wrap_dlp_CallApplication, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadAppPreference", _wrap_dlp_ReadAppPreference, METH_VARARGS, NULL},
+ { (char *)"dlp_WriteAppPreference", _wrap_dlp_WriteAppPreference, METH_VARARGS, NULL},
+ { (char *)"dlp_ResetSystem", _wrap_dlp_ResetSystem, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadDBList_", _wrap_dlp_ReadDBList_, METH_VARARGS, NULL},
+ { (char *)"dlp_FindDBByName", _wrap_dlp_FindDBByName, METH_VARARGS, NULL},
+ { (char *)"dlp_FindDBByOpenHandle", _wrap_dlp_FindDBByOpenHandle, METH_VARARGS, NULL},
+ { (char *)"dlp_FindDBByTypeCreator", _wrap_dlp_FindDBByTypeCreator, METH_VARARGS, NULL},
+ { (char *)"dlp_FindDBInfo", _wrap_dlp_FindDBInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_OpenDB", _wrap_dlp_OpenDB, METH_VARARGS, NULL},
+ { (char *)"dlp_CloseDB", _wrap_dlp_CloseDB, METH_VARARGS, NULL},
+ { (char *)"dlp_CloseDB_All", _wrap_dlp_CloseDB_All, METH_VARARGS, NULL},
+ { (char *)"dlp_DeleteDB", _wrap_dlp_DeleteDB, METH_VARARGS, NULL},
+ { (char *)"dlp_CreateDB", _wrap_dlp_CreateDB, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadOpenDBInfo", _wrap_dlp_ReadOpenDBInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_SetDBInfo", _wrap_dlp_SetDBInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_DeleteCategory", _wrap_dlp_DeleteCategory, METH_VARARGS, NULL},
+ { (char *)"dlp_MoveCategory", _wrap_dlp_MoveCategory, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadAppBlock", _wrap_dlp_ReadAppBlock, METH_VARARGS, NULL},
+ { (char *)"dlp_WriteAppBlock", _wrap_dlp_WriteAppBlock, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadSortBlock", _wrap_dlp_ReadSortBlock, METH_VARARGS, NULL},
+ { (char *)"dlp_WriteSortBlock", _wrap_dlp_WriteSortBlock, METH_VARARGS, NULL},
+ { (char *)"dlp_CleanUpDatabase", _wrap_dlp_CleanUpDatabase, METH_VARARGS, NULL},
+ { (char *)"dlp_ResetSyncFlags", _wrap_dlp_ResetSyncFlags, METH_VARARGS, NULL},
+ { (char *)"dlp_ResetDBIndex", _wrap_dlp_ResetDBIndex, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadRecordById", _wrap_dlp_ReadRecordById, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadRecordByIndex", _wrap_dlp_ReadRecordByIndex, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadNextModifiedRec", _wrap_dlp_ReadNextModifiedRec, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadNextModifiedRecInCategory", _wrap_dlp_ReadNextModifiedRecInCategory, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadNextRecInCategory", _wrap_dlp_ReadNextRecInCategory, METH_VARARGS, NULL},
+ { (char *)"dlp_WriteRecord", _wrap_dlp_WriteRecord, METH_VARARGS, NULL},
+ { (char *)"dlp_DeleteRecord", _wrap_dlp_DeleteRecord, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadResourceByType", _wrap_dlp_ReadResourceByType, METH_VARARGS, NULL},
+ { (char *)"dlp_ReadResourceByIndex", _wrap_dlp_ReadResourceByIndex, METH_VARARGS, NULL},
+ { (char *)"dlp_WriteResource", _wrap_dlp_WriteResource, METH_VARARGS, NULL},
+ { (char *)"dlp_DeleteResource", _wrap_dlp_DeleteResource, METH_VARARGS, NULL},
+ { (char *)"dlp_ExpSlotEnumerate", _wrap_dlp_ExpSlotEnumerate, METH_VARARGS, NULL},
+ { (char *)"dlp_ExpCardPresent", _wrap_dlp_ExpCardPresent, METH_VARARGS, NULL},
+ { (char *)"dlp_ExpCardInfo", _wrap_dlp_ExpCardInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_ExpSlotMediaType", _wrap_dlp_ExpSlotMediaType, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSVolumeEnumerate", _wrap_dlp_VFSVolumeEnumerate, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSVolumeInfo", _wrap_dlp_VFSVolumeInfo, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSVolumeGetLabel", _wrap_dlp_VFSVolumeGetLabel, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSVolumeSetLabel", _wrap_dlp_VFSVolumeSetLabel, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSVolumeSize", _wrap_dlp_VFSVolumeSize, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSVolumeFormat", _wrap_dlp_VFSVolumeFormat, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSGetDefaultDir", _wrap_dlp_VFSGetDefaultDir, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSDirEntryEnumerate", _wrap_dlp_VFSDirEntryEnumerate, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSDirCreate", _wrap_dlp_VFSDirCreate, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSImportDatabaseFromFile", _wrap_dlp_VFSImportDatabaseFromFile, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSExportDatabaseToFile", _wrap_dlp_VFSExportDatabaseToFile, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileCreate", _wrap_dlp_VFSFileCreate, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileOpen", _wrap_dlp_VFSFileOpen, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileClose", _wrap_dlp_VFSFileClose, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileWrite", _wrap_dlp_VFSFileWrite, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileRead", _wrap_dlp_VFSFileRead, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileDelete", _wrap_dlp_VFSFileDelete, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileRename", _wrap_dlp_VFSFileRename, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileEOF", _wrap_dlp_VFSFileEOF, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileTell", _wrap_dlp_VFSFileTell, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileGetAttributes", _wrap_dlp_VFSFileGetAttributes, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileSetAttributes", _wrap_dlp_VFSFileSetAttributes, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileGetDate", _wrap_dlp_VFSFileGetDate, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileSetDate", _wrap_dlp_VFSFileSetDate, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileSeek", _wrap_dlp_VFSFileSeek, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileResize", _wrap_dlp_VFSFileResize, METH_VARARGS, NULL},
+ { (char *)"dlp_VFSFileSize", _wrap_dlp_VFSFileSize, METH_VARARGS, NULL},
+ { NULL, NULL, 0, NULL }
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
+
+static swig_type_info _swigt__p_CardInfo = {"_p_CardInfo", "struct CardInfo *", 0, 0, 0};
+static swig_type_info _swigt__p_DBInfo = {"_p_DBInfo", "struct DBInfo *", 0, 0, 0};
+static swig_type_info _swigt__p_DBSizeInfo = {"_p_DBSizeInfo", "struct DBSizeInfo *", 0, 0, 0};
+static swig_type_info _swigt__p_NetSyncInfo = {"_p_NetSyncInfo", "struct NetSyncInfo *", 0, 0, 0};
+static swig_type_info _swigt__p_PilotUser = {"_p_PilotUser", "struct PilotUser *", 0, 0, 0};
+static swig_type_info _swigt__p_SysInfo = {"_p_SysInfo", "struct SysInfo *", 0, 0, 0};
+static swig_type_info _swigt__p_VFSAnyMountParam = {"_p_VFSAnyMountParam", "struct VFSAnyMountParam *", 0, 0, 0};
+static swig_type_info _swigt__p_VFSDirInfo = {"_p_VFSDirInfo", "struct VFSDirInfo *", 0, 0, 0};
+static swig_type_info _swigt__p_VFSInfo = {"_p_VFSInfo", "struct VFSInfo *", 0, 0, 0};
+static swig_type_info _swigt__p_VFSSlotMountParam = {"_p_VFSSlotMountParam", "struct VFSSlotMountParam *", 0, 0, 0};
+static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
+static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
+static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, 0};
+static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, 0};
+static swig_type_info _swigt__p_p_pi_protocol = {"_p_p_pi_protocol", "struct pi_protocol **", 0, 0, 0};
+static swig_type_info _swigt__p_pi_buffer_t = {"_p_pi_buffer_t", "pi_buffer_t *", 0, 0, 0};
+static swig_type_info _swigt__p_pi_device = {"_p_pi_device", "struct pi_device *", 0, 0, 0};
+static swig_type_info _swigt__p_pi_protocol = {"_p_pi_protocol", "struct pi_protocol *", 0, 0, 0};
+static swig_type_info _swigt__p_pi_socket = {"_p_pi_socket", "struct pi_socket *|pi_socket_t *", 0, 0, 0};
+static swig_type_info _swigt__p_pi_socket_list = {"_p_pi_socket_list", "struct pi_socket_list *|pi_socket_list_t *", 0, 0, 0};
+static swig_type_info _swigt__p_recordid_t = {"_p_recordid_t", "recordid_t *", 0, 0, 0};
+static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, 0};
+static swig_type_info _swigt__p_sockaddr = {"_p_sockaddr", "struct sockaddr *", 0, 0, 0};
+static swig_type_info _swigt__p_ssize_t = {"_p_ssize_t", "ssize_t *", 0, 0, 0};
+static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, 0};
+static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, 0};
+static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *", 0, 0, 0};
+static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
+static swig_type_info _swigt__size_t = {"_size_t", "size_t", 0, 0, 0};
+
+static swig_type_info *swig_type_initial[] = {
+ &_swigt__p_CardInfo,
+ &_swigt__p_DBInfo,
+ &_swigt__p_DBSizeInfo,
+ &_swigt__p_NetSyncInfo,
+ &_swigt__p_PilotUser,
+ &_swigt__p_SysInfo,
+ &_swigt__p_VFSAnyMountParam,
+ &_swigt__p_VFSDirInfo,
+ &_swigt__p_VFSInfo,
+ &_swigt__p_VFSSlotMountParam,
+ &_swigt__p_char,
+ &_swigt__p_int,
+ &_swigt__p_long,
+ &_swigt__p_p_char,
+ &_swigt__p_p_pi_protocol,
+ &_swigt__p_pi_buffer_t,
+ &_swigt__p_pi_device,
+ &_swigt__p_pi_protocol,
+ &_swigt__p_pi_socket,
+ &_swigt__p_pi_socket_list,
+ &_swigt__p_recordid_t,
+ &_swigt__p_size_t,
+ &_swigt__p_sockaddr,
+ &_swigt__p_ssize_t,
+ &_swigt__p_time_t,
+ &_swigt__p_unsigned_char,
+ &_swigt__p_unsigned_long,
+ &_swigt__ptrdiff_t,
+ &_swigt__size_t,
+};
+
+static swig_cast_info _swigc__p_CardInfo[] = { {&_swigt__p_CardInfo, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_DBInfo[] = { {&_swigt__p_DBInfo, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_DBSizeInfo[] = { {&_swigt__p_DBSizeInfo, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_NetSyncInfo[] = { {&_swigt__p_NetSyncInfo, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_PilotUser[] = { {&_swigt__p_PilotUser, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_SysInfo[] = { {&_swigt__p_SysInfo, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_VFSAnyMountParam[] = { {&_swigt__p_VFSAnyMountParam, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_VFSDirInfo[] = { {&_swigt__p_VFSDirInfo, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_VFSInfo[] = { {&_swigt__p_VFSInfo, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_VFSSlotMountParam[] = { {&_swigt__p_VFSSlotMountParam, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_p_pi_protocol[] = { {&_swigt__p_p_pi_protocol, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pi_buffer_t[] = { {&_swigt__p_pi_buffer_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pi_device[] = { {&_swigt__p_pi_device, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pi_protocol[] = { {&_swigt__p_pi_protocol, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pi_socket[] = { {&_swigt__p_pi_socket, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_pi_socket_list[] = { {&_swigt__p_pi_socket_list, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_recordid_t[] = { {&_swigt__p_recordid_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_sockaddr[] = { {&_swigt__p_sockaddr, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_ssize_t[] = { {&_swigt__p_ssize_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__size_t[] = { {&_swigt__size_t, 0, 0, 0},{0, 0, 0, 0}};
+
+static swig_cast_info *swig_cast_initial[] = {
+ _swigc__p_CardInfo,
+ _swigc__p_DBInfo,
+ _swigc__p_DBSizeInfo,
+ _swigc__p_NetSyncInfo,
+ _swigc__p_PilotUser,
+ _swigc__p_SysInfo,
+ _swigc__p_VFSAnyMountParam,
+ _swigc__p_VFSDirInfo,
+ _swigc__p_VFSInfo,
+ _swigc__p_VFSSlotMountParam,
+ _swigc__p_char,
+ _swigc__p_int,
+ _swigc__p_long,
+ _swigc__p_p_char,
+ _swigc__p_p_pi_protocol,
+ _swigc__p_pi_buffer_t,
+ _swigc__p_pi_device,
+ _swigc__p_pi_protocol,
+ _swigc__p_pi_socket,
+ _swigc__p_pi_socket_list,
+ _swigc__p_recordid_t,
+ _swigc__p_size_t,
+ _swigc__p_sockaddr,
+ _swigc__p_ssize_t,
+ _swigc__p_time_t,
+ _swigc__p_unsigned_char,
+ _swigc__p_unsigned_long,
+ _swigc__ptrdiff_t,
+ _swigc__size_t,
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
+
+static swig_const_info swig_const_table[] = {
+{0, 0, 0, 0.0, 0, 0}};
+
+#ifdef __cplusplus
+}
+#endif
+/*************************************************************************
+ * Type initialization:
+ * This problem is tough by the requirement that no dynamic
+ * memory is used. Also, since swig_type_info structures store pointers to
+ * swig_cast_info structures and swig_cast_info structures store pointers back
+ * to swig_type_info structures, we need some lookup code at initialization.
+ * The idea is that swig generates all the structures that are needed.
+ * The runtime then collects these partially filled structures.
+ * The SWIG_InitializeModule function takes these initial arrays out of
+ * swig_module, and does all the lookup, filling in the swig_module.types
+ * array with the correct data and linking the correct swig_cast_info
+ * structures together.
+
+ * The generated swig_type_info structures are assigned staticly to an initial
+ * array. We just loop though that array, and handle each type individually.
+ * First we lookup if this type has been already loaded, and if so, use the
+ * loaded structure instead of the generated one. Then we have to fill in the
+ * cast linked list. The cast data is initially stored in something like a
+ * two-dimensional array. Each row corresponds to a type (there are the same
+ * number of rows as there are in the swig_type_initial array). Each entry in
+ * a column is one of the swig_cast_info structures for that type.
+ * The cast_initial array is actually an array of arrays, because each row has
+ * a variable number of columns. So to actually build the cast linked list,
+ * we find the array of casts associated with the type, and loop through it
+ * adding the casts to the list. The one last trick we need to do is making
+ * sure the type pointer in the swig_cast_info struct is correct.
+
+ * First off, we lookup the cast->type name to see if it is already loaded.
+ * There are three cases to handle:
+ * 1) If the cast->type has already been loaded AND the type we are adding
+ * casting info to has not been loaded (it is in this module), THEN we
+ * replace the cast->type pointer with the type pointer that has already
+ * been loaded.
+ * 2) If BOTH types (the one we are adding casting info to, and the
+ * cast->type) are loaded, THEN the cast info has already been loaded by
+ * the previous module so we just ignore it.
+ * 3) Finally, if cast->type has not already been loaded, then we add that
+ * swig_cast_info to the linked list (because the cast->type) pointer will
+ * be correct.
+**/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ SWIGRUNTIME void
+ SWIG_InitializeModule(void *clientdata) {
+ swig_type_info *type, *ret;
+ swig_cast_info *cast;
+ size_t i;
+ swig_module_info *module_head;
+ static int init_run = 0;
+
+ clientdata = clientdata;
+
+ if (init_run) return;
+ init_run = 1;
+
+ /* Initialize the swig_module */
+ swig_module.type_initial = swig_type_initial;
+ swig_module.cast_initial = swig_cast_initial;
+
+ /* Try and load any already created modules */
+ module_head = SWIG_GetModule(clientdata);
+ if (module_head) {
+ swig_module.next = module_head->next;
+ module_head->next = &swig_module;
+ } else {
+ /* This is the first module loaded */
+ swig_module.next = &swig_module;
+ SWIG_SetModule(clientdata, &swig_module);
+ }
+
+ /* Now work on filling in swig_module.types */
+ for (i = 0; i < swig_module.size; ++i) {
+ type = 0;
+
+ /* if there is another module already loaded */
+ if (swig_module.next != &swig_module) {
+ type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
+ }
+ if (type) {
+ /* Overwrite clientdata field */
+ if (swig_module.type_initial[i]->clientdata) type->clientdata = swig_module.type_initial[i]->clientdata;
+ } else {
+ type = swig_module.type_initial[i];
+ }
+
+ /* Insert casting types */
+ cast = swig_module.cast_initial[i];
+ while (cast->type) {
+ /* Don't need to add information already in the list */
+ ret = 0;
+ if (swig_module.next != &swig_module) {
+ ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
+ }
+ if (ret && type == swig_module.type_initial[i]) {
+ cast->type = ret;
+ ret = 0;
+ }
+
+ if (!ret) {
+ if (type->cast) {
+ type->cast->prev = cast;
+ cast->next = type->cast;
+ }
+ type->cast = cast;
+ }
+
+ cast++;
+ }
+
+ /* Set entry in modules->types array equal to the type */
+ swig_module.types[i] = type;
+ }
+ swig_module.types[i] = 0;
+ }
+
+ /* This function will propagate the clientdata field of type to
+ * any new swig_type_info structures that have been added into the list
+ * of equivalent types. It is like calling
+ * SWIG_TypeClientData(type, clientdata) a second time.
+ */
+ SWIGRUNTIME void
+ SWIG_PropagateClientData(void) {
+ size_t i;
+ swig_cast_info *equiv;
+ static int init_run = 0;
+
+ if (init_run) return;
+ init_run = 1;
+
+ for (i = 0; i < swig_module.size; i++) {
+ if (swig_module.types[i]->clientdata) {
+ equiv = swig_module.types[i]->cast;
+ while (equiv) {
+ if (!equiv->converter) {
+ if (equiv->type && !equiv->type->clientdata)
+ SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
+ }
+ equiv = equiv->next;
+ }
+ }
+ }
+ }
+
+#ifdef __cplusplus
+}
+#endif
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /* Python-specific SWIG API */
+#define SWIG_newvarlink() SWIG_Python_newvarlink()
+#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
+#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
+
+ /* -----------------------------------------------------------------------------
+ * global variable support code.
+ * ----------------------------------------------------------------------------- */
+
+ typedef struct swig_globalvar {
+ char *name; /* Name of global variable */
+ PyObject *(*get_attr)(void); /* Return the current value */
+ int (*set_attr)(PyObject *); /* Set the value */
+ struct swig_globalvar *next;
+ } swig_globalvar;
+
+ typedef struct swig_varlinkobject {
+ PyObject_HEAD
+ swig_globalvar *vars;
+ } swig_varlinkobject;
+
+ SWIGINTERN PyObject *
+ swig_varlink_repr(swig_varlinkobject *v) {
+ v = v;
+ return PyString_FromString("<Swig global variables>");
+ }
+
+ SWIGINTERN int
+ swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
+ swig_globalvar *var;
+ flags = flags;
+ fprintf(fp,"Swig global variables { ");
+ for (var = v->vars; var; var=var->next) {
+ fprintf(fp,"%s", var->name);
+ if (var->next) fprintf(fp,", ");
+ }
+ fprintf(fp," }\n");
+ return 0;
+ }
+
+ SWIGINTERN PyObject *
+ swig_varlink_getattr(swig_varlinkobject *v, char *n) {
+ swig_globalvar *var = v->vars;
+ while (var) {
+ if (strcmp(var->name,n) == 0) {
+ return (*var->get_attr)();
+ }
+ var = var->next;
+ }
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ return NULL;
+ }
+
+ SWIGINTERN int
+ swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
+ swig_globalvar *var = v->vars;
+ while (var) {
+ if (strcmp(var->name,n) == 0) {
+ return (*var->set_attr)(p);
+ }
+ var = var->next;
+ }
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ return 1;
+ }
+
+ SWIGINTERN PyTypeObject*
+ swig_varlink_type(void) {
+ static char varlink__doc__[] = "Swig var link object";
+ static PyTypeObject varlink_type
+#if !defined(__cplusplus)
+ ;
+ static int type_init = 0;
+ if (!type_init) {
+ PyTypeObject tmp
+#endif
+ = {
+ PyObject_HEAD_INIT(&PyType_Type)
+ 0, /* Number of items in variable part (ob_size) */
+ (char *)"swigvarlink", /* Type name (tp_name) */
+ sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
+ 0, /* Itemsize (tp_itemsize) */
+ 0, /* Deallocator (tp_dealloc) */
+ (printfunc) swig_varlink_print, /* Print (tp_print) */
+ (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
+ (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
+ 0, /* tp_compare */
+ (reprfunc) swig_varlink_repr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ 0, /* tp_hash */
+ 0, /* tp_call */
+ 0, /* tp_str */
+ 0, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ 0, /* tp_flags */
+ varlink__doc__, /* tp_doc */
+#if PY_VERSION_HEX >= 0x02000000
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+#endif
+#if PY_VERSION_HEX >= 0x02010000
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+#endif
+#if PY_VERSION_HEX >= 0x02020000
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+ 0, /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+ 0,0,0,0 /* tp_alloc -> tp_next */
+#endif
+ };
+#if !defined(__cplusplus)
+ varlink_type = tmp;
+ type_init = 1;
+ }
+#endif
+ return &varlink_type;
+ }
+
+ /* Create a variable linking object for use later */
+ SWIGINTERN PyObject *
+ SWIG_Python_newvarlink(void) {
+ swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
+ if (result) {
+ result->vars = 0;
+ }
+ return ((PyObject*) result);
+ }
+
+ SWIGINTERN void
+ SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
+ swig_varlinkobject *v = (swig_varlinkobject *) p;
+ swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
+ if (gv) {
+ size_t size = strlen(name)+1;
+ gv->name = (char *)malloc(size);
+ if (gv->name) {
+ strncpy(gv->name,name,size);
+ gv->get_attr = get_attr;
+ gv->set_attr = set_attr;
+ gv->next = v->vars;
+ }
+ }
+ v->vars = gv;
+ }
+
+ /* -----------------------------------------------------------------------------
+ * constants/methods manipulation
+ * ----------------------------------------------------------------------------- */
+
+ /* Install Constants */
+ SWIGINTERN void
+ SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
+ PyObject *obj = 0;
+ size_t i;
+ for (i = 0; constants[i].type; ++i) {
+ switch(constants[i].type) {
+ case SWIG_PY_INT:
+ obj = PyInt_FromLong(constants[i].lvalue);
+ break;
+ case SWIG_PY_FLOAT:
+ obj = PyFloat_FromDouble(constants[i].dvalue);
+ break;
+ case SWIG_PY_STRING:
+ if (constants[i].pvalue) {
+ obj = PyString_FromString((char *) constants[i].pvalue);
+ } else {
+ Py_INCREF(Py_None);
+ obj = Py_None;
+ }
+ break;
+ case SWIG_PY_POINTER:
+ obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
+ break;
+ case SWIG_PY_BINARY:
+ obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
+ break;
+ default:
+ obj = 0;
+ break;
+ }
+ if (obj) {
+ PyDict_SetItemString(d,constants[i].name,obj);
+ Py_DECREF(obj);
+ }
+ }
+ }
+
+ /* -----------------------------------------------------------------------------*/
+ /* Fix SwigMethods to carry the callback ptrs when needed */
+ /* -----------------------------------------------------------------------------*/
+
+ SWIGINTERN void
+ SWIG_Python_FixMethods(PyMethodDef *methods,
+ swig_const_info *const_table,
+ swig_type_info **types,
+ swig_type_info **types_initial) {
+ size_t i;
+ for (i = 0; methods[i].ml_name; ++i) {
+ char *c = methods[i].ml_doc;
+ if (c && (c = strstr(c, "swig_ptr: "))) {
+ int j;
+ swig_const_info *ci = 0;
+ char *name = c + 10;
+ for (j = 0; const_table[j].type; ++j) {
+ if (strncmp(const_table[j].name, name,
+ strlen(const_table[j].name)) == 0) {
+ ci = &(const_table[j]);
+ break;
+ }
+ }
+ if (ci) {
+ size_t shift = (ci->ptype) - types;
+ swig_type_info *ty = types_initial[shift];
+ size_t ldoc = (c - methods[i].ml_doc);
+ size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
+ char *ndoc = (char*)malloc(ldoc + lptr + 10);
+ if (ndoc) {
+ char *buff = ndoc;
+ void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
+ if (ptr) {
+ strncpy(buff, methods[i].ml_doc, ldoc);
+ buff += ldoc;
+ strncpy(buff, "swig_ptr: ", 10);
+ buff += 10;
+ SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
+ methods[i].ml_doc = ndoc;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /* -----------------------------------------------------------------------------*
+ * Initialize type list
+ * -----------------------------------------------------------------------------*/
+
+#ifdef __cplusplus
+}
+#endif
+
+/* -----------------------------------------------------------------------------*
+ * Partial Init method
+ * -----------------------------------------------------------------------------*/
+
+#ifdef __cplusplus
+extern "C"
+#endif
+SWIGEXPORT void SWIG_init(void) {
+ static PyObject *SWIG_globals = 0;
+ PyObject *m, *d;
+ if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
+
+ /* Fix SwigMethods to carry the callback ptrs when needed */
+ SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
+
+ m = Py_InitModule((char *) SWIG_name, SwigMethods);
+ d = PyModule_GetDict(m);
+
+ SWIG_InitializeModule(0);
+ SWIG_InstallConstants(d,swig_const_table);
+
+
+ PIError = PyErr_NewException("pisock.error", NULL, NULL);
+ Py_INCREF(PIError);
+ PyDict_SetItemString(d, "error", PIError);
+
+ {
+ PyDict_SetItemString(d,"PI_ERR_PROT_ABORTED", SWIG_From_int((int)(PI_ERR_PROT_ABORTED)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_PROT_INCOMPATIBLE", SWIG_From_int((int)(PI_ERR_PROT_INCOMPATIBLE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_PROT_BADPACKET", SWIG_From_int((int)(PI_ERR_PROT_BADPACKET)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_SOCK_DISCONNECTED", SWIG_From_int((int)(PI_ERR_SOCK_DISCONNECTED)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_SOCK_INVALID", SWIG_From_int((int)(PI_ERR_SOCK_INVALID)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_SOCK_TIMEOUT", SWIG_From_int((int)(PI_ERR_SOCK_TIMEOUT)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_SOCK_CANCELED", SWIG_From_int((int)(PI_ERR_SOCK_CANCELED)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_SOCK_IO", SWIG_From_int((int)(PI_ERR_SOCK_IO)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_SOCK_LISTENER", SWIG_From_int((int)(PI_ERR_SOCK_LISTENER)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_DLP_BUFSIZE", SWIG_From_int((int)(PI_ERR_DLP_BUFSIZE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_DLP_PALMOS", SWIG_From_int((int)(PI_ERR_DLP_PALMOS)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_DLP_UNSUPPORTED", SWIG_From_int((int)(PI_ERR_DLP_UNSUPPORTED)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_DLP_SOCKET", SWIG_From_int((int)(PI_ERR_DLP_SOCKET)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_DLP_DATASIZE", SWIG_From_int((int)(PI_ERR_DLP_DATASIZE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_DLP_COMMAND", SWIG_From_int((int)(PI_ERR_DLP_COMMAND)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_FILE_INVALID", SWIG_From_int((int)(PI_ERR_FILE_INVALID)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_FILE_ERROR", SWIG_From_int((int)(PI_ERR_FILE_ERROR)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_FILE_ABORTED", SWIG_From_int((int)(PI_ERR_FILE_ABORTED)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_FILE_NOT_FOUND", SWIG_From_int((int)(PI_ERR_FILE_NOT_FOUND)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_FILE_ALREADY_EXISTS", SWIG_From_int((int)(PI_ERR_FILE_ALREADY_EXISTS)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_GENERIC_MEMORY", SWIG_From_int((int)(PI_ERR_GENERIC_MEMORY)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_GENERIC_ARGUMENT", SWIG_From_int((int)(PI_ERR_GENERIC_ARGUMENT)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_ERR_GENERIC_SYSTEM", SWIG_From_int((int)(PI_ERR_GENERIC_SYSTEM)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_AF_PILOT", SWIG_From_int((int)(0x00)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SOCK_STREAM", SWIG_From_int((int)(0x0010)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SOCK_RAW", SWIG_From_int((int)(0x0030)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_CMD_CMP", SWIG_From_int((int)(0x01)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_CMD_NET", SWIG_From_int((int)(0x02)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_CMD_SYS", SWIG_From_int((int)(0x03)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_MSG_PEEK", SWIG_From_int((int)(0x01)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PF_DEV", SWIG_From_int((int)(PI_PF_DEV)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PF_SLP", SWIG_From_int((int)(PI_PF_SLP)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PF_SYS", SWIG_From_int((int)(PI_PF_SYS)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PF_PADP", SWIG_From_int((int)(PI_PF_PADP)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PF_NET", SWIG_From_int((int)(PI_PF_NET)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PF_DLP", SWIG_From_int((int)(PI_PF_DLP)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_DEV", SWIG_From_int((int)(PI_LEVEL_DEV)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_SLP", SWIG_From_int((int)(PI_LEVEL_SLP)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_PADP", SWIG_From_int((int)(PI_LEVEL_PADP)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_NET", SWIG_From_int((int)(PI_LEVEL_NET)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_SYS", SWIG_From_int((int)(PI_LEVEL_SYS)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_CMP", SWIG_From_int((int)(PI_LEVEL_CMP)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_DLP", SWIG_From_int((int)(PI_LEVEL_DLP)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_LEVEL_SOCK", SWIG_From_int((int)(PI_LEVEL_SOCK)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_DEV_RATE", SWIG_From_int((int)(PI_DEV_RATE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_DEV_ESTRATE", SWIG_From_int((int)(PI_DEV_ESTRATE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_DEV_HIGHRATE", SWIG_From_int((int)(PI_DEV_HIGHRATE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_DEV_TIMEOUT", SWIG_From_int((int)(PI_DEV_TIMEOUT)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_DEST", SWIG_From_int((int)(PI_SLP_DEST)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_LASTDEST", SWIG_From_int((int)(PI_SLP_LASTDEST)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_SRC", SWIG_From_int((int)(PI_SLP_SRC)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_LASTSRC", SWIG_From_int((int)(PI_SLP_LASTSRC)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_TYPE", SWIG_From_int((int)(PI_SLP_TYPE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_LASTTYPE", SWIG_From_int((int)(PI_SLP_LASTTYPE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_TXID", SWIG_From_int((int)(PI_SLP_TXID)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SLP_LASTTXID", SWIG_From_int((int)(PI_SLP_LASTTXID)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PADP_TYPE", SWIG_From_int((int)(PI_PADP_TYPE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PADP_LASTTYPE", SWIG_From_int((int)(PI_PADP_LASTTYPE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PADP_FREEZE_TXID", SWIG_From_int((int)(PI_PADP_FREEZE_TXID)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_PADP_USE_LONG_FORMAT", SWIG_From_int((int)(PI_PADP_USE_LONG_FORMAT)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_CMP_TYPE", SWIG_From_int((int)(PI_CMP_TYPE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_CMP_FLAGS", SWIG_From_int((int)(PI_CMP_FLAGS)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_CMP_VERS", SWIG_From_int((int)(PI_CMP_VERS)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_CMP_BAUD", SWIG_From_int((int)(PI_CMP_BAUD)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_NET_TYPE", SWIG_From_int((int)(PI_NET_TYPE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_NET_SPLIT_WRITES", SWIG_From_int((int)(PI_NET_SPLIT_WRITES)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_NET_WRITE_CHUNKSIZE", SWIG_From_int((int)(PI_NET_WRITE_CHUNKSIZE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SOCK_STATE", SWIG_From_int((int)(PI_SOCK_STATE)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_SOCK_HONOR_RX_TIMEOUT", SWIG_From_int((int)(PI_SOCK_HONOR_RX_TIMEOUT)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_DLP_VERSION_MAJOR", SWIG_From_int((int)(1)));
+ }
+ {
+ PyDict_SetItemString(d,"PI_DLP_VERSION_MINOR", SWIG_From_int((int)(4)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsMountFlagsUseThisFileSystem", SWIG_From_int((int)(0x01)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsMAXFILENAME", SWIG_From_int((int)(256)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsInvalidVolRef", SWIG_From_int((int)(0)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsInvalidFileRef", SWIG_From_long((long)(0L)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagResource", SWIG_From_int((int)(dlpDBFlagResource)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagReadOnly", SWIG_From_int((int)(dlpDBFlagReadOnly)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagAppInfoDirty", SWIG_From_int((int)(dlpDBFlagAppInfoDirty)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagBackup", SWIG_From_int((int)(dlpDBFlagBackup)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagHidden", SWIG_From_int((int)(dlpDBFlagHidden)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagLaunchable", SWIG_From_int((int)(dlpDBFlagLaunchable)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagRecyclable", SWIG_From_int((int)(dlpDBFlagRecyclable)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagBundle", SWIG_From_int((int)(dlpDBFlagBundle)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagOpen", SWIG_From_int((int)(dlpDBFlagOpen)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagNewer", SWIG_From_int((int)(dlpDBFlagNewer)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagReset", SWIG_From_int((int)(dlpDBFlagReset)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagCopyPrevention", SWIG_From_int((int)(dlpDBFlagCopyPrevention)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagStream", SWIG_From_int((int)(dlpDBFlagStream)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagSchema", SWIG_From_int((int)(dlpDBFlagSchema)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagSecure", SWIG_From_int((int)(dlpDBFlagSecure)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagExtended", SWIG_From_int((int)(dlpDBFlagExtended)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBFlagFixedUp", SWIG_From_int((int)(dlpDBFlagFixedUp)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBMiscFlagExcludeFromSync", SWIG_From_int((int)(dlpDBMiscFlagExcludeFromSync)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBMiscFlagRamBased", SWIG_From_int((int)(dlpDBMiscFlagRamBased)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpRecAttrDeleted", SWIG_From_int((int)(dlpRecAttrDeleted)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpRecAttrDirty", SWIG_From_int((int)(dlpRecAttrDirty)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpRecAttrBusy", SWIG_From_int((int)(dlpRecAttrBusy)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpRecAttrSecret", SWIG_From_int((int)(dlpRecAttrSecret)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpRecAttrArchived", SWIG_From_int((int)(dlpRecAttrArchived)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpOpenRead", SWIG_From_int((int)(dlpOpenRead)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpOpenWrite", SWIG_From_int((int)(dlpOpenWrite)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpOpenExclusive", SWIG_From_int((int)(dlpOpenExclusive)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpOpenSecret", SWIG_From_int((int)(dlpOpenSecret)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpOpenReadWrite", SWIG_From_int((int)(dlpOpenReadWrite)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBListRAM", SWIG_From_int((int)(dlpDBListRAM)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBListROM", SWIG_From_int((int)(dlpDBListROM)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpDBListMultiple", SWIG_From_int((int)(dlpDBListMultiple)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpFindDBOptFlagGetAttributes", SWIG_From_int((int)(dlpFindDBOptFlagGetAttributes)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpFindDBOptFlagGetSize", SWIG_From_int((int)(dlpFindDBOptFlagGetSize)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpFindDBOptFlagMaxRecSize", SWIG_From_int((int)(dlpFindDBOptFlagMaxRecSize)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpFindDBSrchFlagNewSearch", SWIG_From_int((int)(dlpFindDBSrchFlagNewSearch)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpFindDBSrchFlagOnlyLatest", SWIG_From_int((int)(dlpFindDBSrchFlagOnlyLatest)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpEndCodeNormal", SWIG_From_int((int)(dlpEndCodeNormal)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpEndCodeOutOfMemory", SWIG_From_int((int)(dlpEndCodeOutOfMemory)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpEndCodeUserCan", SWIG_From_int((int)(dlpEndCodeUserCan)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpEndCodeOther", SWIG_From_int((int)(dlpEndCodeOther)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpExpCapabilityHasStorage", SWIG_From_int((int)(dlpExpCapabilityHasStorage)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpExpCapabilityReadOnly", SWIG_From_int((int)(dlpExpCapabilityReadOnly)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpExpCapabilitySerial", SWIG_From_int((int)(dlpExpCapabilitySerial)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsVolAttrSlotBased", SWIG_From_int((int)(vfsVolAttrSlotBased)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsVolAttrReadOnly", SWIG_From_int((int)(vfsVolAttrReadOnly)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsVolAttrHidden", SWIG_From_int((int)(vfsVolAttrHidden)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsOriginBeginning", SWIG_From_int((int)(vfsOriginBeginning)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsOriginCurrent", SWIG_From_int((int)(vfsOriginCurrent)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsOriginEnd", SWIG_From_int((int)(vfsOriginEnd)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpVFSOpenExclusive", SWIG_From_int((int)(dlpVFSOpenExclusive)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpVFSOpenRead", SWIG_From_int((int)(dlpVFSOpenRead)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpVFSOpenWrite", SWIG_From_int((int)(dlpVFSOpenWrite)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpVFSOpenReadWrite", SWIG_From_int((int)(dlpVFSOpenReadWrite)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsModeExclusive", SWIG_From_int((int)(vfsModeExclusive)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsModeRead", SWIG_From_int((int)(vfsModeRead)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsModeWrite", SWIG_From_int((int)(vfsModeWrite)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsModeReadWrite", SWIG_From_int((int)(vfsModeReadWrite)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsModeCreate", SWIG_From_int((int)(vfsModeCreate)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsModeTruncate", SWIG_From_int((int)(vfsModeTruncate)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsModeLeaveOpen", SWIG_From_int((int)(vfsModeLeaveOpen)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileAttrReadOnly", SWIG_From_int((int)(vfsFileAttrReadOnly)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileAttrHidden", SWIG_From_int((int)(vfsFileAttrHidden)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileAttrSystem", SWIG_From_int((int)(vfsFileAttrSystem)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileAttrVolumeLabel", SWIG_From_int((int)(vfsFileAttrVolumeLabel)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileAttrDirectory", SWIG_From_int((int)(vfsFileAttrDirectory)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileAttrArchive", SWIG_From_int((int)(vfsFileAttrArchive)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileAttrLink", SWIG_From_int((int)(vfsFileAttrLink)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileDateCreated", SWIG_From_int((int)(vfsFileDateCreated)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileDateModified", SWIG_From_int((int)(vfsFileDateModified)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsFileDateAccessed", SWIG_From_int((int)(vfsFileDateAccessed)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsIteratorStart", SWIG_From_int((int)(vfsIteratorStart)));
+ }
+ {
+ PyDict_SetItemString(d,"vfsIteratorStop", SWIG_From_int((int)(vfsIteratorStop)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrNoError", SWIG_From_int((int)(dlpErrNoError)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrSystem", SWIG_From_int((int)(dlpErrSystem)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrIllegalReq", SWIG_From_int((int)(dlpErrIllegalReq)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrMemory", SWIG_From_int((int)(dlpErrMemory)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrParam", SWIG_From_int((int)(dlpErrParam)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrNotFound", SWIG_From_int((int)(dlpErrNotFound)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrNoneOpen", SWIG_From_int((int)(dlpErrNoneOpen)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrAlreadyOpen", SWIG_From_int((int)(dlpErrAlreadyOpen)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrTooManyOpen", SWIG_From_int((int)(dlpErrTooManyOpen)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrExists", SWIG_From_int((int)(dlpErrExists)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrOpen", SWIG_From_int((int)(dlpErrOpen)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrDeleted", SWIG_From_int((int)(dlpErrDeleted)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrBusy", SWIG_From_int((int)(dlpErrBusy)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrNotSupp", SWIG_From_int((int)(dlpErrNotSupp)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrUnused1", SWIG_From_int((int)(dlpErrUnused1)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrReadOnly", SWIG_From_int((int)(dlpErrReadOnly)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrSpace", SWIG_From_int((int)(dlpErrSpace)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrLimit", SWIG_From_int((int)(dlpErrLimit)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrSync", SWIG_From_int((int)(dlpErrSync)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrWrapper", SWIG_From_int((int)(dlpErrWrapper)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrArgument", SWIG_From_int((int)(dlpErrArgument)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrSize", SWIG_From_int((int)(dlpErrSize)));
+ }
+ {
+ PyDict_SetItemString(d,"dlpErrUnknown", SWIG_From_int((int)(dlpErrUnknown)));
+ }
+}
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisockextras.py b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisockextras.py
new file mode 100644
index 00000000..24a830dd
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/src/pisockextras.py
@@ -0,0 +1,24 @@
+import pisock
+import datetime
+
+def dlp_ReadDBList(sd, cardno=0, flags=None):
+ ret = []
+ i = 0
+ if flags is None:
+ flags = pisock.dlpDBListRAM
+ while True:
+ try:
+ lst = pisock.dlp_ReadDBList_(sd, cardno, pisock.dlpDBListMultiple | flags, i)
+ if (lst is None) or (len(lst) == 0):
+ return ret
+ for db in lst:
+ i = db['index'] + 1
+ ret.append(db)
+ except pisock.error:
+ if pisock.pi_palmos_error(sd)==pisock.dlpErrNotFound:
+ return ret
+ raise
+
+def dlp_GetSysDateTime(sd):
+ r = pisock.dlp_GetSysDateTime_(sd)
+ return datetime.datetime.fromtimestamp(r)
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/pisocktests.py b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/pisocktests.py
new file mode 100644
index 00000000..e8e5a626
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/pisocktests.py
@@ -0,0 +1,192 @@
+import unittest
+import sys,glob,os
+from optparse import OptionParser
+
+builds = glob.glob("../build/lib*")
+if len(builds) != 1:
+ print "This little hack only works when you've got one build compiled."
+ print "python setup.py clean; python setup.py build"
+ print "and try again."
+ os.exit(10)
+sys.path.insert(0,os.path.join(os.path.abspath("."),builds[0]))
+
+import pisock
+
+def dumpDBInfo(dbi):
+ print '\tDatabase info:'
+ print '\t\tname:',dbi['name']
+ print '\t\ttype:',dbi['type']
+ print '\t\tcreator:',dbi['creator']
+ print '\t\tversion:',dbi['version']
+ print '\t\tflags: 0x%08lx' % (dbi['flags'])
+ print '\t\tmiscFlags: 0x%08lx' % (dbi['miscFlags'])
+ print '\t\tmod. count:',dbi['modnum']
+ print '\t\tcreated:',dbi['createDate']
+ print '\t\tmodified',dbi['modifyDate']
+ print '\t\tbackup:',dbi['backupDate']
+
+def dumpDBSizeInfo(si):
+ print '\tDBSizeInfo:'
+ print '\t\tnumRecords:',si['numRecords']
+ print '\t\ttotalBytes:',si['totalBytes']
+ print '\t\tdataBytes:',si['dataBytes']
+ print '\t\tappBlockSize:',si['appBlockSize']
+ print '\t\tsortBlockSize:',si['sortBlockSize']
+ print '\t\tmaxRecSize:',si['maxRecSize']
+
+class OnlineTestCase(unittest.TestCase):
+ def setUp(self):
+ try:
+ pisock.dlp_DeleteDB(sd,0,'PythonTestSuite')
+ except:
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testGetSysDateTime(self):
+ res = pisock.dlp_GetSysDateTime(sd)
+ if VERBOSE:
+ print 'GetSysDateTime:',res
+
+ def testAddSyncLogEntry(self):
+ pisock.dlp_AddSyncLogEntry(sd, "Python test.")
+
+ def testReadSysInfo(self):
+ res = pisock.dlp_ReadSysInfo(sd)
+ assert res!=None and res.has_key('romVersion')
+ if VERBOSE:
+ print 'ReadSysInfo: romVersion=%s locale=%s name=%s' % (
+ hex(res['romVersion']),
+ hex(res['locale']),
+ res['name'])
+
+ def testReadStorageInfo(self):
+ res = pisock.dlp_ReadStorageInfo(sd,0)
+ assert res.has_key('manufacturer')
+ if VERBOSE:
+ print 'ReadStorageInfo: card 0, romSize=%s ramSize=%s ramFree=%s manufacturer=%s' % (
+ res['romSize'],
+ res['ramSize'],
+ res['ramFree'],
+ res['manufacturer'])
+
+ def testReadUserInfo(self):
+ res = pisock.dlp_ReadUserInfo(sd)
+ assert res!=None and res.has_key('name')
+ if VERBOSE:
+ print 'ReadUserInfo: username=%s' % res['name']
+
+ def testReadNetSyncInfo(self):
+ res = pisock.dlp_ReadNetSyncInfo(sd)
+ assert res!=None and res.has_key('hostName')
+ if VERBOSE:
+ print "ReadNetSyncInfo: lanSync=%d hostname='%s' hostaddress='%s' subnetmask='%s'" % (
+ res['lanSync'],
+ res['hostName'],
+ res['hostAddress'],
+ res['hostSubnetMask'])
+
+ def testReadFeature(self):
+ res = pisock.dlp_ReadFeature(sd,'psys',2)
+ assert res!=None
+ if VERBOSE:
+ print "ReadFeature: processor type=%s" % hex(res)
+
+ def testReadStorageInfo(self):
+ more = 1
+ i = 0
+ while more:
+ res = pisock.dlp_ReadStorageInfo(sd,i)
+ assert res!=None and res.has_key('name')
+ if VERBOSE:
+ print "ReadStorageInfo: card=%d version=%d creation=%ld romSize=%ld ramSize=%ld ramFree=%ld name='%s' manufacturer='%s'" % (
+ res['card'],
+ res['version'],
+ res['creation'],
+ res['romSize'],
+ res['ramSize'],
+ res['ramFree'],
+ res['name'],
+ res['manufacturer'])
+ if res['more'] == 0:
+ break
+
+ def testReadDBList(self):
+ res = pisock.dlp_ReadDBList(sd,0,pisock.dlpDBListRAM)
+ assert len(res) > 3
+ assert res[0].has_key('name')
+ if VERBOSE:
+ print "ReadDBList: %s entries" % len(res)
+
+ def testDatabaseCreationAndSearch(self):
+ db = pisock.dlp_CreateDB(sd,'test','DATA',0,0,1,'PythonTestSuite')
+ assert db != None
+ pisock.dlp_SetDBInfo(sd, db, pisock.dlpDBFlagBackup, pisock.dlpDBFlagCopyPrevention, 0, 0, 0, 0, 'data', 0)
+ pisock.dlp_CloseDB(sd,db)
+ db = pisock.dlp_OpenDB(sd, 0, pisock.dlpOpenReadWrite, 'PythonTestSuite')
+ assert db != None
+ info = pisock.dlp_FindDBByOpenHandle(sd, db)
+ if VERBOSE:
+ print 'FindDBByOpenHandle:'
+ print '\tcardNo',info[0]
+ print '\tlocalID',info[1]
+ dumpDBInfo(info[2])
+ dumpDBSizeInfo(info[3])
+ pisock.dlp_CloseDB(sd,db)
+ pisock.dlp_DeleteDB(sd,0,'PythonTestSuite')
+
+class OfflineTestCase(unittest.TestCase):
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testBadPort(self):
+ sd = pisock.pi_socket(pisock.PI_AF_PILOT,
+ pisock.PI_SOCK_STREAM,
+ pisock.PI_PF_DLP)
+ self.assertRaises(pisock.error, pisock.pi_bind, sd, "/dev/nosuchport")
+
+onlineSuite = unittest.makeSuite(OnlineTestCase,'test')
+offlineSuite = unittest.makeSuite(OfflineTestCase,'test')
+combinedSuite = unittest.TestSuite((onlineSuite, offlineSuite))
+
+if __name__ == "__main__":
+ parser = OptionParser()
+ parser.add_option("-p", "--port", dest="pilotport",
+ help="Perform online tests using port", metavar="PORT")
+ parser.add_option("-v", "--verbose", dest="verbose", action="store_true",
+ help="Print more output", default=0)
+ (options, args) = parser.parse_args()
+
+ runner = unittest.TextTestRunner()
+
+ VERBOSE = options.verbose
+
+ if options.pilotport:
+
+ pilotport = options.pilotport
+ print "Running online and offline tests using port %s" % pilotport
+ print "Connecting"
+ sd = pisock.pi_socket(pisock.PI_AF_PILOT,
+ pisock.PI_SOCK_STREAM,
+ pisock.PI_PF_DLP)
+
+ pisock.pi_bind(sd, pilotport)
+ pisock.pi_listen(sd, 1)
+ pisock.pi_accept(sd)
+ if VERBOSE:
+ print pisock.dlp_ReadSysInfo(sd)
+ else:
+ pisock.dlp_ReadSysInfo(sd)
+ pisock.dlp_OpenConduit(sd)
+ print "Connected"
+ runner.run(combinedSuite)
+ pisock.pi_close(sd)
+ print "Disconnected"
+ else:
+ print "Running offline tests only"
+ runner.run(offlineSuite)
+
diff --git a/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/run.sh b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/run.sh
new file mode 100755
index 00000000..206b7be2
--- /dev/null
+++ b/debian/pilot-link/pilot-link-0.12.5-dfsg/bindings/Python/test/run.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+#LD_LIBRARY_PATH=../../../libpisock/.libs gdb --args python pisocktests.py $*
+LD_LIBRARY_PATH=../../../libpisock/.libs python pisocktests.py $*
+