diff options
author | Andreas Schneider <asn@samba.org> | 2010-05-04 11:44:12 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-05 18:21:54 +0200 |
commit | 859a1e04fb2cb05144c91d30cc5f88a6bfd16596 (patch) | |
tree | 7de673c602914a899e6766efed599e7c43a24d0e /source3/rpc_server/srv_spoolss_util.h | |
parent | a76cc0a18c6b3d0679bd1edae1cd0b6bef94d1a3 (diff) | |
download | samba-859a1e04fb2cb05144c91d30cc5f88a6bfd16596.tar.gz samba-859a1e04fb2cb05144c91d30cc5f88a6bfd16596.tar.bz2 samba-859a1e04fb2cb05144c91d30cc5f88a6bfd16596.zip |
s3-spoolss: Added winreg security descriptor functions.
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.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h index fbb34bb158..9b79ce5b67 100644 --- a/source3/rpc_server/srv_spoolss_util.h +++ b/source3/rpc_server/srv_spoolss_util.h @@ -130,6 +130,44 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx, struct spoolss_PrinterInfo2 **pinfo2); /** + * @brief Get the security descriptor for a printer. + * + * @param[in] mem_ctx The talloc memory context to use. + * + * @param[in] server_info The server supplied session info. + * + * @param[in] sharename The share name. + * + * @param[out] psecdesc A pointer to store the security descriptor. + * + * @return On success WERR_OK, a corresponding DOS error is + * something went wrong. + */ +WERROR winreg_get_printer_secdesc(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + const char *sharename, + struct spoolss_security_descriptor **psecdesc); + +/** + * @brief Set the security descriptor for a printer. + * + * @param[in] mem_ctx The talloc memory context to use. + * + * @param[in] server_info The server supplied session info. + * + * @param[in] sharename The share name. + * + * @param[in] secdesc The security descriptor to save. + * + * @return On success WERR_OK, a corresponding DOS error is + * something went wrong. + */ +WERROR winreg_set_printer_secdesc(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + const char *sharename, + const struct spoolss_security_descriptor *secdesc); + +/** * @internal * * @brief Set printer data over the winreg pipe. |