summaryrefslogtreecommitdiffstats
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-03-27 13:08:22 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-03-28 08:34:25 +0100
commit4f0d5981f1fa7f53a3ea0d1a746584a4bf2f08da (patch)
tree4bd342e3a125b1da17fe2801e0987a529ea0d33a /source4/librpc
parenteabdbc886011028d19f5ef9bf6734f9ae6ffbf7f (diff)
downloadsamba-4f0d5981f1fa7f53a3ea0d1a746584a4bf2f08da.tar.gz
samba-4f0d5981f1fa7f53a3ea0d1a746584a4bf2f08da.tar.xz
samba-4f0d5981f1fa7f53a3ea0d1a746584a4bf2f08da.zip
s4:librpc: compile python bindings for dcerpc.idl
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/pyrpc.h5
-rwxr-xr-xsource4/librpc/wscript_build5
2 files changed, 10 insertions, 0 deletions
diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h
index 52f4f4d3d37..290c9887bdd 100644
--- a/source4/librpc/rpc/pyrpc.h
+++ b/source4/librpc/rpc/pyrpc.h
@@ -56,4 +56,9 @@ union netr_LogonLevel *py_export_netr_LogonLevel(TALLOC_CTX *mem_ctx, int level,
union netr_Validation;
PyObject *py_import_netr_Validation(TALLOC_CTX *mem_ctx, int level, union netr_Validation *in);
+
+#ifndef NDR_DCERPC_REQUEST_OBJECT_PRESENT
+#define NDR_DCERPC_REQUEST_OBJECT_PRESENT LIBNDR_FLAG_OBJECT_PRESENT
+#endif /* NDR_DCERPC_REQUEST_OBJECT_PRESENT */
+
#endif /* _PYRPC_H_ */
diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build
index d1019b21a03..a047f330d0c 100755
--- a/source4/librpc/wscript_build
+++ b/source4/librpc/wscript_build
@@ -275,6 +275,11 @@ bld.SAMBA_PYTHON('python_dfs',
realname='samba/dcerpc/dfs.so'
)
+bld.SAMBA_PYTHON('python_dcerpc_dcerpc',
+ source='../../librpc/gen_ndr/py_dcerpc.c',
+ deps='NDR_DCERPC pytalloc-util pyrpc_util',
+ realname='samba/dcerpc/dcerpc.so'
+ )
bld.SAMBA_PYTHON('python_unixinfo',
source='../../librpc/gen_ndr/py_unixinfo.c',