diff options
author | Günther Deschner <gd@samba.org> | 2009-11-17 12:54:02 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-11-26 11:41:10 +0100 |
commit | 17db77ba80f8e7ad20b6f7d891fa28bea1e9ad83 (patch) | |
tree | e15668634a6aa887adc8c8011f028f9acd544c4e /source3/include | |
parent | 70e4af4ca8a22f1564797e4a9874fc4940716b99 (diff) | |
download | samba-17db77ba80f8e7ad20b6f7d891fa28bea1e9ad83.tar.gz |
s3-printing: use spoolss types and structs while getting and deleting drivers.
Guenther
(cherry picked from commit ec56895bdec90cc671a0d562749b3caf161dbdf8)
(cherry picked from commit 450a644e462073a371a8e465c16abf74fd0abdfe)
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 fef0ef96f96..341a4abe3c0 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4865,13 +4865,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); |