From 572fd6319fd60fbca99db42169b80aa0135be058 Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Mon, 16 Apr 2018 13:49:54 +1200 Subject: [PATCH] preg: Build python preg bindings These will be used in the GPO import/export. Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett --- librpc/idl/preg.idl | 5 +---- librpc/idl/wscript_build | 6 +++++- source4/librpc/wscript_build | 6 ++++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/librpc/idl/preg.idl b/librpc/idl/preg.idl index 6a98a823cd1..f14cea9fe2e 100644 --- a/librpc/idl/preg.idl +++ b/librpc/idl/preg.idl @@ -42,8 +42,5 @@ import "misc.idl"; preg_entry entries[num_entries]; } preg_file; - void decode_preg_file( - [in] preg_file file - ); - + [nopython] void decode_preg_file([in] preg_file file); } diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build index f1588cd18fb..2e012d6a868 100644 --- a/librpc/idl/wscript_build +++ b/librpc/idl/wscript_build @@ -28,11 +28,15 @@ bld.SAMBA_PIDL_LIST('PIDL', options='--header --ndr-parser --client --python', output_dir='../gen_ndr') +bld.SAMBA_PIDL_LIST('PIDL', + 'preg.idl', + options='--header --ndr-parser --client --python', + output_dir='../gen_ndr') + bld.SAMBA_PIDL_LIST('PIDL', ''' rap.idl ntprinting.idl - preg.idl ioctl.idl printcap.idl fsrvp_state.idl diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build index b7fd14134f7..054bb6ff416 100644 --- a/source4/librpc/wscript_build +++ b/source4/librpc/wscript_build @@ -293,6 +293,12 @@ for env in bld.gen_python_environments(): cflags_end=gen_cflags ) + bld.SAMBA_PYTHON('python_preg', + source='../../librpc/gen_ndr/py_preg.c', + deps='NDR_PREG pytalloc-util pyrpc_util', + realname='samba/dcerpc/preg.so', + cflags_end=gen_cflags + ) bld.SAMBA_PYTHON('python_initshutdown', source='../../librpc/gen_ndr/py_initshutdown.c', -- 2.34.1