preg: Build python preg bindings
authorGarming Sam <garming@catalyst.net.nz>
Mon, 16 Apr 2018 01:49:54 +0000 (13:49 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2018 21:42:19 +0000 (23:42 +0200)
These will be used in the GPO import/export.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/idl/preg.idl
librpc/idl/wscript_build
source4/librpc/wscript_build

index 6a98a823cd1b309fca34e0c203213db0c47aafef..f14cea9fe2ecc7c0cc06707027a194234ceac0e0 100644 (file)
@@ -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);
 }
index f1588cd18fb5dedebd0e99353d6b95792d000300..2e012d6a868cf9942e82dedd6489ec49b7b88364 100644 (file)
@@ -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
index b7fd14134f777cd8f2a12610f937f47479af6d54..054bb6ff4165e795f08de010140f333c51d92da4 100644 (file)
@@ -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',