1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/swat2/scripting/general_calls.esp
Stefan Metzmacher 7e671ae37f rename swat => swat2, so that we don't conflict with samba3
metze
(This used to be commit bf852a3dbe)
2008-09-12 08:51:07 +02:00

26 lines
424 B
Plaintext

<%
/*
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();
%>