Gio.DBusAnnotationInfo¶
Fields¶
| Name | Type | Access | Description |
|---|---|---|---|
| annotations | [Gio.DBusAnnotationInfo] |
r/w | A pointer to a None-terminated array of pointers to Gio.DBusAnnotationInfo structures or None if there are no annotations. |
| key | str |
r/w | The name of the annotation, e.g. “org.freedesktop.DBus.Deprecated”. |
| ref_count | int |
r/w | The reference count or -1 if statically allocated. |
| value | str |
r/w | The value of the annotation. |
Details¶
-
class
Gio.DBusAnnotationInfo¶ Information about an annotation.
New in version 2.26.
-
classmethod
lookup(annotations, name)[source]¶ Parameters: - annotations ([
Gio.DBusAnnotationInfo] orNone) – ANone-terminated array of annotations orNone. - name (
str) – The name of the annotation to look up.
Returns: The value or
Noneif not found. Do not free, it is owned by annotations.Return type: Looks up the value of an annotation.
The cost of this function is O(n) in number of annotations.
New in version 2.26.
- annotations ([
-
ref()[source]¶ Returns: The same self. Return type: Gio.DBusAnnotationInfoIf self is statically allocated does nothing. Otherwise increases the reference count.
New in version 2.26.
-
classmethod