Lines Matching defs:error

72  "On error, the program exits with an exit code different from 0\n"
93 DBusError error;
156 dbus_error_init (&error);
158 fprintf (stderr, "error: libhal_ctx_new\n");
161 if (!libhal_ctx_set_dbus_connection (hal_ctx, dbus_bus_get (DBUS_BUS_SYSTEM, &error))) {
162 fprintf (stderr, "error: libhal_ctx_set_dbus_connection: %s: %s\n", error.name, error.message);
163 LIBHAL_FREE_DBUS_ERROR (&error);
166 if (!libhal_ctx_init (hal_ctx, &error)) {
167 if (dbus_error_is_set(&error)) {
168 fprintf (stderr, "error: libhal_ctx_init: %s: %s\n", error.name, error.message);
169 dbus_error_free (&error);
177 udi_exists = libhal_device_exists (hal_ctx, udi, &error);
179 fprintf (stderr, "error: UDI %s does not exist\n", udi);
182 if (dbus_error_is_set(&error)) {
183 fprintf (stderr, "error: libhal_device_exists: %s: %s\n", error.name, error.message);
184 dbus_error_free (&error);
189 type = libhal_device_get_property_type (hal_ctx, udi, key, &error);
191 if (dbus_error_is_set(&error)) {
192 fprintf (stderr, "error: libhal_device_get_property_type: %s: %s\n", error.name, error.message);
193 dbus_error_free (&error);
195 fprintf (stderr, "error: libhal_device_get_property_type: invalid params.\n");
202 str = libhal_device_get_property_string (hal_ctx, udi, key, &error);
213 libhal_device_get_property_int (hal_ctx, udi, key, &error));
220 (long long unsigned int) libhal_device_get_property_uint64 (hal_ctx, udi, key, &error));
226 libhal_device_get_property_double (hal_ctx, udi, key, &error));
232 libhal_device_get_property_bool (hal_ctx, udi, key, &error) ? "true" : "false");
240 if ((strlist = libhal_device_get_property_strlist (hal_ctx, udi, key, &error)) != NULL) {
256 if (dbus_error_is_set (&error)) {
257 fprintf (stderr, "error: %s: %s\n", error.name, error.message);
258 dbus_error_free (&error);