s4:librpc: compile python bindings for dcerpc.idl
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Mar 2014 12:08:22 +0000 (13:08 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Mar 2014 07:34:25 +0000 (08:34 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/librpc/rpc/pyrpc.h
source4/librpc/wscript_build

index 52f4f4d3d379b9b9b1000656970b89d6b267cc5e..290c9887bdd6fac818ff3204792564dfdfee4cbb 100644 (file)
@@ -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_ */
index d1019b21a0365c1ff5f55b8166fc649887bc2996..a047f330d0c685fa34142d8ff0e7ed6e06944f23 100755 (executable)
@@ -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',