diff options
author | Gerald Carter <jerry@samba.org> | 2006-03-04 00:05:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:56 -0500 |
commit | 5df58c38f3c29d87c5918d1611c17e016c6f7545 (patch) | |
tree | 6ebf15c4db391bf5f167d8cfeaf4991437536e2a /source3/include/nt_printing.h | |
parent | 889ff32b5eb6ac60bc6f490ceb85dceee77c18d9 (diff) | |
download | samba-5df58c38f3c29d87c5918d1611c17e016c6f7545.tar.gz samba-5df58c38f3c29d87c5918d1611c17e016c6f7545.tar.bz2 samba-5df58c38f3c29d87c5918d1611c17e016c6f7545.zip |
r13829: From the "It's not pretty but it works" category
* Finish prototype of the "add port command" implementation
Format is "addportcommand portname deviceURI"
* DeviceURI is either
- socket://hostname:port/
- lpr://hostname/queue
depending on what the client sent in the request
(This used to be commit 6d74de7a676b71e83a3c3714743e6380c04e4425)
Diffstat (limited to 'source3/include/nt_printing.h')
-rw-r--r-- | source3/include/nt_printing.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/include/nt_printing.h b/source3/include/nt_printing.h index a2aba3ed26..5bd64ae7be 100644 --- a/source3/include/nt_printing.h +++ b/source3/include/nt_printing.h @@ -348,6 +348,28 @@ typedef struct #define SAMBA_PRINTER_PORT_NAME "Samba Printer Port" #endif + +/* + * Structures for the XcvDataPort() calls + */ + +#define PORT_PROTOCOL_DIRECT 1 +#define PORT_PROTOCOL_LPR 2 + +typedef struct { + fstring name; + uint32 version; + uint32 protocol; + fstring hostaddr; + fstring snmpcommunity; + fstring queue; + uint32 dblspool; + fstring ipaddr; + uint32 port; + BOOL enable_snmp; + uint32 snmp_index; +} NT_PORT_DATA_1; + /* DOS header format */ #define DOS_HEADER_SIZE 64 #define DOS_HEADER_MAGIC_OFFSET 0 |