summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/samr.i
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-05 04:05:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:33 -0500
commit65b5a2297c766f5dcaf087800993554729aa6c69 (patch)
tree82bb664dfff06945ea2d707565fe830a92f4c1ba /source4/scripting/swig/samr.i
parent86bf5cefa9798378ffb881a9a668c852fe56b2e2 (diff)
downloadsamba-65b5a2297c766f5dcaf087800993554729aa6c69.tar.gz
samba-65b5a2297c766f5dcaf087800993554729aa6c69.tar.bz2
samba-65b5a2297c766f5dcaf087800993554729aa6c69.zip
r2230: Wrapper for dcerpc_samr_Connect2(). All this glue code should be
automatically generated but at the moment it's hand coded. (This used to be commit e1a368050d3abb6a6ca6529315dc4228e8590c7f)
Diffstat (limited to 'source4/scripting/swig/samr.i')
-rw-r--r--source4/scripting/swig/samr.i13
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/scripting/swig/samr.i b/source4/scripting/swig/samr.i
index ceb21db17a..030f5defc2 100644
--- a/source4/scripting/swig/samr.i
+++ b/source4/scripting/swig/samr.i
@@ -23,3 +23,16 @@
#define DCERPC_SAMR_UUID "12345778-1234-abcd-ef00-0123456789ac"
const int DCERPC_SAMR_VERSION = 1.0;
#define DCERPC_SAMR_NAME "samr"
+
+%typemap(in) struct samr_Connect2 * (struct samr_Connect2 temp) {
+ if (!PyDict_Check($input)) {
+ PyErr_SetString(PyExc_TypeError, "dict arg expected");
+ return NULL;
+ }
+ temp.in.system_name = get_string_property($input, "system_name");
+ temp.in.access_mask = get_uint32_property($input, "access_mask");
+ $1 = &temp;
+}
+
+%rename(samr_Connect2) dcerpc_samr_Connect2;
+NTSTATUS dcerpc_samr_Connect2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Connect2 *r);