SnapdConnection

SnapdConnection — Plug to slot connections

Functions

const gchar * snapd_connection_get_name ()
const gchar * snapd_connection_get_snap ()

Properties

gchar * name Read / Write / Construct Only
gchar * snap Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── SnapdConnection

Includes

#include <snapd-glib/snapd-glib.h>

Description

A SnapdConnection contains information about how a SnapdPlug is connected to a SnapdSlot. Connections are queried using snapd_plug_get_connections() and snapd_slot_get_connections().

Functions

snapd_connection_get_name ()

const gchar *
snapd_connection_get_name (SnapdConnection *connection);

Get the name of this connection (i.e. a slot or plug name).

Parameters

connection

a SnapdConnection.

 

Returns

a name.

Since: 1.0


snapd_connection_get_snap ()

const gchar *
snapd_connection_get_snap (SnapdConnection *connection);

Get the snap this connection is on.

Parameters

connection

a SnapdConnection.

 

Returns

a snap name.

Since: 1.0

Types and Values

SnapdConnection

typedef struct _SnapdConnection SnapdConnection;

SnapdConnection contains the state of Snap a interface connection.

Since: 1.0

Property Details

The “name” property

  “name”                     gchar *

Name of connection/plug on snap.

Flags: Read / Write / Construct Only

Default value: NULL


The “snap” property

  “snap”                     gchar *

Snap this connection is made to.

Flags: Read / Write / Construct Only

Default value: NULL