Convert some more files to GPLv3.
[jra/samba/.git] / source4 / scripting / libjs / management.js
index 1258368e9035f8a55db7d0d4b5fd058168ddd998..4a43275156702559c39e0940db76bb15cbe048a2 100644 (file)
@@ -1,7 +1,7 @@
 /*
        backend code for Samba4 management
        Copyright Andrew Tridgell 2005
-       Released under the GNU GPL v2 or later
+       Released under the GNU GPL version 3 or later
 */
 
 
@@ -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++;
                }
        }