summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-03-31 13:04:04 +0200
committerGünther Deschner <gd@samba.org>2010-04-07 15:16:53 +0200
commit93575d6d7051089b50e038a152750939130c6a72 (patch)
treeb29bedbba5c96e9c6b1a828e524ed31456926b73 /source3/rpc_server/srv_spoolss_util.h
parentfbd32356103e8d72dadf51e51b3119443f13ffb2 (diff)
downloadsamba-93575d6d7051089b50e038a152750939130c6a72.tar.gz
samba-93575d6d7051089b50e038a152750939130c6a72.tar.bz2
samba-93575d6d7051089b50e038a152750939130c6a72.zip
s3-spoolss: Added a winreg_addform1 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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h
index 28e7e5b485..99cf68107c 100644
--- a/source3/rpc_server/srv_spoolss_util.h
+++ b/source3/rpc_server/srv_spoolss_util.h
@@ -171,6 +171,24 @@ WERROR winreg_delete_printer_key(struct pipes_struct *p,
const char *key);
/**
+ * @internal
+ *
+ * @brief This function adds a form to the list of available forms that can be
+ * selected for the specified printer.
+ *
+ * @param[in] p The pipes structure to be able to open a new pipe.
+ *
+ * @param[in] form The form to add.
+ *
+ * @return WERR_OK on success.
+ * WERR_ALREADY_EXISTS if the form already exists or is a
+ * builtin form.
+ * A corresponding DOS error is something went wrong.
+ */
+WERROR winreg_printer_addform1(struct pipes_struct *p,
+ struct spoolss_AddFormInfo1 *form);
+
+/*
* @brief This function enumerates the forms supported by the specified printer.
*
* @param[in] p The pipes structure to be able to open a new pipe.