Lines Matching defs:error

96  "success this program exits with exit code 0. On error, the program exits\n"
121 DBusError error;
223 dbus_error_init (&error);
225 fprintf (stderr, "error: libhal_ctx_new\n");
228 if (!libhal_ctx_set_dbus_connection (hal_ctx, dbus_bus_get (DBUS_BUS_SYSTEM, &error))) {
229 fprintf (stderr, "error: libhal_ctx_set_dbus_connection: %s: %s\n", error.name, error.message);
230 LIBHAL_FREE_DBUS_ERROR (&error);
233 if (!libhal_ctx_init (hal_ctx, &error)) {
234 if (dbus_error_is_set(&error)) {
235 fprintf (stderr, "error: libhal_ctx_init: %s: %s\n", error.name, error.message);
236 LIBHAL_FREE_DBUS_ERROR (&error);
244 udi_exists = libhal_device_exists (hal_ctx, udi, &error);
246 fprintf (stderr, "error: UDI %s does not exist\n", udi);
249 if (dbus_error_is_set(&error)) {
250 fprintf (stderr, "error: libhal_device_exists: %s: %s\n", error.name, error.message);
251 dbus_error_free (&error);
256 rc = libhal_device_remove_property (hal_ctx, udi, key, &error);
258 if (dbus_error_is_set(&error)) {
259 fprintf (stderr, "error: libhal_device_remove_property: %s: %s\n", error.name, error.message);
260 dbus_error_free (&error);
262 fprintf (stderr, "error: libhal_device_remove_property: invalid params.\n");
269 rc = libhal_device_set_property_string (hal_ctx, udi, key, str_value, &error);
272 rc = libhal_device_set_property_int (hal_ctx, udi, key, int_value, &error);
275 rc = libhal_device_set_property_uint64 (hal_ctx, udi, key, uint64_value, &error);
278 rc = libhal_device_set_property_double (hal_ctx, udi, key, double_value, &error);
281 rc = libhal_device_set_property_bool (hal_ctx, udi, key, bool_value, &error);
284 rc = libhal_device_property_strlist_prepend (hal_ctx, udi, key, str_value, &error);
287 rc = libhal_device_property_strlist_append (hal_ctx, udi, key, str_value, &error);
290 rc = libhal_device_property_strlist_remove (hal_ctx, udi, key, str_value, &error);
294 if (dbus_error_is_set(&error)) {
295 fprintf (stderr, "error: libhal_device_set_property: %s: %s\n", error.name, error.message);
296 dbus_error_free (&error);
298 fprintf (stderr, "error: libhal_device_set_property: invalid params.\n");