diff options
author | Simo Sorce <idra@samba.org> | 2010-04-21 09:37:08 -0400 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-23 16:24:25 +0200 |
commit | a91f6f8b03b5c9342853229dc634bd217e289d5d (patch) | |
tree | 2edd9dfb28072b0cb419a22f3dd3af777d662fcc /source3/rpc_server/srv_spoolss_util.h | |
parent | 8f56cdfaee571a5b4bb735290dfd668ef8c4d730 (diff) | |
download | samba-a91f6f8b03b5c9342853229dc634bd217e289d5d.tar.gz samba-a91f6f8b03b5c9342853229dc634bd217e289d5d.tar.bz2 samba-a91f6f8b03b5c9342853229dc634bd217e289d5d.zip |
s3-spoolss: Added a winreg_add_driver 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.h | 22 |
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 a4b5c88271..c33e111300 100644 --- a/source3/rpc_server/srv_spoolss_util.h +++ b/source3/rpc_server/srv_spoolss_util.h @@ -329,4 +329,26 @@ WERROR winreg_printer_getform1(TALLOC_CTX *mem_ctx, const char *form_name, struct spoolss_FormInfo1 *form); +/** + * @brief This function adds a new spool driver + * + * @param[in] mem_ctx A talloc memory context. + * + * @param[in] server_info Auth info to open the pipe. + * + * @param[in] r The structure containing the new driver data. + * + * @param[out] driver_name Returns the driver name. + * + * @param[out] driver_version Returns the driver version. + * + * @return On success WERR_OK, a corresponding DOS error is + * something went wrong. + */ +WERROR winreg_add_driver(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + struct spoolss_AddDriverInfoCtr *r, + const char **driver_name, + uint32_t *driver_version); + #endif /* _SRV_SPOOLSS_UITL_H */ |