From 9ea602741934f4e546147fa238332644e8e9f316 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Mon, 7 Mar 2011 15:32:02 +0100 Subject: idl: define printcap IPC message format Signed-off-by: Andreas Schneider --- librpc/idl/printcap.idl | 17 +++++++++++++++++ librpc/idl/wscript_build | 3 ++- librpc/wscript_build | 5 +++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 librpc/idl/printcap.idl (limited to 'librpc') diff --git a/librpc/idl/printcap.idl b/librpc/idl/printcap.idl new file mode 100644 index 00000000000..5ab380ce6cb --- /dev/null +++ b/librpc/idl/printcap.idl @@ -0,0 +1,17 @@ +#include "idl_types.h" +[ + pointer_default(unique) +] +interface printcap +{ + typedef struct { + [charset(UTF8),string] uint8 *name; + [charset(UTF8),string] uint8 *info; + } pcap_printer; + + typedef [public] struct { + NTSTATUS status; + uint32 count; + [size_is(count)] pcap_printer printers[]; + } pcap_data; +} diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build index 33dd4c9b284..7e1340e6f77 100644 --- a/librpc/idl/wscript_build +++ b/librpc/idl/wscript_build @@ -10,7 +10,8 @@ bld.SAMBA_PIDL_LIST('PIDL', dbgidl.idl dnsserver.idl echo.idl frsrpc.idl lsa.idl nbt.idl dns.idl oxidresolver.idl samr.idl srvsvc.idl winreg.idl dcerpc.idl drsblobs.idl efs.idl frstrans.idl mgmt.idl netlogon.idl - policyagent.idl scerpc.idl svcctl.idl wkssvc.idl eventlog6.idl backupkey.idl''', + policyagent.idl scerpc.idl svcctl.idl wkssvc.idl eventlog6.idl backupkey.idl + printcap.idl''', options='--header --ndr-parser --samba3-ndr-server --server --client --python', output_dir='../gen_ndr') diff --git a/librpc/wscript_build b/librpc/wscript_build index e8bc163f590..ce78cb6767a 100644 --- a/librpc/wscript_build +++ b/librpc/wscript_build @@ -100,6 +100,11 @@ bld.SAMBA_SUBSYSTEM('NDR_SPOOLSS_BUF', deps='talloc' ) +bld.SAMBA_SUBSYSTEM('NDR_PRINTCAP', + source='gen_ndr/ndr_printcap.c', + public_deps='ndr' + ) + bld.SAMBA_SUBSYSTEM('NDR_EPMAPPER', source='gen_ndr/ndr_epmapper.c', public_deps='ndr' -- cgit v1.2.1