| 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 |
| char * | interface | Read / Write / Construct Only |
| char * | label | Read / Write / Construct Only |
| char * | name | Read / Write / Construct Only |
| char * | 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.
plug |
a SnapdPlug. |
|
length |
location to write number of attributes or |
[out][allow-none] |
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.
Owner: SnapdPlug
Flags: Read / Write / Construct Only
“connections” property “connections” GPtrArray *
Connections with this plug.
Owner: SnapdPlug
Flags: Read / Write / Construct Only
“interface” property “interface” char *
Interface this plug provides.
Owner: SnapdPlug
Flags: Read / Write / Construct Only
Default value: NULL
“label” property “label” char *
Short description of this plug.
Owner: SnapdPlug
Flags: Read / Write / Construct Only
Default value: NULL
“name” property “name” char *
Plug name.
Owner: SnapdPlug
Flags: Read / Write / Construct Only
Default value: NULL