[maemo-developers] HAL context initializing failure
From: Pallavi Kandhare pallavi.kandhare at yahoo.comDate: Tue May 18 14:18:14 EEST 2010
- Previous message: Getting the siz of the Memory Card
- Next message: HAL context initializing failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Please can anybody tell me why am I getting this error in foll code?
Your help is appreciated
Code:
DBusConnection *connection;
DBusError error;
LibHalContext *ctx;
dbus_error_init(&error);
if((connection = dbus_bus_get(DBUS_BUS_SYSTEM,&error)) == NULL)
{
printf("Error %s\n",error.message);
return 1;
}
if ( dbus_error_is_set(&error) )
{
printf("Unable to connect to DBus: %s\n",error.message);
return 1;
}
if((ctx = libhal_ctx_new())==NULL)
{
printf("Error %s\n",error.message);
return 1;
}
if ( !libhal_ctx_set_dbus_connection(ctx, connection) )
{
printf("Error %s\n",error.message);
return 1;
}
if ( !libhal_ctx_init(ctx, &error) )
{
printf("Hal context initializing failure %s\n",error.message);
return 1;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100518/2bfc3b0c/attachment.htm>
- Previous message: Getting the siz of the Memory Card
- Next message: HAL context initializing failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
