:right-sidebar: True DBusAnnotationInfo =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.26 .. class:: DBusAnnotationInfo(*args, **kwargs) :no-contents-entry: :Constructors: :: DBusAnnotationInfo() Methods ------- .. rst-class:: interim-class .. class:: DBusAnnotationInfo :no-index: .. method:: lookup(annotations: ~typing.Sequence[~gi.repository.Gio.DBusAnnotationInfo] | None, name: str) -> str | None Looks up the value of an annotation. The cost of this function is O(n) in number of annotations. .. versionadded:: 2.26 :param annotations: A :const:`None`-terminated array of annotations or :const:`None`. :param name: The name of the annotation to look up. Fields ------ .. rst-class:: interim-class .. class:: DBusAnnotationInfo :no-index: .. attribute:: annotations A pointer to a :const:`None`-terminated array of pointers to :obj:`~gi.repository.Gio.DBusAnnotationInfo` structures or :const:`None` if there are no annotations. .. attribute:: key The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated". .. attribute:: ref_count The reference count or -1 if statically allocated. .. attribute:: value The value of the annotation.