moved the D-Bus component into its own thread.

various API changes and fixes.


git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@7852 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
pdurante 2006-10-01 13:37:47 +00:00
parent 42ea920aeb
commit 24637001ce
9 changed files with 77 additions and 38 deletions

View file

@ -28,20 +28,24 @@
#include <cstdio>
#include <stdlib.h>
static int debug_env = -1;
static void _debug_log_default(const char* format, ...)
{
#ifdef DEBUG
if(getenv("DBUSXX_VERBOSE"))
if(debug_env < 0) debug_env = getenv("DBUSXX_VERBOSE") ? 1 : 0;
if(debug_env)
{
va_list args;
va_start(args, format);
va_list args;
va_start(args, format);
fprintf(stderr, "dbus-c++: ");
vfprintf(stderr, format, args);
fprintf(stderr, "\n");
fprintf(stderr, "dbus-c++: ");
vfprintf(stderr, format, args);
fprintf(stderr, "\n");
va_end(args);
va_end(args);
}
#endif//DEBUG