Connection
Object Hierarchy:
Description:
[ CCode ( type_id = "snapd_connection_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public class Connection : Object
Connection contains the state of Snap a interface connection.
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:
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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref