8 #ifndef __WVISTREAMLIST_H
9 #define __WVISTREAMLIST_H
14 DeclareWvList2(WvIStreamListBase,
IWvStream);
25 virtual bool isok()
const;
31 { sure_thing.unlink(data); WvIStreamListBase::unlink(data); }
36 WvIStreamListBase::add_after(after, data, autofree,
id);
38 void add(
IWvStream *data,
bool autofree,
const char *
id)
40 WvIStreamListBase::add(data, autofree,
id);
42 void prepend(
IWvStream *data,
bool autofree,
const char *
id)
44 WvIStreamListBase::prepend(data, autofree,
id);
52 WvIStreamListBase sure_thing;
67 static void onfork(pid_t p);
71 void append(
IWvStream *s,
bool auto_free,
const char *
id)
73 if (s->wsname() == NULL)
75 WvIStreamListBase::append(s, auto_free,
id);
77 void append(
IWvStream *s,
bool auto_free, WVSTRING_FORMAT_DECL)
79 if (s->wsname() == NULL)
80 s->set_wsname(
WvString(WVSTRING_FORMAT_CALL));
81 WvIStreamListBase::append(s, auto_free, s->wsname());
85 const char *wstype()
const {
return "WvIStreamList"; }
88 static void add_debugger_commands();
90 static WvString debugger_globallist_run_cb(WvStringParm cmd,
92 WvStreamsDebugger::ResultCallback result_cb,
void *);
95 #endif // __WVISTREAMLIST_H