summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_basic.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-17 02:58:10 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-17 02:58:10 +0000
commit90916de4a5303601a59938237a551d976cde0589 (patch)
treebff267e385e910b9ad69505da6964669d9318073 /source4/librpc/ndr/ndr_basic.c
parentff9558bdf99901793dad9182254164e1472e9cfe (diff)
downloadsamba-90916de4a5303601a59938237a551d976cde0589.tar.gz
samba-90916de4a5303601a59938237a551d976cde0589.tar.bz2
samba-90916de4a5303601a59938237a551d976cde0589.zip
* more info levels for EnumPrinter
* use WERROR return type in spoolss EnumPrinter (This used to be commit 8301a6b6ad45f76a42d0fcab6347c187eee615a9)
Diffstat (limited to 'source4/librpc/ndr/ndr_basic.c')
-rw-r--r--source4/librpc/ndr/ndr_basic.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index 2c6a3aac96..8e90fc990f 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -84,6 +84,17 @@ NTSTATUS ndr_pull_NTSTATUS(struct ndr_pull *ndr, NTSTATUS *status)
}
/*
+ pull a WERROR
+*/
+NTSTATUS ndr_pull_WERROR(struct ndr_pull *ndr, WERROR *status)
+{
+ uint32 v;
+ NDR_CHECK(ndr_pull_uint32(ndr, &v));
+ *status = W_ERROR(v);
+ return NT_STATUS_OK;
+}
+
+/*
parse a set of bytes
*/
NTSTATUS ndr_pull_bytes(struct ndr_pull *ndr, char *data, uint32 n)