Skip to content

Gio.DBusAnnotationInfo

record (struct)

Information about an annotation.

Methods

ref

def ref(self) -> DBusAnnotationInfo

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

unref

def unref(self) -> None

If info is statically allocated, does nothing. Otherwise decreases the reference count of info. When its reference count drops to 0, the memory used is freed.

Static functions

lookup

@staticmethod
def lookup(annotations: list[DBusAnnotationInfo] | None, name: str) -> str | None

Looks up the value of an annotation.

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

Parameters:

  • annotations — A None-terminated array of annotations or None.
  • name — The name of the annotation to look up.

Properties

ref_count

ref_count: int  # read/write

key

key: str  # read/write

value

value: str  # read/write

annotations

annotations: list[DBusAnnotationInfo]  # read/write