From d1e09e2e6f9db62bbab84abb53e23ee73764178a Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sun, 31 Dec 2006 20:12:12 +0000 Subject: r20446: rename swat directory to swat.obsolete; keeping it around since there is lots of useful info in it. (This used to be commit 5f9f72a9cfab80561b23284001b67c4ea961757b) --- swat.obsolete/scripting/general_calls.esp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 swat.obsolete/scripting/general_calls.esp (limited to 'swat.obsolete/scripting/general_calls.esp') diff --git a/swat.obsolete/scripting/general_calls.esp b/swat.obsolete/scripting/general_calls.esp new file mode 100644 index 0000000000..f17c43205a --- /dev/null +++ b/swat.obsolete/scripting/general_calls.esp @@ -0,0 +1,25 @@ +<% +/* + used for general purpose calls +*/ +libinclude("server_call.js"); + +/* register a call for clients to make */ +var call = servCallObj(); + +/* + a remote printf, for displaying stuff on smbd stdout +*/ +function srv_printf() +{ + var s = string_init(); + print(s.vsprintf(arguments)); + return undefined; +} + +/* add some basic calls */ +call.add('srv_printf', srv_printf); + +/* run the function that was asked for */ +call.run(); +%> -- cgit