diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-03-19 20:04:00 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-03-19 20:04:00 +0000 |
commit | fc191be1958b3d290e061b6af6f0f25ce27fcf1f (patch) | |
tree | 41a88dc4657ddbce905e21f0d4f1327abc015d93 | |
parent | e867e1dc937eedbaa3ac7f678f4703fab78d2d4e (diff) |
Work around the missing D-Bus system bus
-rw-r--r-- | network/hal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/network/hal.c b/network/hal.c index 79e2b6e5..658e5f8c 100644 --- a/network/hal.c +++ b/network/hal.c @@ -31,6 +31,7 @@ #include <hal/libhal.h> #include "logging.h" +#include "dbus.h" #include "hal.h" @@ -42,7 +43,10 @@ int hal_init(DBusConnection *conn) if (!hal_ctx) return -ENOMEM; + conn = init_dbus(NULL, NULL, NULL); + if (libhal_ctx_set_dbus_connection(hal_ctx, conn) == FALSE) { + error("Failed to connect HAL via system bus"); libhal_ctx_free(hal_ctx); hal_ctx = NULL; return -EIO; |