summaryrefslogtreecommitdiff
path: root/module/factotum.m
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-01-16 01:19:38 +0000
committerCharles.Forsyth <devnull@localhost>2008-01-16 01:19:38 +0000
commitca1042d3d05e5e9b2b5094b04197c96ec3b34bfe (patch)
tree6a2cb733509e5a3692efa952e1c3bc5503c25355 /module/factotum.m
parente84ac69296d2bd901d9d5dba59a1873fc6fb7cc1 (diff)
20080116-0125
Diffstat (limited to 'module/factotum.m')
-rw-r--r--module/factotum.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/module/factotum.m b/module/factotum.m
index 6dd98d93..85165ebd 100644
--- a/module/factotum.m
+++ b/module/factotum.m
@@ -33,4 +33,23 @@ Factotum: module
dump: fn(a: array of byte): string;
setdebug: fn(i: int);
+
+ Aattr, Aval, Aquery: con iota;
+
+ Attr: adt {
+ tag: int;
+ name: string;
+ val: string;
+
+ text: fn(a: self ref Attr): string;
+ };
+
+ parseattrs: fn(s: string): list of ref Attr;
+ copyattrs: fn(l: list of ref Attr): list of ref Attr;
+ delattr: fn(l: list of ref Attr, n: string): list of ref Attr;
+ takeattrs: fn(l: list of ref Attr, names: list of string): list of ref Attr;
+ findattr: fn(l: list of ref Attr, n: string): ref Attr;
+ findattrval: fn(l: list of ref Attr, n: string): string;
+ publicattrs: fn(l: list of ref Attr): list of ref Attr;
+ attrtext: fn(l: list of ref Attr): string;
};