1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

smbXsrv.idl: add python bindings

This is useful for some scripting examples and debugging...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2023-11-24 16:09:58 +01:00
parent b96ce32f82
commit 8e850685a1
2 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,7 @@ bld.SAMBA_PIDL_LIST('PIDL',
smbXsrv.idl
leases_db.idl
''',
options='--includedir=%s --header --ndr-parser' % topinclude,
options='--includedir=%s --header --ndr-parser --client --python' % topinclude,
output_dir='../gen_ndr')
bld.SAMBA_PIDL_LIST('PIDL',

View File

@ -533,6 +533,18 @@ bld.SAMBA_PYTHON('python_mdssvc',
cflags_end=gen_cflags
)
bld.SAMBA_SUBSYSTEM('RPC_NDR_SMBXSRV',
source='../../source3/librpc/gen_ndr/ndr_smbXsrv_c.c',
public_deps='dcerpc-binding NDR_SMBXSRV'
)
bld.SAMBA_PYTHON('python_smbXsrv',
source='../../source3/librpc/gen_ndr/py_smbXsrv.c',
deps='RPC_NDR_SMBXSRV %s %s' % (pytalloc_util, pyrpc_util),
realname='samba/dcerpc/smbXsrv.so',
cflags_end=gen_cflags
)
if bld.PYTHON_BUILD_IS_ENABLED():
bld.SAMBA_SCRIPT('python_dcerpc_init',
pattern='rpc/dcerpc.py',