summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-04-01 11:51:59 +0200
committerGünther Deschner <gd@samba.org>2010-04-07 15:16:53 +0200
commitc7fb84a58fd3597431c0bbe131e51a95eaff8a70 (patch)
treeb72f2ec52ea386fa41f6f4d02e74144d3a2c0a92 /source3/rpc_server/srv_spoolss_util.h
parent0d46ab0f3eb9662d7ee3eaf8f680632486878d46 (diff)
downloadsamba-c7fb84a58fd3597431c0bbe131e51a95eaff8a70.tar.gz
samba-c7fb84a58fd3597431c0bbe131e51a95eaff8a70.tar.bz2
samba-c7fb84a58fd3597431c0bbe131e51a95eaff8a70.zip
s3-spoolss: Added a winreg_setform1 function.
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.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h
index e99de5fb63..1fcc3244ba 100644
--- a/source3/rpc_server/srv_spoolss_util.h
+++ b/source3/rpc_server/srv_spoolss_util.h
@@ -218,4 +218,24 @@ WERROR winreg_printer_enumforms1(struct pipes_struct *p,
WERROR winreg_printer_deleteform1(struct pipes_struct *p,
const char *form_name);
+/**
+ * @brief This function sets the form information for the specified printer.
+ *
+ * If one provides both the name in the API call and inside the FormInfo
+ * structure, then the form gets renamed.
+ *
+ * @param[in] p The pipes structure to be able to open a new pipe.
+ *
+ * @param[in] form_name The name of the form to set or rename.
+ *
+ * @param[in] form The FormInfo structure to save.
+ *
+ * @return WERR_OK on success.
+ * WERR_INVALID_PARAM if the form is a builtin form.
+ * A corresponding DOS error is something went wrong.
+ */
+WERROR winreg_printer_setform1(struct pipes_struct *p,
+ const char *form_name,
+ struct spoolss_AddFormInfo1 *form);
+
#endif /* _SRV_SPOOLSS_UITL_H */