Connection
Object Hierarchy:
Description:
[ CCode ( type_id = "snapd_connection_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public class Connection : Object
[ Version ( since = "1.0" ) ]
public class Connection : Object
Connection contains the state of Snap a interface connection.
Namespace: Snapd
Package: snapd-glib
Content:
Properties:
- public string @interface { get; construct; }
- public bool gadget { get; construct; }
- public bool manual { get; construct; }
- public string name { get; construct; }
- public PlugRef plug { get; construct; }
- public HashTable<void*,void*> plug_attrs { owned get; construct; }
- public SlotRef slot { get; construct; }
- public HashTable<void*,void*> slot_attrs { owned get; construct; }
- public string snap { get; construct; }
Creation methods:
- protected Connection ()
Methods:
- public bool get_gadget ()
Get if this connection was made by the gadget snap.
- public unowned string get_interface ()
Get the interface this connections uses.
- public bool get_manual ()
Get if this connection was made manually.
- public unowned string get_name ()
Get the name of this connection (i.
- public unowned PlugRef get_plug ()
Get the plug this connection is made with.
- public unowned Variant? get_plug_attribute (string name)
Get an attribute for connected plug.
- public string[] get_plug_attribute_names (out uint length)
Get the names of the attributes the connected plug has.
- public unowned SlotRef get_slot ()
Get the slot this connection is made with.
- public unowned Variant? get_slot_attribute (string name)
Get an attribute for connected slot.
- public string[] get_slot_attribute_names (out uint length)
Get the names of the attributes the connected slot has.
- public unowned string get_snap ()
Get the snap this connection is on.
- public bool has_plug_attribute (string name)
Check if the connected plug has an attribute.
- public bool has_slot_attribute (string name)
Check if the connected slot has an attribute.
Inherited Members:
All known members inherited from class GLib.Object