Snapd.Connection.get_plug_attribute

### Method

# Snapd Connectionget_plug_attribute

since: 1.48

#### Declaration [src]

    GVariant*
    snapd_connection_get_plug_attribute (
      SnapdConnection* connection,
      const gchar* name
    )

#### Description [src]

Get an attribute for connected plug.

Available since: 1.48

#### Parameters

`name`

  Type: `const gchar*`

  An attribute name.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `GVariant`

An attribute value or `NULL` if not set.

The returned data is owned by the instance.
The return value can be `NULL`.