From f9ff72cbda6b4e59448fd79ef9e12f264d48015f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Jul 2005 00:23:57 +0000 Subject: r8298: - started building a library of js routines in scripting/libjs/ - switched the existing test programs over to using the library - added install of js lib (This used to be commit 2a444dedbe44347268affc6458196f93ca7d372b) --- swat/scripting/samr.js | 167 ------------------------------------------------- 1 file changed, 167 deletions(-) delete mode 100644 swat/scripting/samr.js (limited to 'swat') diff --git a/swat/scripting/samr.js b/swat/scripting/samr.js deleted file mode 100644 index 474e704550..0000000000 --- a/swat/scripting/samr.js +++ /dev/null @@ -1,167 +0,0 @@ -/* - samr rpc utility functions -*/ - -/* - helper function to setup a rpc io object, ready for input -*/ -function irpcObj() -{ - var o = new Object(); - o.input = new Object(); - return o; -} - -/* - check that a status result is OK -*/ -function check_status_ok(status) -{ - if (status.is_ok != true) { - printVars(status); - } - assert(status.is_ok == true); -} - -/* - return a list of names and indexes from a samArray -*/ -function samArray(output) -{ - var list = new Array(output.num_entries); - if (output.sam == NULL) { - return list; - } - var entries = output.sam.entries; - for (i=0;i