summaryrefslogtreecommitdiff
path: root/atspi/atspi-document.h
diff options
context:
space:
mode:
authorColomban Wendling <cwendling@hypra.fr>2023-04-25 12:22:41 +0200
committerColomban Wendling <cwendling@hypra.fr>2023-04-25 12:22:41 +0200
commit3ba50db92c23518fb5c0b713e58a8ca21e7994e0 (patch)
tree9507c19cac86a64c3e5af38c5f684f8757252b10 /atspi/atspi-document.h
parent758c5830865c1c1b1768cdec099baa140a6c1a25 (diff)
downloadat-spi2-core-3ba50db92c23518fb5c0b713e58a8ca21e7994e0.tar.gz
Use const attribute name input in atspi_*_get*_attribute_value()
There is no point in having them mutable, and makes the API look more awkward and harder to use than it actually is.
Diffstat (limited to 'atspi/atspi-document.h')
-rw-r--r--atspi/atspi-document.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/atspi/atspi-document.h b/atspi/atspi-document.h
index 5dd228c8..653aca3d 100644
--- a/atspi/atspi-document.h
+++ b/atspi/atspi-document.h
@@ -48,10 +48,10 @@ struct _AtspiDocument
gchar *atspi_document_get_locale (AtspiDocument *obj, GError **error);
#ifndef ATSPI_DISABLE_DEPRECATED
-gchar *atspi_document_get_attribute_value (AtspiDocument *obj, gchar *attribute, GError **error);
+gchar *atspi_document_get_attribute_value (AtspiDocument *obj, const gchar *attribute, GError **error);
#endif
-gchar *atspi_document_get_document_attribute_value (AtspiDocument *obj, gchar *attribute, GError **error);
+gchar *atspi_document_get_document_attribute_value (AtspiDocument *obj, const gchar *attribute, GError **error);
#ifndef ATSPI_DISABLE_DEPRECATED
GHashTable *atspi_document_get_attributes (AtspiDocument *obj, GError **error);