diff options
author | Günther Deschner <gd@samba.org> | 2009-11-17 12:54:02 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-11-23 12:19:11 +0100 |
commit | ec56895bdec90cc671a0d562749b3caf161dbdf8 (patch) | |
tree | 1021dd01905194f38b9c2b38f3b429033d3637a8 /source3/include | |
parent | 68cc1166d96ac81abce78a7eb60b7b86d0eb4eda (diff) | |
download | samba-ec56895bdec90cc671a0d562749b3caf161dbdf8.tar.gz samba-ec56895bdec90cc671a0d562749b3caf161dbdf8.tar.bz2 samba-ec56895bdec90cc671a0d562749b3caf161dbdf8.zip |
s3-printing: use spoolss types and structs while getting and deleting drivers.
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index fa994938b8..b708c26100 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4882,13 +4882,16 @@ uint32_t add_a_printer_driver(TALLOC_CTX *mem_ctx, struct spoolss_AddDriverInfoCtr *r, char **driver_name, uint32_t *version); -WERROR get_a_printer_driver(NT_PRINTER_DRIVER_INFO_LEVEL *driver, uint32_t level, - const char *drivername, const char *architecture, uint32_t version); -uint32 free_a_printer_driver(NT_PRINTER_DRIVER_INFO_LEVEL driver, uint32 level); -bool printer_driver_in_use ( NT_PRINTER_DRIVER_INFO_LEVEL_3 *info_3 ); -bool printer_driver_files_in_use ( NT_PRINTER_DRIVER_INFO_LEVEL_3 *info ); +WERROR get_a_printer_driver(TALLOC_CTX *mem_ctx, + union spoolss_DriverInfo **driver_p, uint32_t level, + const char *drivername, const char *architecture, + uint32_t version); +uint32_t free_a_printer_driver(union spoolss_DriverInfo *driver); +bool printer_driver_in_use(const struct spoolss_DriverInfo3 *info_3); +bool printer_driver_files_in_use(TALLOC_CTX *mem_ctx, + struct spoolss_DriverInfo3 *info); WERROR delete_printer_driver(struct pipes_struct *rpc_pipe, - NT_PRINTER_DRIVER_INFO_LEVEL_3 *info_3, + const struct spoolss_DriverInfo3 *info_3, uint32 version, bool delete_files ); WERROR nt_printing_setsec(const char *sharename, SEC_DESC_BUF *secdesc_ctr); bool nt_printing_getsec(TALLOC_CTX *ctx, const char *sharename, SEC_DESC_BUF **secdesc_ctr); |