Class (GI Struct)

Gio-2.0GioDBusAnnotationInfoSince 2.26

Information about an annotation.

2.26

Index

Constructors

  • Parameters

    • Optionalproperties: Partial<
          {
              annotations: DBusAnnotationInfo[];
              key: string;
              ref_count: number;
              value: string;
          },
      >

    Returns DBusAnnotationInfo

Properties

annotations: DBusAnnotationInfo[]
key: string
ref_count: number
value: string

Methods

  • 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.

    Returns void

  • Looks up the value of an annotation.

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

    Parameters

    • annotations: DBusAnnotationInfo[]

      A null-terminated array of annotations or null.

    • name: string

      The name of the annotation to look up.

    Returns string