Top |
const gchar * | snapd_plug_get_name () |
const gchar * | snapd_plug_get_snap () |
const gchar * | snapd_plug_get_interface () |
GStrv | snapd_plug_get_attribute_names () |
gboolean | snapd_plug_has_attribute () |
GVariant * | snapd_plug_get_attribute () |
const gchar * | snapd_plug_get_label () |
GPtrArray * | snapd_plug_get_connections () |
GPtrArray * | snapd_plug_get_connected_slots () |
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 SnapdPlug represents a part of a snap that can be connected to a
SnapdSlot on another snap. Available plugs 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_plug_get_name (SnapdPlug *plug
);
Get the name of this plug.
Since: 1.0
const gchar *
snapd_plug_get_snap (SnapdPlug *plug
);
Get the snap this plug is on.
Since: 1.0
const gchar *
snapd_plug_get_interface (SnapdPlug *plug
);
Get the name of the interface this plug provides.
Since: 1.0
GStrv snapd_plug_get_attribute_names (SnapdPlug *plug
,guint *length
);
Get the names of the attributes this plug has.
a string array of attribute names. Free with g_strfreev()
.
[transfer full][array zero-terminated=1]
Since: 1.3
gboolean snapd_plug_has_attribute (SnapdPlug *plug
,const gchar *name
);
Check if this plug has an attribute.
Since: 1.3
GVariant * snapd_plug_get_attribute (SnapdPlug *plug
,const gchar *name
);
Get an attribute for this interface.
Since: 1.3
const gchar *
snapd_plug_get_label (SnapdPlug *plug
);
Get a human readable label for this plug.
Since: 1.0
GPtrArray *
snapd_plug_get_connections (SnapdPlug *plug
);
snapd_plug_get_connections
has been deprecated since version 1.48 and should not be used in newly-written code.
Get the connections being made with this plug.
Since: 1.0
“attributes”
property“attributes” GHashTable *
Attributes for this plug.
Flags: Read / Write / Construct Only
“connections”
property“connections” GPtrArray *
Connections with this plug.
Flags: Read / Write / Construct Only
“interface”
property“interface” gchar *
Interface this plug provides.
Flags: Read / Write / Construct Only
Default value: NULL
“label”
property“label” gchar *
Short description of this plug.
Flags: Read / Write / Construct Only
Default value: NULL
“name”
property“name” gchar *
Plug name.
Flags: Read / Write / Construct Only
Default value: NULL
“snap”
property“snap” gchar *
Snap this plug is on.
Flags: Read / Write / Construct Only
Default value: NULL