summaryrefslogtreecommitdiff
path: root/sys/lib/plumb
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2013-12-21 18:04:14 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2013-12-21 18:04:14 +0100
commit48d2f14f803354951c09e1ff04aeab4bed16bf38 (patch)
tree3e0d8dcd4d70e4e7a03ceef913e717e6b92aeec9 /sys/lib/plumb
parent803bc88a5f3f5835bc57fdeb8f2f96c9a8ce5ab3 (diff)
page: implement bookmarks (thanks trav_ for starting it)
add new functions pageaddr() that returns a string describing the page to be loaded. it is in the form of: /path/to/file!pagename!subpage!.... one can jump to such a page by calling trywalk(name, addr) where name and addr get concatinated with ! to form a page address and then the currently loaded pages are walked up to the nearest page which is then returned. (or nil when not found). the remaining address will be set in the global pagewalk variable. once pages get loaded (asynchronously), pagewalk1() gets called again on addpage() and continues the walking up to the last page. new program flag -j <addr> was added to jump to a page on startup. page address (without filename) can also be supplied in plumb message with the "addr" attribute.
Diffstat (limited to 'sys/lib/plumb')
0 files changed, 0 insertions, 0 deletions