8 #include "uniconfroot.h"
9 #include "wvlinkerhack.h"
11 WV_LINK_TO(UniGenHack);
18 mounts.
add_callback(
this, wv::bind(&UniConfRoot::gen_callback,
this,
27 mounts.
mount(
"/", moniker, refresh);
28 mounts.
add_callback(
this, wv::bind(&UniConfRoot::gen_callback,
this,
38 mounts.
add_callback(
this, wv::bind(&UniConfRoot::gen_callback,
this,
49 for (i.rewind(); i.next(); )
57 if (!w->watches.isempty())
61 fprintf(stderr,
"Remaining watch: '%s' (%zd)\n",
81 assert(!watchout(&watchroot));
88 const UniConfCallback &callback,
bool recurse)
95 for (i.rewind(); i.next(); )
102 node->watches.append(w,
true);
112 UniWatchInfoList::Iter i(node->watches);
113 for (i.rewind(); i.next(); )
116 if (i->cookie == cookie && i->recurse == recurse)
145 UniWatchInfoList::Iter i(node->watches);
146 for (i.rewind(); i.next(); )
148 if (!i->recursive() && segleft > 0)
159 for (i.rewind(); i.next(); )
166 deletioncheck(w, subkey);
173 while (node != & watchroot && ! node->
isessential())
189 check(node, key, segs);
192 for (
int s = 0; s < segs; )
198 check(node, key, segs - s);
203 deletioncheck(node, key);