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 | |
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')
-rw-r--r-- | source3/include/nt_printing.h | 22 | ||||
-rwxr-xr-x | source3/include/rpc_spoolss.h | 20 |
2 files changed, 40 insertions, 2 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 diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h index f2f789a49e..4d24ee4f0f 100755 --- a/source3/include/rpc_spoolss.h +++ b/source3/include/rpc_spoolss.h @@ -2174,7 +2174,23 @@ SPOOL_R_GETPRINTPROCESSORDIRECTORY; /**************************************/ -typedef struct spool_q_xcvdataport { +typedef struct { + UNISTR portname; /* constant 64 wchars */ + uint32 version; + uint32 protocol; + uint32 size; + uint32 reserved; + UNISTR hostaddress; /* constant 49 wchars */ + UNISTR snmpcommunity; /* constant 33 wchars */ + uint32 dblspool; + UNISTR queue; /* constant 33 wchars */ + UNISTR ipaddress; /* constant 17 wchars */ + uint32 port; + uint32 snmpenabled; + uint32 snmpdevindex; +} SPOOL_PORT_DATA_1; + +typedef struct { POLICY_HND handle; UNISTR2 dataname; RPC_BUFFER indata; @@ -2183,7 +2199,7 @@ typedef struct spool_q_xcvdataport { uint32 unknown; } SPOOL_Q_XCVDATAPORT; -typedef struct spool_r_xcvdataport { +typedef struct { RPC_BUFFER outdata; uint32 needed; uint32 unknown; |