Gio.DBusAnnotationInfo¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
annotations |
r/w |
A pointer to a |
|
key |
r/w |
The name of the annotation, e.g. “org.freedesktop.DBus.Deprecated”. |
|
ref_count |
r/w |
The reference count or -1 if statically allocated. |
|
value |
r/w |
The value of the annotation. |
Methods¶
class |
|
|
|
|
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
None
if 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.