diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-15 18:24:11 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-17 10:58:10 +0200 |
commit | e3246e8720c74bb62a2b86b21f6147ea6f050054 (patch) | |
tree | d41c749b5fd372cfc3c140dcb58b8996328dcb56 /source3/rpc_parse | |
parent | 3db2249886bf19be4c357a0966d9efa2f2e692f6 (diff) | |
download | samba-e3246e8720c74bb62a2b86b21f6147ea6f050054.tar.gz samba-e3246e8720c74bb62a2b86b21f6147ea6f050054.tar.bz2 samba-e3246e8720c74bb62a2b86b21f6147ea6f050054.zip |
Actually connect to RPC.
(This used to be commit 3082534454ff936ac0b78b5a2c72c9b060e21244)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_rpc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c index 268bee7e51..9eeae176c7 100644 --- a/source3/rpc_parse/parse_rpc.c +++ b/source3/rpc_parse/parse_rpc.c @@ -234,6 +234,21 @@ const char *cli_get_pipe_name(int pipe_idx) return &pipe_names[pipe_idx].client_pipe[5]; } +/**************************************************************************** + Return the pipe idx from the syntax. + ****************************************************************************/ +int cli_get_pipe_idx(const RPC_IFACE *syntax) +{ + int i; + for (i = 0; pipe_names[i].client_pipe; i++) { + if (GUID_equal(&pipe_names[i].abstr_syntax.uuid, &syntax->uuid) && + pipe_names[i].abstr_syntax.version == syntax->version) + return i; + } + + return -1; +} + /******************************************************************* Inits an RPC_HDR structure. ********************************************************************/ |