xref: /inferno-os/appl/collab/srvmgr.m (revision 37da2899f40661e3e9631e497da8dc59b971cbd0)
1Srvmgr: module
2{
3	PATH:	con "/dis/collab/srvmgr.dis";
4	Srvreq: adt {
5		sname: string;
6		id: string;
7		pick {
8		Acquire =>
9			uname: string;
10			reply: chan of Srvreply;
11		Release =>
12		}
13	};
14
15	Srvreply: type (
16		string,		# error
17		string,		# root path
18		ref Sys->FD	# styx fd
19	);
20
21	init: fn(cfg: string): (string, chan of ref Srvreq);
22};
23