summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-07-31 15:17:29 +0000
committerGerald Carter <jerry@samba.org>2000-07-31 15:17:29 +0000
commit2759822674174007dafa84c99e77e0c5919d6c60 (patch)
treef21d29df9e20fc4871f520d9257fe1b3019ffd87 /source3
parentf9d3ff99fda642bc0a0a4cd0eeb838df29ea4df6 (diff)
downloadsamba-2759822674174007dafa84c99e77e0c5919d6c60.tar.gz
samba-2759822674174007dafa84c99e77e0c5919d6c60.tar.bz2
samba-2759822674174007dafa84c99e77e0c5919d6c60.zip
make proto
(This used to be commit 38b07395566a2c114ccda173fb0fe88cf7683588)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index b6fce9edaa..af1c671e62 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1903,11 +1903,9 @@ BOOL do_samr_close(struct cli_state *cli, POLICY_HND *hnd);
/*The following definitions come from rpc_client/cli_spoolss.c */
-uint32 spoolss_enum_printerdrivers(const char * srv_name,
- const char *environment,
- uint32 level,
- NEW_BUFFER *buffer, uint32 offered,
- uint32 *needed, uint32 *returned);
+uint32 spoolss_enum_printerdrivers(const char *srv_name, const char *environment,
+ uint32 level, NEW_BUFFER *buffer, uint32 offered,
+ uint32 *needed, uint32 *returned);
uint32 spoolss_enum_printers(uint32 flags, fstring srv_name, uint32 level,
NEW_BUFFER *buffer, uint32 offered,
uint32 *needed, uint32 *returned);
@@ -1918,9 +1916,9 @@ uint32 spoolss_enum_jobs(const POLICY_HND *hnd, uint32 firstjob, uint32 numofjob
uint32 level, NEW_BUFFER *buffer, uint32 offered,
uint32 *needed, uint32 *returned);
uint32 spoolss_enum_printerdata(const POLICY_HND *hnd, uint32 idx,
- uint32 *valuelen, uint16 *value, uint32 *rvaluelen,
- uint32 *type,
- uint32 *datalen, uint8 *data, uint32 *rdatalen);
+ uint32 *valuelen, uint16 *value, uint32 *rvaluelen,
+ uint32 *type, uint32 *datalen, uint8 *data,
+ uint32 *rdatalen);
uint32 spoolss_getprinter(const POLICY_HND *hnd, uint32 level,
NEW_BUFFER *buffer, uint32 offered,
uint32 *needed);
@@ -1932,6 +1930,7 @@ BOOL spoolss_open_printer_ex( const char *printername,
const char *datatype, uint32 access_required,
const char *station, const char *username,
POLICY_HND *hnd);
+BOOL spoolss_addprinterex(POLICY_HND *hnd, PRINTER_INFO_2 *info2);
BOOL spoolss_closeprinter(POLICY_HND *hnd);
uint32 spoolss_getprinterdata(const POLICY_HND *hnd, const UNISTR2 *valuename,
uint32 in_size,
@@ -1988,10 +1987,11 @@ BOOL do_wks_query_info(struct cli_state *cli,
/*The following definitions come from rpc_client/msrpc_spoolss.c */
-void decode_port_info_2(NEW_BUFFER *buffer, uint32 returned,
- PORT_INFO_2 **info);
+void init_buffer(NEW_BUFFER *buffer, uint32 size, TALLOC_CTX *ctx);
void decode_port_info_1(NEW_BUFFER *buffer, uint32 returned,
PORT_INFO_1 **info);
+void decode_port_info_2(NEW_BUFFER *buffer, uint32 returned,
+ PORT_INFO_2 **info);
BOOL msrpc_spoolss_enum_printers(char* srv_name, uint32 flags,
uint32 level, PRINTER_INFO_CTR ctr);
BOOL msrpc_spoolss_enum_ports(char* srv_name,
@@ -2721,6 +2721,7 @@ BOOL new_smb_io_printer_info_0(char *desc, NEW_BUFFER *buffer, PRINTER_INFO_0 *i
BOOL new_smb_io_printer_info_1(char *desc, NEW_BUFFER *buffer, PRINTER_INFO_1 *info, int depth);
BOOL new_smb_io_printer_info_2(char *desc, NEW_BUFFER *buffer, PRINTER_INFO_2 *info, int depth);
BOOL new_smb_io_printer_info_3(char *desc, NEW_BUFFER *buffer, PRINTER_INFO_3 *info, int depth);
+BOOL new_smb_io_port_info_1(char *desc, NEW_BUFFER *buffer, PORT_INFO_1 *info, int depth);
BOOL new_smb_io_port_info_2(char *desc, NEW_BUFFER *buffer, PORT_INFO_2 *info, int depth);
BOOL new_smb_io_printer_driver_info_1(char *desc, NEW_BUFFER *buffer, DRIVER_INFO_1 *info, int depth) ;
BOOL new_smb_io_printer_driver_info_2(char *desc, NEW_BUFFER *buffer, DRIVER_INFO_2 *info, int depth) ;
@@ -3198,6 +3199,7 @@ uint32 cmd_spoolss_getprinterdriver(struct client_info *info, int argc, char *ar
uint32 cmd_spoolss_enumprinterdrivers(struct client_info *info, int argc, char *argv[]);
uint32 cmd_spoolss_getprinterdriverdir(struct client_info *info, int argc, char *argv[]);
uint32 cmd_spoolss_addprinterex(struct client_info *info, int argc, char *argv[]);
+uint32 cmd_spoolss_addprinterdriver(struct client_info *info, int argc, char *argv[]);
/*The following definitions come from rpcclient/display_sec.c */
@@ -3209,6 +3211,7 @@ void display_printer_info_ctr(FILE *out_hnd, enum action_type action, uint32 lev
uint32 count, PRINTER_INFO_CTR ctr);
void display_port_info_ctr(FILE *out_hnd, enum action_type action, uint32 level,
uint32 count, PORT_INFO_CTR *ctr);
+void display_port_info_1(FILE *out_hnd, enum action_type action, PORT_INFO_1 *i1);
void display_port_info_2(FILE *out_hnd, enum action_type action, PORT_INFO_2 *i2);
void display_printer_enumdata(FILE *out_hnd, enum action_type action, uint32 idx,
uint32 valuelen, uint16 *value, uint32 rvaluelen,