diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-17 03:38:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-17 03:38:13 +0000 |
commit | bf48b6e69a638dc78ab119424e27adc0ccc6c610 (patch) | |
tree | 60b76902359884ad7c708cec467bee0baf6e2898 /source4/librpc/rpc/dcerpc.c | |
parent | 90916de4a5303601a59938237a551d976cde0589 (diff) | |
download | samba-bf48b6e69a638dc78ab119424e27adc0ccc6c610.tar.gz samba-bf48b6e69a638dc78ab119424e27adc0ccc6c610.tar.bz2 samba-bf48b6e69a638dc78ab119424e27adc0ccc6c610.zip |
added OpenPrinter and a test function. Note that the Samba3 structure
for OpenPrinter was wrong.
(This used to be commit 186ddbbf8774d0960852ea9186c8e4e6f7be7a0f)
Diffstat (limited to 'source4/librpc/rpc/dcerpc.c')
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 6e6436887b..aa8b8520f3 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -814,3 +814,10 @@ failed: } +/* + a useful function for retrieving the server name we connected to +*/ +const char *dcerpc_server_name(struct dcerpc_pipe *p) +{ + return p->tree->session->transport->called.name; +} |