Virtual Method

OmniSourceSnapshotdup_port_attributes

Declaration

GVariant*
dup_port_attributes (
  OmniSourceSnapshot* self,
  guint i
)

Description

Get the port attribute set (variant of type a{sv}) of the port at the specified index.

i must be less than num_ports.

The method is not intended to be called more than once for each port. It is performance-wise acceptable for the method implementation to construct a new GLib.Variant instance on every call.

Standard Attributes

The following standard attribute is defined:

  • name (type s) optionally specifies the port’s user-friendly name.

Attribute names starting with - are reserved for system-generated attributes and must not be used by input source implementations.

Parameters

i

Type: guint

No description available.

Return value

Type: GVariant

No description available.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.