summaryrefslogtreecommitdiff
path: root/webapps/scripting/general_calls.esp
blob: f17c43205ab1456320d4b4b6c6838fabfda61547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
%>