Top | ![]() |
![]() |
![]() |
![]() |
const gchar * | snapd_slot_get_name () |
const gchar * | snapd_slot_get_snap () |
const gchar * | snapd_slot_get_interface () |
const gchar * | snapd_slot_get_label () |
GPtrArray * | snapd_slot_get_connections () |
A SnapdSlot represents a part of a snap that can be connected to by one or
more SnapdPlug from other snaps. Available slots can be queried using
snapd_client_get_interfaces_sync()
. Plugs can be connected / disconnected
using snapd_client_connect_interface_sync()
and
snapd_client_disconnect_interface_sync()
.
const gchar *
snapd_slot_get_name (SnapdSlot *slot
);
Get the name of this slot.
const gchar *
snapd_slot_get_snap (SnapdSlot *slot
);
Get the snap this slot is on.
const gchar *
snapd_slot_get_interface (SnapdSlot *slot
);
Get the name of the interface this slot accepts.
const gchar *
snapd_slot_get_label (SnapdSlot *slot
);
Get a human readable label for this slot.
typedef struct _SnapdSlot SnapdSlot;
SnapdSlot is an opaque data structure and can only be accessed using the provided functions.
“connections”
property“connections” GPtrArray *
Connections with this slot.
Flags: Read / Write / Construct Only
“interface”
property“interface” gchar *
Interface this slot consumes.
Flags: Read / Write / Construct Only
Default value: NULL
“label”
property“label” gchar *
Short description of this slot.
Flags: Read / Write / Construct Only
Default value: NULL
“name”
property“name” gchar *
Slot name.
Flags: Read / Write / Construct Only
Default value: NULL
“snap”
property“snap” gchar *
Snap this slot is on.
Flags: Read / Write / Construct Only
Default value: NULL