*/
#include <stdlib.h> /* for malloc */
-#include "spi-stateset.h"
+#include "common/spi-stateset.h"
#include <cspi/spi-private.h>
static const char *role_names [] =
AccessibleStateSet *
Accessible_getStateSet (Accessible *obj)
{
- GArray *state_bitflags;
- AccessibleStateSet *retval;
-
- cspi_return_val_if_fail (obj != NULL, NULL);
-
- cspi_dbus_call (obj, spi_interface_accessible, "getStateSet", NULL, "=>au", &state_bitflags);
- cspi_return_val_if_ev ("getState", NULL);
-
- retval = spi_state_set_cache_new (state_bitflags);
-
- g_array_free (state_bitflags, TRUE);
-
- return retval;
+ return obj->states;
}
/**
obj, spi_interface_collection);
#else
g_warning ("Collections not implemented");
+ return NULL;
#endif
}
obj, spi_interface_match_rule);
#else
g_warning ("Match rules not supported");
+ return NULL;
#endif
}
obj, spi_interface_streamable_content);
#else
g_warning ("Streamable content not supported");
+ return NULL;
#endif
}