s3-spoolss: Use existing handle in printer_driver_in_use().
[kai/samba.git] / source3 / include / nt_printing.h
index 4f8515983b5b52a4d5f3ffad38f85621285ddaf2..0ac1995f5320b5225cfdd8770e052bfd50f1ff93 100644 (file)
@@ -128,18 +128,18 @@ bool nt_printing_init(struct messaging_context *msg_ctx);
 
 const char *get_short_archi(const char *long_archi);
 
-bool print_access_check(const struct auth_serversupplied_info *server_info,
+bool print_access_check(const struct auth_session_info *server_info,
                        struct messaging_context *msg_ctx, int snum,
                        int access_type);
 
 WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
-                         const struct auth_serversupplied_info *server_info,
+                         const struct auth_session_info *server_info,
                          struct messaging_context *msg_ctx,
                          struct spoolss_PrinterInfo2 *pinfo2,
                          int action);
 
 bool is_printer_published(TALLOC_CTX *mem_ctx,
-                         const struct auth_serversupplied_info *server_info,
+                         const struct auth_session_info *server_info,
                          struct messaging_context *msg_ctx,
                          const char *servername, char *printer, struct GUID *guid,
                          struct spoolss_PrinterInfo2 **info2);
@@ -147,33 +147,32 @@ bool is_printer_published(TALLOC_CTX *mem_ctx,
 WERROR check_published_printers(struct messaging_context *msg_ctx);
 
 bool printer_driver_in_use(TALLOC_CTX *mem_ctx,
-                          const struct auth_serversupplied_info *server_info,
-                          struct messaging_context *msg_ctx,
+                          struct dcerpc_binding_handle *b,
                           const struct spoolss_DriverInfo8 *r);
 bool printer_driver_files_in_use(TALLOC_CTX *mem_ctx,
-                                const struct auth_serversupplied_info *server_info,
+                                const struct auth_session_info *server_info,
                                 struct messaging_context *msg_ctx,
                                 struct spoolss_DriverInfo8 *r);
-bool delete_driver_files(const struct auth_serversupplied_info *server_info,
+bool delete_driver_files(const struct auth_session_info *server_info,
                         const struct spoolss_DriverInfo8 *r);
 
-WERROR move_driver_to_download_area(struct auth_serversupplied_info *session_info,
+WERROR move_driver_to_download_area(struct auth_session_info *session_info,
                                    struct spoolss_AddDriverInfoCtr *r);
 
 WERROR clean_up_driver_struct(TALLOC_CTX *mem_ctx,
-                             struct auth_serversupplied_info *session_info,
+                             struct auth_session_info *session_info,
                              struct spoolss_AddDriverInfoCtr *r);
 
 void map_printer_permissions(struct security_descriptor *sd);
 
 void map_job_permissions(struct security_descriptor *sd);
 
-bool print_time_access_check(const struct auth_serversupplied_info *server_info,
+bool print_time_access_check(const struct auth_session_info *server_info,
                             struct messaging_context *msg_ctx,
                             const char *servicename);
 
 void nt_printer_remove(TALLOC_CTX *mem_ctx,
-                       const struct auth_serversupplied_info *server_info,
+                       const struct auth_session_info *server_info,
                        struct messaging_context *msg_ctx,
                        const char *printer);