s3: Lift the smbd_messaging_context from check_published_printers
[amitay/samba.git] / source3 / include / nt_printing.h
index f29b22fc4213e6d51ae6cdecb861a0e55cf8ce5d..97f70faf3909928abfed0713b15e151959bc66b9 100644 (file)
@@ -243,6 +243,7 @@ bool print_access_check(struct auth_serversupplied_info *server_info,
 
 WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
                          struct auth_serversupplied_info *server_info,
+                         struct messaging_context *msg_ctx,
                          struct spoolss_PrinterInfo2 *pinfo2,
                          int action);
 
@@ -251,7 +252,7 @@ bool is_printer_published(TALLOC_CTX *mem_ctx,
                          char *servername, char *printer, struct GUID *guid,
                          struct spoolss_PrinterInfo2 **info2);
 
-WERROR check_published_printers(void);
+WERROR check_published_printers(struct messaging_context *msg_ctx);
 
 bool driver_info_ctr_to_info8(struct spoolss_AddDriverInfoCtr *r,
                              struct spoolss_DriverInfo8 *_info8);
@@ -280,10 +281,12 @@ void map_printer_permissions(struct security_descriptor *sd);
 void map_job_permissions(struct security_descriptor *sd);
 
 bool print_time_access_check(struct auth_serversupplied_info *server_info,
+                            struct messaging_context *msg_ctx,
                             const char *servicename);
 
 void nt_printer_remove(TALLOC_CTX *mem_ctx,
                        struct auth_serversupplied_info *server_info,
+                       struct messaging_context *msg_ctx,
                        const char *printer);
 
 #endif /* NT_PRINTING_H_ */