s3-spoolss: add pull_spoolss_PrinterData().
[vlendec/samba-autobuild/.git] / source3 / rpc_client / init_spoolss.c
index a6255adf3d833dad3e362257060acfefb2875513..ddf011842914ed745809c67f8d0818da0c660345 100644 (file)
@@ -40,3 +40,21 @@ bool init_systemtime(struct spoolss_Time *r,
 
        return true;
 }
+
+/*******************************************************************
+ ********************************************************************/
+
+WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx,
+                               const DATA_BLOB *blob,
+                               union spoolss_PrinterData *data,
+                               enum winreg_Type type)
+{
+       enum ndr_err_code ndr_err;
+       ndr_err = ndr_pull_union_blob(blob, mem_ctx, NULL, data, type,
+                       (ndr_pull_flags_fn_t)ndr_pull_spoolss_PrinterData);
+       if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+               return WERR_GENERAL_FAILURE;
+       }
+       return WERR_OK;
+}
+