3.1 <GDBusAnnotationInfo>

Structure: <GDBusAnnotationInfo>

Information about an annotation.

Fields

ref-count

The reference count or -1 if statically allocated.

key

The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated".

value

The value of the annotation.

annotations

A pointer to a #f-terminated array of pointers to <GDBusAnnotationInfo> structures or #f if there are no annotations.

Procedures

Procedure: dbus-annotation-info:lookup annotations name ⇒ %return

Looks up the value of an annotation.

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

annotations

Passed: a list or vector, each a <GDBusAnnotationInfo>, or #f.

A #f-terminated array of annotations or #f.

name

Passed: a string.

The name of the annotation to look up.

%return

Returned: a string, or #f.

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

Method: dbus-annotation-info:ref self ⇒ %return
Method: ref self ⇒ %return

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

self

Passed: a <GDBusAnnotationInfo>.

A <GDBusNodeInfo>

%return

Returned: a <GDBusAnnotationInfo>.

The same self.

Method: dbus-annotation-info:unref self
Method: unref self

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.

self

Passed: a <GDBusAnnotationInfo>.

A <GDBusAnnotationInfo>.