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:

Returns:

The value or None if not found. Do not free, it is owned by annotations.

Return type:

str or None

Looks up the value of an annotation.

The cost of this function is O(n) in number of annotations.

New in version 2.26.

ref()[source]

Returns:

The same self.

Return type:

Gio.DBusAnnotationInfo

If self is statically allocated does nothing. Otherwise increases the reference count.

New in version 2.26.

unref()[source]

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.