DBusAnnotationInfo#
Added in version 2.26.
- class DBusAnnotationInfo(*args, **kwargs)#
Information about an annotation.
Methods#
- class DBusAnnotationInfo
- classmethod lookup(annotations: list[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.
Added in version 2.26.
- Parameters:
annotations – A
None-terminated array of annotations orNone.name – The name of the annotation to look up.
Fields#
- class DBusAnnotationInfo
- annotations#
A pointer to a
None-terminated array of pointers toDBusAnnotationInfostructures orNoneif there are no annotations.
- key#
The name of the annotation, e.g. “org.freedesktop.DBus.Deprecated”.
- ref_count#
The reference count or -1 if statically allocated.
- value#
The value of the annotation.