Plan 9 from Bell Labs’s /usr/web/sources/contrib/nemo/octopus/port/mero/merotree.m

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


# The glue merging panels and files.
# This provides an interface for handling panels that maintains and
# adjusts the file tree according to the panels.
# Not a real module, just operations on panels and their trees.

Merotree: module {

	PATH: con "/dis/o/merotree.dis";

	init:			fn(d: Dat): chan of ref Styxservers->Navop;
	pcreate:		fn(dp: ref Panel, dr: ref Repl, name: string): ref Panel;
	premove:		fn(p: ref Panel, rr: ref Repl, depth: int);
	pchanged:	fn(p: ref Panel, data: int, ctl: int);
	moveto:		fn(p: ref Panel, r: ref Repl, path: string, pos: int): string;
	copyto:		fn(p: ref Panel, r: ref Repl, path: string, pos: int): string;
	chpos:		fn(p: ref Panel, r: ref Repl, pos: int);
	mkcol:		fn(p: ref Panel, r: ref Repl);
	mktree:		fn();
	dump:		fn();
};

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.