spoolss: add ndr_size_spoolss_StringArray to spoolss helper.
authorGünther Deschner <gd@samba.org>
Thu, 19 Feb 2009 16:39:36 +0000 (17:39 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 19 Feb 2009 17:00:36 +0000 (18:00 +0100)
Guenther

librpc/ndr/ndr_spoolss_buf.c
librpc/ndr/ndr_spoolss_buf.h

index e74b0a9ee1fa65b7287d3c5c77c4858931d32cdf..d7e28ccf0e7f5aa31fd2a4e95bfbef38398617d2 100644 (file)
@@ -534,3 +534,13 @@ uint32_t _ndr_size_spoolss_DeviceMode(struct spoolss_DeviceMode *devmode, struct
        if (!devmode) return 0;
        return ndr_size_spoolss_DeviceMode(devmode,ic,flags);
 }
+
+_PUBLIC_ size_t ndr_size_spoolss_StringArray(const struct spoolss_StringArray *r, struct smb_iconv_convenience *ic, int flags)
+{
+       if (!r) {
+               return 4;
+       }
+
+       return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_spoolss_StringArray, ic);
+}
+
index 209ae51ce79eedd71dbc3e630527d7c3b085e30a..801737610fc23c1bfb6c04206a63b130bf1aefe0 100644 (file)
@@ -38,6 +38,7 @@ enum ndr_err_code ndr_push_spoolss_GetPrinterData(struct ndr_push *ndr, int flag
 enum ndr_err_code ndr_pull_spoolss_GetPrinterData(struct ndr_pull *ndr, int flags, struct spoolss_GetPrinterData *r);
 enum ndr_err_code ndr_push_spoolss_SetPrinterData(struct ndr_push *ndr, int flags, const struct spoolss_SetPrinterData *r);
 uint32_t _ndr_size_spoolss_DeviceMode(struct spoolss_DeviceMode *devmode, struct smb_iconv_convenience *ic, uint32_t flags);
+size_t ndr_size_spoolss_StringArray(const struct spoolss_StringArray *r, struct smb_iconv_convenience *ic, int flags);
 #undef _PRINTF_ATTRIBUTE
 #define _PRINTF_ATTRIBUTE(a1, a2)