mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
626bb8efb0
(This used to be commit 5a3d6ad0b7
)
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();
|
|
%>
|