|
Lines 506-512
connect_and_register(DBusConnection *con
Link Here
|
| 506 |
|
506 |
|
| 507 |
devices = libhal_find_device_by_capability(info->hal_ctx, "input", |
507 |
devices = libhal_find_device_by_capability(info->hal_ctx, "input", |
| 508 |
&num_devices, &error); |
508 |
&num_devices, &error); |
|
|
509 |
if (error) { |
| 509 |
/* FIXME: Get default devices if error is set. */ |
510 |
/* FIXME: Get default devices if error is set. */ |
|
|
511 |
LogMessage(X_ERROR, "config/hal: couldn't find input device: %s (%s)\n", |
| 512 |
error.name, error.message); |
| 513 |
goto out_ctx2; |
| 514 |
} |
| 510 |
for (i = 0; i < num_devices; i++) |
515 |
for (i = 0; i < num_devices; i++) |
| 511 |
device_added(info->hal_ctx, devices[i]); |
516 |
device_added(info->hal_ctx, devices[i]); |
| 512 |
libhal_free_string_array(devices); |
517 |
libhal_free_string_array(devices); |