[PATCH] librpc: add bindings for dnsp in python

Matthieu Patou mat at matws.net
Sat Feb 12 13:18:29 MST 2011


---
 librpc/idl/wscript_build     |    7 ++++++-
 librpc/wscript_build         |    5 +++++
 source4/librpc/wscript_build |    6 ++++++
 3 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build
index 52476c4..a06e95d 100644
--- a/librpc/idl/wscript_build
+++ b/librpc/idl/wscript_build
@@ -25,6 +25,11 @@ bld.SAMBA_PIDL_LIST('PIDL',
                     output_dir='../gen_ndr')
 
 bld.SAMBA_PIDL_LIST('PIDL',
-                    'rap.idl dnsp.idl ntprinting.idl',
+                    'rap.idl ntprinting.idl',
                     options='--header --ndr-parser',
                     output_dir='../gen_ndr')
+
+bld.SAMBA_PIDL_LIST('PIDL',
+                    'dnsp.idl',
+                    options='--header --ndr-parser --client --python',
+                    output_dir='../gen_ndr')
diff --git a/librpc/wscript_build b/librpc/wscript_build
index efe2223..e6a4633 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -491,6 +491,11 @@ bld.SAMBA_SUBSYSTEM('RPC_NDR_BACKUPKEY',
 	public_deps='dcerpc NDR_BACKUPKEY'
 	)
 
+bld.SAMBA_SUBSYSTEM('RPC_NDR_DNSP',
+	source='gen_ndr/ndr_dnsp_c.c',
+	public_deps='dcerpc NDR_DNSP'
+	)
+
 # a grouping library for NDR subsystems that may be used by more than one target
 bld.SAMBA_LIBRARY('ndr-samba',
 	source=[],
diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build
index 6087d84..fa94665 100755
--- a/source4/librpc/wscript_build
+++ b/source4/librpc/wscript_build
@@ -335,6 +335,12 @@ bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
 	realname='samba/dcerpc/drsblobs.so'
 	)
 
+bld.SAMBA_PYTHON('python_dcerpc_dnsp',
+	source='../../librpc/gen_ndr/py_dnsp.c',
+	deps='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DNSP',
+	realname='samba/dcerpc/dnsp.so'
+	)
+
 
 bld.SAMBA_PYTHON('python_dcerpc_xattr',
 	source='../../librpc/gen_ndr/py_xattr.c',
-- 
1.7.1


--------------050107060500060104040209--


More information about the samba mailing list