atspi_accessible_get_hyperlink (AtspiAccessible *accessible)
{
return (_atspi_accessible_is_a (accessible, atspi_interface_hyperlink) ?
- atspi_hyperlink_new (accessible->parent.app, accessible->parent.path) : NULL);
+ _atspi_hyperlink_new (accessible->parent.app, accessible->parent.path) : NULL);
}
/**
DBusHandlerResult _atspi_dbus_handle_DeviceEvent (DBusConnection *bus, DBusMessage *message, void *data);
gchar *_atspi_device_listener_get_path (AtspiDeviceListener *listener);
-
-DBusHandlerResult
-atspi_dbus_handle_DeviceEvent (DBusConnection *bus, DBusMessage *message, void *data);
#endif /* _ATSPI_DEVICE_LISTENER_H_ */
event->is_text = is_text;
}
-/*
- * atspi_dbus_handle_DeviceEvent: (skip)
- */
DBusHandlerResult
-atspi_dbus_handle_DeviceEvent (DBusConnection *bus, DBusMessage *message, void *data)
+_atspi_dbus_handle_DeviceEvent (DBusConnection *bus, DBusMessage *message, void *data)
{
const char *path = dbus_message_get_path (message);
int id;
void _atspi_send_event (AtspiEvent *e);
-DBusHandlerResult atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data);
+DBusHandlerResult _atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data);
#endif /* _ATSPI_EVENT_LISTENER_H_ */
}
DBusHandlerResult
-atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data)
+_atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data)
{
char *detail = NULL;
const char *category = dbus_message_get_interface (message);
}
AtspiHyperlink *
-atspi_hyperlink_new (AtspiApplication *app, const gchar *path)
+_atspi_hyperlink_new (AtspiApplication *app, const gchar *path)
{
AtspiHyperlink *hyperlink;
hyperlink = g_object_new (ATSPI_TYPE_HYPERLINK, NULL);
- g_return_val_if_fail (hyperlink != NULL, NULL);
-
hyperlink->parent.app = g_object_ref (app);
hyperlink->parent.path = g_strdup (path);
GType atspi_hyperlink_get_type (void);
AtspiHyperlink *
-atspi_hyperlink_new (AtspiApplication *app, const gchar *path);
+_atspi_hyperlink_new (AtspiApplication *app, const gchar *path);
gint atspi_hyperlink_get_n_anchors (AtspiHyperlink *obj, GError **error);
* be from the #ATSPIAtspiError enumeration. See #GError for information on
* error domains.
*/
-#define ATSPI_ERROR atspi_error_quark()
-GQuark atspi_error_quark (void);
+#define ATSPI_ERROR _atspi_error_quark()
+GQuark _atspi_error_quark (void);
/**
* AtspiError:
{
return g_object_ref (hyperlink);
}
- hyperlink = atspi_hyperlink_new (app, path);
- if (!hyperlink)
- return NULL;
+ hyperlink = _atspi_hyperlink_new (app, path);
g_hash_table_insert (app->hash, g_strdup (hyperlink->parent.path), hyperlink);
/* TODO: This should be a weak ref */
g_object_ref (hyperlink); /* for the hash */
if (type == DBUS_MESSAGE_TYPE_SIGNAL &&
!strncmp (interface, "org.a11y.atspi.Event.", 21))
{
- atspi_dbus_handle_event (closure->bus, closure->message, closure->data);
+ _atspi_dbus_handle_event (closure->bus, closure->message, closure->data);
}
if (dbus_message_is_method_call (closure->message, atspi_interface_device_event_listener, "NotifyEvent"))
{
- atspi_dbus_handle_DeviceEvent (closure->bus,
+ _atspi_dbus_handle_DeviceEvent (closure->bus,
closure->message, closure->data);
}
if (dbus_message_is_signal (closure->message, atspi_interface_cache, "AddAccessible"))
}
GQuark
-atspi_error_quark (void)
+_atspi_error_quark (void)
{
return g_quark_from_static_string ("atspi_error");
}