From 4f803502ef0bca3fee5017469f858bea702b069d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 19 Feb 2009 17:39:36 +0100 Subject: spoolss: add ndr_size_spoolss_StringArray to spoolss helper. Guenther --- librpc/ndr/ndr_spoolss_buf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'librpc/ndr/ndr_spoolss_buf.c') diff --git a/librpc/ndr/ndr_spoolss_buf.c b/librpc/ndr/ndr_spoolss_buf.c index e74b0a9ee1..d7e28ccf0e 100644 --- a/librpc/ndr/ndr_spoolss_buf.c +++ b/librpc/ndr/ndr_spoolss_buf.c @@ -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); +} + -- cgit