diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-09-06 16:48:27 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-09-06 16:48:27 +0200 |
commit | 9add5b765f713b78b77736214b17da9d90645a01 (patch) | |
tree | b0b34ee3d5a38eeedb715835aec11106fc79fbd4 /sys/src/libaml/amlmapio.c | |
parent | 95fac5e87304a50f7e93de94f0f682ec06565006 (diff) |
libaml: new io interface, add amlnew()/amltake()/amldrop(), late binding names, FindSetLeftBit/FindSetRightBit
new io interface was added. user defines amlmapio() and amlunmapio() functions
that will fill out Amlio structure with function pointers to read/write
routines for a particular region.
amlnew() function added allowing the creation of aml objects like buffers
or packages. these can be passed to amleval() with b, p or * format.
amltake()/amldrop() exclude an aml object from garbage collection.
on load, names are not always resolvable until the whole table is loaded.
for this, we create n objects that are just name strings. after load, we
recursively traverse the namespace and resolve them (see fixnames()).
the FindSetLeftBit and FindSetRightBit opcodes got implemened.
Diffstat (limited to 'sys/src/libaml/amlmapio.c')
-rw-r--r-- | sys/src/libaml/amlmapio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/src/libaml/amlmapio.c b/sys/src/libaml/amlmapio.c new file mode 100644 index 000000000..f273a364a --- /dev/null +++ b/sys/src/libaml/amlmapio.c @@ -0,0 +1,9 @@ +#include <u.h> +#include <libc.h> +#include <aml.h> + +int +amlmapio(Amlio*) +{ + return -1; +} |