summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-21 12:31:35 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:54 +0100
commitd3a13a16fff6e9a9929109a37f04a0a8e91d82b7 (patch)
treecff8883218a7bf29c398d635fa23c54d081464fc /source4/scripting
parent98c6dc913df5439d972c54238bc23e29a934d5cb (diff)
downloadsamba-d3a13a16fff6e9a9929109a37f04a0a8e91d82b7.tar.gz
samba-d3a13a16fff6e9a9929109a37f04a0a8e91d82b7.tar.bz2
samba-d3a13a16fff6e9a9929109a37f04a0a8e91d82b7.zip
r26076: Remove some SWIG code that is already commonly available.
(This used to be commit e6cd16d0fb3c7f0d4756c28b8c9300583910c4c6)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/swig/samba.i27
1 files changed, 0 insertions, 27 deletions
diff --git a/source4/scripting/swig/samba.i b/source4/scripting/swig/samba.i
index 859bdb06e3..fe83ae3da9 100644
--- a/source4/scripting/swig/samba.i
+++ b/source4/scripting/swig/samba.i
@@ -23,28 +23,6 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-%apply int { uint8_t };
-%apply int { int8_t };
-%apply unsigned int { uint16_t };
-%apply int { int16_t };
-%apply unsigned long long { uint64_t };
-%apply long long { int64_t };
-
-%typemap(in) uint32_t {
- if (PyLong_Check($input))
- $1 = PyLong_AsUnsignedLong($input);
- else if (PyInt_Check($input))
- $1 = PyInt_AsLong($input);
- else {
- PyErr_SetString(PyExc_TypeError,"Expected a long or an int");
- return NULL;
- }
-}
-
-%typemap(out) uint32_t {
- $result = PyLong_FromUnsignedLong($1);
-}
-
%typemap(in) NTSTATUS {
if (PyLong_Check($input))
$1 = NT_STATUS(PyLong_AsUnsignedLong($input));
@@ -56,13 +34,8 @@
}
}
-%typemap(out) NTSTATUS {
- $result = PyLong_FromUnsignedLong(NT_STATUS_V($1));
-}
-
%typemap(in) struct cli_credentials * {
$1 = cli_credentials_init(arg1);
- cli_credentials_set_conf($1);
if ($input == Py_None) {
cli_credentials_set_anonymous($1);
} else {