| Top |
| const gchar * | snapd_slot_get_name () |
| const gchar * | snapd_slot_get_snap () |
| const gchar * | snapd_slot_get_interface () |
| gchar ** | snapd_slot_get_attribute_names () |
| gboolean | snapd_slot_has_attribute () |
| GVariant * | snapd_slot_get_attribute () |
| const gchar * | snapd_slot_get_label () |
| GPtrArray * | snapd_slot_get_connections () |
| GHashTable * | attributes | Read / Write / Construct Only |
| GPtrArray * | connections | Read / Write / Construct Only |
| gchar * | interface | Read / Write / Construct Only |
| gchar * | label | Read / Write / Construct Only |
| gchar * | name | Read / Write / Construct Only |
| gchar * | snap | Read / Write / Construct Only |
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.
Since: 1.0
const gchar *
snapd_slot_get_snap (SnapdSlot *slot);
Get the snap this slot is on.
Since: 1.0
const gchar *
snapd_slot_get_interface (SnapdSlot *slot);
Get the name of the interface this slot accepts.
Since: 1.0
gchar ** snapd_slot_get_attribute_names (SnapdSlot *slot,guint *length);
Get the names of the attributes this slot has.
a string array of attribute names. Free with g_strfreev().
[transfer full][array zero-terminated=1]
Since: 1.3
gboolean snapd_slot_has_attribute (SnapdSlot *slot,const gchar *name);
Check if this slot has an attribute.
Since: 1.3
GVariant * snapd_slot_get_attribute (SnapdSlot *slot,const gchar *name);
Get an attribute for this interface.
Since: 1.3
const gchar *
snapd_slot_get_label (SnapdSlot *slot);
Get a human readable label for this slot.
Since: 1.0
“attributes” property“attributes” GHashTable *
Attributes for this slot.
Flags: Read / Write / Construct Only
“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