summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-04-15 15:18:26 +0200
committerGünther Deschner <gd@samba.org>2010-04-23 16:23:36 +0200
commitb04a260e4e8b5d317e36d758f16aff090d567d7c (patch)
treedddfa483fe7a86316e300ca28e7b6e14c5f50b14 /source3/rpc_server/srv_spoolss_util.h
parenta18cd32a3478d533b679bc134b7dda66e1869521 (diff)
downloadsamba-b04a260e4e8b5d317e36d758f16aff090d567d7c.tar.gz
samba-b04a260e4e8b5d317e36d758f16aff090d567d7c.tar.bz2
samba-b04a260e4e8b5d317e36d758f16aff090d567d7c.zip
s3-spoolss: Added a function to update the ChangeID of a printer.
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.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h
index ea5d4a1ed0..e8cea01495 100644
--- a/source3/rpc_server/srv_spoolss_util.h
+++ b/source3/rpc_server/srv_spoolss_util.h
@@ -189,6 +189,28 @@ WERROR winreg_delete_printer_key(TALLOC_CTX *mem_ctx,
const char *key);
/**
+ * @brief Update the ChangeID of a printer.
+ *
+ * The ChangeID **must** be increasing over the lifetime of client's spoolss
+ * service in order for the client's cache to show updates.
+ *
+ * If a form is updated of a printer, the we need to update the ChangeID of the
+ * pritner.
+ *
+ * @param[in] mem_ctx The talloc memory context to use.
+ *
+ * @param[in] server_info The server supplied session info.
+ *
+ * @param[in] printer The printer name.
+ *
+ * @return On success WERR_OK, a corresponding DOS error is
+ * something went wrong.
+ */
+WERROR winreg_printer_update_changeid(TALLOC_CTX *mem_ctx,
+ struct auth_serversupplied_info *server_info,
+ const char *printer);
+
+/**
* @internal
*
* @brief This function adds a form to the list of available forms that can be