1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

r11781: rename tree to tcons to match the sessions substructure of smbsrv_connection

metze
(This used to be commit acd3e644e0)
This commit is contained in:
Stefan Metzmacher
2005-11-18 12:20:16 +00:00
committed by Gerald (Jerry) Carter
parent d5f37ecf94
commit 509be8d902
6 changed files with 35 additions and 35 deletions

View File

@ -39,7 +39,7 @@ function smbsrv_sessions()
/*
return a list of current tree connects
*/
function smbsrv_trees()
function smbsrv_tcons()
{
var irpc = irpc_init();
status = irpc.connect("smb_server");
@ -48,7 +48,7 @@ function smbsrv_trees()
}
var io = irpcObj();
io.input.level = irpc.SMBSRV_INFO_TREES;
io.input.level = irpc.SMBSRV_INFO_TCONS;
status = irpc.smbsrv_information(io);
if (status.is_ok != true) {
return undefined;
@ -57,10 +57,10 @@ function smbsrv_trees()
/* gather the results into a single array */
var i, count=0, ret = new Object();
for (i=0;i<io.results.length;i++) {
var trees = io.results[i].info.trees.trees;
var tcons = io.results[i].info.tcons.tcons;
var j;
for (j=0;j<trees.length;j++) {
ret[count] = trees[j];
for (j=0;j<tcons.length;j++) {
ret[count] = tcons[j];
count++;
}
}