Lines Matching defs:error

57 /** Macro for terminating the program on an unrecoverable error */
91 DBusError error;
96 dbus_error_init (&error);
98 props = libhal_device_get_all_properties (hal_ctx, udi, &error);
107 LIBHAL_FREE_DBUS_ERROR (&error);
181 DBusError error;
183 dbus_error_init (&error);
185 if (!libhal_device_exists (hal_ctx, udi, &error)) {
186 LIBHAL_FREE_DBUS_ERROR (&error);
255 DBusError error;
257 dbus_error_init (&error);
259 device_names = libhal_get_all_devices (hal_ctx, &num_devices, &error);
261 LIBHAL_FREE_DBUS_ERROR (&error);
274 device_names[i], "info.parent", &error);
276 if (dbus_error_is_set (&error)) {
277 /* Free the error (which include a dbus_error_init())
279 dbus_error_free (&error);
401 DBusError error;
403 dbus_error_init (&error);
405 type = libhal_device_get_property_type (hal_ctx, udi, key, &error);
409 str = libhal_device_get_property_string (hal_ctx, udi, key, &error);
415 dbus_int32_t value = libhal_device_get_property_int (hal_ctx, udi, key, &error);
422 dbus_uint64_t value = libhal_device_get_property_uint64 (hal_ctx, udi, key, &error);
429 libhal_device_get_property_double (hal_ctx, udi, key, &error));
433 libhal_device_get_property_bool (hal_ctx, udi, key, &error) ? "true" : "false");
445 strlist = libhal_device_get_property_strlist (hal_ctx, udi, key, &error);
464 if (dbus_error_is_set (&error))
465 dbus_error_free (&error);
576 DBusError error;
663 dbus_error_init (&error);
664 conn = dbus_bus_get (DBUS_BUS_SYSTEM, &error);
666 fprintf (stderr, "error: dbus_bus_get: %s: %s\n",
667 error.name, error.message);
668 LIBHAL_FREE_DBUS_ERROR (&error);
676 fprintf (stderr, "error: libhal_ctx_new\n");
680 fprintf (stderr, "error: libhal_ctx_set_dbus_connection: %s: %s\n",
681 error.name, error.message);
684 if (!libhal_ctx_init (hal_ctx, &error)) {
685 if (dbus_error_is_set(&error)) {
686 fprintf (stderr, "error: libhal_ctx_init: %s: %s\n", error.name, error.message);
687 LIBHAL_FREE_DBUS_ERROR (&error);
711 if ( libhal_device_property_watch_all (hal_ctx, &error) == FALSE) {
712 fprintf (stderr, "error: monitoring devicelist - libhal_device_property_watch_all: %s: %s\n",
713 error.name, error.message);
714 LIBHAL_FREE_DBUS_ERROR (&error);
722 if ( libhal_ctx_shutdown (hal_ctx, &error) == FALSE)
723 LIBHAL_FREE_DBUS_ERROR (&error);