summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/spoolss.idl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-17 02:18:11 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-17 02:18:11 +0000
commit657b4d2abdad5691fc37bafe819f75cc440354b9 (patch)
treea66c51ef8e39efa62e5b7a5f9e2e227bd3138935 /source4/librpc/idl/spoolss.idl
parentcc5f231e95b2a322a1f1f118b8a3a363a0e4d0cc (diff)
downloadsamba-657b4d2abdad5691fc37bafe819f75cc440354b9.tar.gz
samba-657b4d2abdad5691fc37bafe819f75cc440354b9.tar.bz2
samba-657b4d2abdad5691fc37bafe819f75cc440354b9.zip
nicer method of handling spoolss EnumPrinters
this also handles the return of several printers (an array of relative subcontexts) (This used to be commit 060421c7dc9aa611fe4160843a4f76498ab16bf4)
Diffstat (limited to 'source4/librpc/idl/spoolss.idl')
-rw-r--r--source4/librpc/idl/spoolss.idl17
1 files changed, 10 insertions, 7 deletions
diff --git a/source4/librpc/idl/spoolss.idl b/source4/librpc/idl/spoolss.idl
index 94c3bf127c..2da15652e5 100644
--- a/source4/librpc/idl/spoolss.idl
+++ b/source4/librpc/idl/spoolss.idl
@@ -48,14 +48,14 @@
// uint8 private[driverextra];
} spoolss_DeviceMode;
- typedef [public] struct {
+ typedef struct {
uint32 flags;
[relative] nstring name;
[relative] nstring description;
[relative] nstring comment;
} spoolss_PrinterEnum1;
- typedef [public] struct {
+ typedef struct {
[relative] nstring servername;
[relative] nstring printername;
[relative] nstring sharename;
@@ -79,15 +79,18 @@
uint32 averageppm;
} spoolss_PrinterEnum2;
+ typedef [nodiscriminant,public] union {
+ case(1) spoolss_PrinterEnum1 info1;
+ case(2) spoolss_PrinterEnum2 info2;
+ } spoolss_PrinterEnum;
+
NTSTATUS spoolss_EnumPrinters(
[in] uint32 flags,
[in] unistr *server,
[in] uint32 level,
- [in,size_is(offered)] uint8 *buf,
- [in] uint32 offered,
- [out,subcontext,switch_is(level)] spoolss_PrinterEnum *info,
- [out,ref] uint32 *needed,
- [out] uint32 returned
+ [in,out] DATA_BLOB *buffer,
+ [in,out,ref] uint32 *buf_size,
+ [out] uint32 count
);
/******************/