summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-03-15 12:24:59 +0100
committerGünther Deschner <gd@samba.org>2010-04-07 15:16:52 +0200
commitbc235459094f01e6fbf3b544bb4848427ceae9d5 (patch)
treeaec8441f95f1b96b93b2dd76ea644f407593a4ac /source3/rpc_server/srv_spoolss_util.h
parent4f3893f8148a36d11a4fa333c323fcf6f0176b2e (diff)
downloadsamba-bc235459094f01e6fbf3b544bb4848427ceae9d5.tar.gz
samba-bc235459094f01e6fbf3b544bb4848427ceae9d5.tar.bz2
samba-bc235459094f01e6fbf3b544bb4848427ceae9d5.zip
s3-spoolss: Added a set_printer_dataex function using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server/srv_spoolss_util.h')
-rw-r--r--source3/rpc_server/srv_spoolss_util.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h
index 3118bbc835..4faa35049f 100644
--- a/source3/rpc_server/srv_spoolss_util.h
+++ b/source3/rpc_server/srv_spoolss_util.h
@@ -22,4 +22,34 @@
#ifndef _SRV_SPOOLSS_UITL_H
#define _SRV_SPOOLSS_UITL_H
+/**
+ * @internal
+ *
+ * @brief Set printer data over the winreg pipe.
+ *
+ * @param[in] p The pipes structure to be able to open a new pipe.
+ *
+ * @param[in] printer The printer name.
+ *
+ * @param[in] key The key of the printer data to store the value.
+ *
+ * @param[in] value The value name to save.
+ *
+ * @param[in] type The type of the value to use.
+ *
+ * @param[in] data The data which sould be saved under the given value.
+ *
+ * @param[in] data_size The size of the data.
+ *
+ * @return On success WERR_OK, a corresponding DOS error is
+ * something went wrong.
+ */
+WERROR winreg_set_printer_dataex(struct pipes_struct *p,
+ const char *printer,
+ const char *key,
+ const char *value,
+ enum winreg_Type type,
+ uint8_t *data,
+ uint32_t data_size);
+
#endif /* _SRV_SPOOLSS_UITL_H */