Gio.DBusAnnotationInfo - Structures - Gio 2.0 (original) (raw)
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. |
Methods¶
class | lookup (annotations, name) |
---|---|
ref () | |
unref () |
Details¶
class Gio.DBusAnnotationInfo¶
Information about an annotation.
New in version 2.26.
classmethod lookup(annotations, name)[source]¶
Parameters:
- annotations ([Gio.DBusAnnotationInfo] or None) – A None-terminated array of annotations or None.
- 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.
Returns:
The same self.
Return type:
If self is statically allocated does nothing. Otherwise increases the reference count.
New in version 2.26.
If self is statically allocated, does nothing. Otherwise decreases the reference count of self. When its reference count drops to 0, the memory used is freed.
New in version 2.26.