summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-26 06:26:18 +0000
committerTim Potter <tpot@samba.org>2003-11-26 06:26:18 +0000
commitee67d68f1c6d71d4d3fbe86899d5ea9f271cfbc8 (patch)
treeb32ba1f52dcb30c43a92af8db823c36f7d9b1feb /source4/librpc/ndr
parent2edb73fbe9c33b26c3b3b892cbce56eb2e498abf (diff)
downloadsamba-ee67d68f1c6d71d4d3fbe86899d5ea9f271cfbc8.tar.gz
samba-ee67d68f1c6d71d4d3fbe86899d5ea9f271cfbc8.tar.bz2
samba-ee67d68f1c6d71d4d3fbe86899d5ea9f271cfbc8.zip
Implemented EnumForms and GetForm.
(This used to be commit 822750592cffb175aa7afb268bc7cb47bbab47e4)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr_spoolss_buf.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c
index 381093a58f..6c12ab2ae5 100644
--- a/source4/librpc/ndr/ndr_spoolss_buf.c
+++ b/source4/librpc/ndr/ndr_spoolss_buf.c
@@ -40,3 +40,20 @@ NTSTATUS pull_spoolss_PrinterInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx,
}
return NT_STATUS_OK;
}
+
+NTSTATUS pull_spoolss_FormInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx,
+ uint32 level, uint32 count,
+ union spoolss_FormInfo **info)
+{
+ int i;
+ struct ndr_pull *ndr;
+ ndr = ndr_pull_init_blob(blob, mem_ctx);
+ if (!ndr) {
+ return NT_STATUS_NO_MEMORY;
+ }
+ NDR_ALLOC_N(ndr, *info, count);
+ for (i=0;i<count;i++) {
+ NDR_CHECK(ndr_pull_spoolss_FormInfo(ndr, NDR_SCALARS|NDR_BUFFERS, level, &(*info)[i]));
+ }
+ return NT_STATUS_OK;
+}