Lines Matching defs:error

102 	DBusError error;
131 dbus_error_init(&error);
133 if (!(conn = dbus_bus_get(DBUS_BUS_SYSTEM, &error))) {
134 fprintf(stderr, "error: dbus_bus_get: %s: %s\n", error.name, error.message);
135 LIBHAL_FREE_DBUS_ERROR (&error);
142 if (!libhal_ctx_init(hal_ctx, &error)) {
143 if (dbus_error_is_set(&error)) {
144 fprintf (stderr, "error: libhal_ctx_init: %s: %s\n", error.name, error.message);
145 LIBHAL_FREE_DBUS_ERROR (&error);
162 libhal_ctx_shutdown(hal_ctx, &error);
165 dbus_error_free(&error);
193 DBusError error;
210 dbus_error_init(&error);
213 if (!(device_names = libhal_get_all_devices(hal_ctx, &num_devices, &error))) {
215 LIBHAL_FREE_DBUS_ERROR (&error);
229 if (!(props = libhal_device_get_all_properties(hal_ctx, device_names[i], &error))) {
230 fprintf(stderr, "%s: %s\n", error.name, error.message);
231 dbus_error_init(&error);
298 dbus_error_free(&error);
306 DBusError error;
323 dbus_error_init(&error);
326 if (!libhal_remove_device(hal_ctx, udi, &error)) {
327 fprintf(stderr, "%s: %s\n", error.name, error.message);
328 LIBHAL_FREE_DBUS_ERROR (&error);
342 DBusError error;
365 dbus_error_init(&error);
368 dev_exists = libhal_device_exists(hal_ctx, udi, &error);
373 new_dev.real_udi = libhal_new_device(hal_ctx, &error);
376 fprintf(stderr, "%s: %s\n", error.name, error.message);
377 LIBHAL_FREE_DBUS_ERROR (&error);
397 if (!libhal_device_commit_to_gdl(hal_ctx, new_dev.real_udi, new_dev.udi, &error)) {
398 fprintf(stderr, "%s: %s\n", error.name, error.message);
399 LIBHAL_FREE_DBUS_ERROR (&error);
547 DBusError error;
552 dbus_error_init(&error);
560 old_type = libhal_device_get_property_type(hal_ctx, nd->real_udi, p->key, &error);
561 dbus_error_init(&error);
565 if (!libhal_device_remove_property(hal_ctx, nd->real_udi, p->key, &error)) {
566 fprintf(stderr, "%s: %s\n", error.name, error.message);
567 LIBHAL_FREE_DBUS_ERROR (&error);
576 if (!libhal_device_set_property_bool(hal_ctx, nd->real_udi, p->key, p->v.bool_value, &error)) {
577 fprintf(stderr, "%s: %s\n", error.name, error.message);
578 LIBHAL_FREE_DBUS_ERROR (&error);
583 if (!libhal_device_set_property_int(hal_ctx, nd->real_udi, p->key, p->v.int_value, &error)) {
584 fprintf(stderr, "%s: %s\n", error.name, error.message);
585 LIBHAL_FREE_DBUS_ERROR (&error);
590 if (!libhal_device_set_property_uint64(hal_ctx, nd->real_udi, p->key, p->v.uint64_value, &error)) {
591 fprintf(stderr, "%s: %s\n", error.name, error.message);
592 LIBHAL_FREE_DBUS_ERROR (&error);
597 if (!libhal_device_set_property_double(hal_ctx, nd->real_udi, p->key, p->v.double_value, &error)) {
598 fprintf(stderr, "%s: %s\n", error.name, error.message);
599 LIBHAL_FREE_DBUS_ERROR (&error);
605 if (!libhal_device_set_property_string(hal_ctx, nd->real_udi, p->key, p->v.str_value, &error)) {
606 fprintf(stderr, "%s: %s\n", error.name, error.message);
607 LIBHAL_FREE_DBUS_ERROR (&error);
613 if (!libhal_device_property_strlist_append(hal_ctx, nd->real_udi, p->key, *s, &error)) {
614 fprintf(stderr, "%s: %s\n", error.name, error.message);
615 LIBHAL_FREE_DBUS_ERROR (&error);