mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
7e671ae37f
metze
(This used to be commit bf852a3dbe
)
26 lines
424 B
Plaintext
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();
|
|
%>
|