Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (42 sloc) 0.954 kB
#include "wvdbusserver.h"
#include "wvlogstream.h"
#include "wvassert.h"
#include "wvlinkerhack.h"
WV_LINK_TO(WvSSLStream);
WV_LINK_TO(WvTCPListener);
WV_LINK_TO(WvGzipStream);
#ifndef __WIN32
WV_LINK_TO(WvUnixListener);
#endif
static WvLogStream *logr;
static WvDBusServer *s;
extern "C" void wvdbusd_start()
{
wvassert(!s);
wverr->addRef();
logr = new WvLogStream(wverr, WvLog::Info);
s = new WvDBusServer();
}
extern "C" void wvdbusd_stop()
{
WVRELEASE(s);
delete logr;
s = NULL;
logr = NULL;
}
extern "C" void wvdbusd_listen(const char *moniker)
{
s->listen(moniker);
}
extern "C" void wvdbusd_runonce()
{
// FIXME: Should use runonce(-1) here, but then the .net thread we
// run in won't be able to get interrupted to check want_to_die.
// Ideally we'd hand them a socket or something that they can ping us
// with.
s->runonce(1000);
}
extern "C" int wvdbusd_check()
{
return 42;
}
Jump to Line
Something went wrong with that request. Please try again.