diff options
| -rw-r--r-- | network/hal.c | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/network/hal.c b/network/hal.c index 658e5f8c..a99dcd9e 100644 --- a/network/hal.c +++ b/network/hal.c @@ -25,6 +25,7 @@  #include <config.h>  #endif +#include <stdio.h>  #include <errno.h>  #include <dbus/dbus.h> @@ -39,6 +40,8 @@ static LibHalContext *hal_ctx = NULL;  int hal_init(DBusConnection *conn)  { +	char str[64], *udi; +  	hal_ctx = libhal_ctx_new();  	if (!hal_ctx)  		return -ENOMEM; @@ -59,6 +62,14 @@ int hal_init(DBusConnection *conn)  		return -EIO;  	} +	udi = libhal_new_device(hal_ctx, NULL); + +	sprintf(str, "/org/freedesktop/Hal/devices/bluetooth_pan"); + +	if (libhal_device_commit_to_gdl(hal_ctx, udi, str, NULL) == FALSE) { +		error("Failed to add new HAL device"); +	} +  	return 0;  } | 
