summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-27 22:35:58 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-27 22:35:58 +0000
commite4a2e8e46f2392aab2bead21c32e101f577eb2ab (patch)
tree544af3078522d6a742d93c23217f2b113a192892 /source3/rpcclient
parent9fef73c27e07dbf658681e6c1027602328ed0add (diff)
downloadsamba-e4a2e8e46f2392aab2bead21c32e101f577eb2ab.tar.gz
samba-e4a2e8e46f2392aab2bead21c32e101f577eb2ab.tar.bz2
samba-e4a2e8e46f2392aab2bead21c32e101f577eb2ab.zip
removed do_ prefix from srvsvc API
(This used to be commit e4e5743a407b60c3695410eaf3df4ca3de4a870e)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_atsvc.c10
-rw-r--r--source3/rpcclient/cmd_srvsvc.c14
2 files changed, 8 insertions, 16 deletions
diff --git a/source3/rpcclient/cmd_atsvc.c b/source3/rpcclient/cmd_atsvc.c
index e07a89f4d9..39dc5213cf 100644
--- a/source3/rpcclient/cmd_atsvc.c
+++ b/source3/rpcclient/cmd_atsvc.c
@@ -137,19 +137,11 @@ schedule the job 'soon'
****************************************************************************/
static BOOL at_soon(char *dest_srv, uint32 *hours, uint32 *minutes, uint32 *seconds)
{
- uint16 nt_pipe_fnum;
TIME_OF_DAY_INFO tod;
BOOL res = True;
- /* open srvsvc session. */
- res = res ? cli_nt_session_open(smb_cli, PIPE_SRVSVC, &nt_pipe_fnum) : False;
-
/* enumerate files on server */
- res = res ? do_srv_net_remote_tod(smb_cli, nt_pipe_fnum,
- dest_srv, &tod) : False;
-
- /* Close the session */
- cli_nt_session_close(smb_cli, nt_pipe_fnum);
+ res = res ? srv_net_remote_tod(dest_srv, &tod) : False;
if (res)
{
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index 74368dea89..f0b10fe0d6 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -55,7 +55,7 @@ BOOL net_srv_get_info(struct client_info *info,
dest_srv, (int)info_level));
/* send info level: receive requested info. hopefully. */
- res = res ? do_srv_net_srv_get_info(dest_srv, info_level, ctr) : False;
+ res = res ? srv_net_srv_get_info(dest_srv, info_level, ctr) : False;
return res;
}
@@ -106,7 +106,7 @@ BOOL msrpc_srv_enum_tprt( const char* dest_srv,
hnd.handle = 0;
/* enumerate transports on server */
- res1 = res ? do_srv_net_srv_tprt_enum(dest_srv,
+ res1 = res ? srv_net_srv_tprt_enum(dest_srv,
info_level, ctr, 0xffffffff, &hnd) : False;
tprt_fn(ctr);
@@ -187,7 +187,7 @@ void cmd_srv_enum_conn(struct client_info *info, int argc, char *argv[])
hnd.handle = 0;
/* enumerate connections on server */
- res = res ? do_srv_net_srv_conn_enum(dest_srv, qual_srv,
+ res = res ? srv_net_srv_conn_enum(dest_srv, qual_srv,
info_level, &ctr, 0xffffffff, &hnd) : False;
if (res)
@@ -237,7 +237,7 @@ void cmd_srv_enum_shares(struct client_info *info, int argc, char *argv[])
hnd.handle = 0;
/* enumerate shares_files on server */
- res = res ? do_srv_net_srv_share_enum(dest_srv,
+ res = res ? srv_net_srv_share_enum(dest_srv,
info_level, &ctr, 0xffffffff, &hnd) : False;
if (res)
@@ -287,7 +287,7 @@ void cmd_srv_enum_sess(struct client_info *info, int argc, char *argv[])
hnd.handle = 0;
/* enumerate sessions on server */
- res = res ? do_srv_net_srv_sess_enum(dest_srv, NULL, NULL,
+ res = res ? srv_net_srv_sess_enum(dest_srv, NULL, NULL,
info_level, &ctr, 0x1000, &hnd) : False;
if (res)
@@ -337,7 +337,7 @@ void cmd_srv_enum_files(struct client_info *info, int argc, char *argv[])
hnd.handle = 0;
/* enumerate files on server */
- res = res ? do_srv_net_srv_file_enum(dest_srv, NULL, 0,
+ res = res ? srv_net_srv_file_enum(dest_srv, NULL, 0,
info_level, &ctr, 0x1000, &hnd) : False;
if (res)
@@ -373,7 +373,7 @@ void cmd_time(struct client_info *info, int argc, char *argv[])
DEBUG(4,("cmd_time: server:%s\n", dest_srv));
/* enumerate files on server */
- res = res ? do_srv_net_remote_tod(dest_srv, &tod) : False;
+ res = res ? srv_net_remote_tod(dest_srv, &tod) : False;
if (res)
{