From 44bc6714b0c5f40eb73def532b3074a4b19f6df4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 26 Apr 2010 17:34:24 -0400 Subject: s3-printing: Converted printer publishing functions. Use spoolss_PrintInfo2 and winreg calls. Signed-off-by: Jim McDonough --- source3/include/proto.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index 4d0536832c..738559b748 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4753,14 +4753,15 @@ int add_new_printer_key( NT_PRINTER_DATA *data, const char *name ); int delete_printer_key( NT_PRINTER_DATA *data, const char *name ); int lookup_printerkey( NT_PRINTER_DATA *data, const char *name ); int get_printer_subkeys( NT_PRINTER_DATA *data, const char* key, fstring **subkeys ); -WERROR nt_printer_publish(Printer_entry *print_hnd, int snum, int action); +WERROR nt_printer_publish(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + struct spoolss_PrinterInfo2 *pinfo2, + int action); WERROR check_published_printers(void); -bool is_printer_published(Printer_entry *print_hnd, int snum, - struct GUID *guid); -WERROR nt_printer_publish(Printer_entry *print_hnd, int snum, int action); -WERROR check_published_printers(void); -bool is_printer_published(Printer_entry *print_hnd, int snum, - struct GUID *guid); +bool is_printer_published(TALLOC_CTX *mem_ctx, + struct auth_serversupplied_info *server_info, + char *servername, char *printer, struct GUID *guid, + struct spoolss_PrinterInfo2 **info2); WERROR delete_all_printer_data( NT_PRINTER_INFO_LEVEL_2 *p2, const char *key ); WERROR delete_printer_data( NT_PRINTER_INFO_LEVEL_2 *p2, const char *key, const char *value ); WERROR add_printer_data( NT_PRINTER_INFO_LEVEL_2 *p2, const char *key, const char *value, -- cgit