Hav spi_throw_exception take a const char * for an error prefix
const char *interface_name);
AccessibleRole cspi_role_from_spi_role (Accessibility_Role role);
void cspi_streams_close_all (void);
-gboolean cspi_exception_throw (DBusError *error, char *desc_prefix);
+gboolean cspi_exception_throw (DBusError *error, const char *desc_prefix);
AccessibleAttributeSet
*_cspi_attribute_set_from_sequence (const GArray *seq);
}
gboolean
-cspi_exception_throw (DBusError *error, char *desc_prefix)
+cspi_exception_throw (DBusError *error, const char *desc_prefix)
{
SPIExceptionHandler *handler = NULL;
SPIException ex;
return FALSE;
}
-SPIBoolean cspi_check_ev (const char *error_string)
+SPIBoolean
+cspi_check_ev (const char *error_string)
{
- // TODO: Store exception
- return FALSE;
+ if (dbus_error_is_set (&exception))
+ {
+ cspi_exception_throw (&exception, error_string);
+ return FALSE;
+ }
+ return TRUE;
}
Accessible *