summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-04-26 17:34:24 -0400
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:10 -0400
commit44bc6714b0c5f40eb73def532b3074a4b19f6df4 (patch)
tree60020c8ad107e97be406c26be6fc9948e94c76be /source3/include/proto.h
parentd17d73f4be6938b942f1eed875c6dd629d8bec88 (diff)
downloadsamba-44bc6714b0c5f40eb73def532b3074a4b19f6df4.tar.gz
samba-44bc6714b0c5f40eb73def532b3074a4b19f6df4.tar.bz2
samba-44bc6714b0c5f40eb73def532b3074a4b19f6df4.zip
s3-printing: Converted printer publishing functions.
Use spoolss_PrintInfo2 and winreg calls. Signed-off-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h15
1 files changed, 8 insertions, 7 deletions
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,