![]() |
![]() |
![]() |
![]() |
#define | NM_DEVICE_DEVICE_TYPE |
#define | NM_DEVICE_UDI |
#define | NM_DEVICE_PATH |
#define | NM_DEVICE_INTERFACE |
#define | NM_DEVICE_IP_INTERFACE |
#define | NM_DEVICE_DRIVER |
#define | NM_DEVICE_DRIVER_VERSION |
#define | NM_DEVICE_FIRMWARE_VERSION |
#define | NM_DEVICE_CAPABILITIES |
#define | NM_DEVICE_REAL |
#define | NM_DEVICE_MANAGED |
#define | NM_DEVICE_AUTOCONNECT |
#define | NM_DEVICE_FIRMWARE_MISSING |
#define | NM_DEVICE_NM_PLUGIN_MISSING |
#define | NM_DEVICE_IP4_CONFIG |
#define | NM_DEVICE_DHCP4_CONFIG |
#define | NM_DEVICE_IP6_CONFIG |
#define | NM_DEVICE_DHCP6_CONFIG |
#define | NM_DEVICE_STATE |
#define | NM_DEVICE_STATE_REASON |
#define | NM_DEVICE_ACTIVE_CONNECTION |
#define | NM_DEVICE_AVAILABLE_CONNECTIONS |
#define | NM_DEVICE_VENDOR |
#define | NM_DEVICE_PRODUCT |
#define | NM_DEVICE_PHYSICAL_PORT_ID |
#define | NM_DEVICE_MTU |
#define | NM_DEVICE_METERED |
#define | NM_DEVICE_LLDP_NEIGHBORS |
#define | NM_DEVICE_IP4_CONNECTIVITY |
#define | NM_DEVICE_IP6_CONNECTIVITY |
#define | NM_DEVICE_INTERFACE_FLAGS |
#define | NM_DEVICE_HW_ADDRESS |
#define | NM_DEVICE_PORTS |
NMLldpNeighbor |
void nm_device_set_managed (NMDevice *device
,gboolean managed
);
nm_device_set_managed
is deprecated and should not be used in newly-written code.
void nm_device_set_autoconnect (NMDevice *device
,gboolean autoconnect
);
nm_device_set_autoconnect
is deprecated and should not be used in newly-written code.
NMConnectivityState nm_device_get_connectivity (NMDevice *device
,int addr_family
);
NMActiveConnection *
nm_device_get_active_connection (NMDevice *device
);
const GPtrArray *
nm_device_get_available_connections (NMDevice *device
);
NMDeviceInterfaceFlags
nm_device_get_interface_flags (NMDevice *device
);
char ** nm_device_disambiguate_names (NMDevice **devices
,int num_devices
);
gboolean nm_device_reapply (NMDevice *device
,NMConnection *connection
,guint64 version_id
,guint32 flags
,GCancellable *cancellable
,GError **error
);
nm_device_reapply
is deprecated and should not be used in newly-written code.
void nm_device_reapply_async (NMDevice *device
,NMConnection *connection
,guint64 version_id
,guint32 flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_device_reapply_finish (NMDevice *device
,GAsyncResult *result
,GError **error
);
NMConnection * nm_device_get_applied_connection (NMDevice *device
,guint32 flags
,guint64 *version_id
,GCancellable *cancellable
,GError **error
);
nm_device_get_applied_connection
is deprecated and should not be used in newly-written code.
void nm_device_get_applied_connection_async (NMDevice *device
,guint32 flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
NMConnection * nm_device_get_applied_connection_finish (NMDevice *device
,GAsyncResult *result
,guint64 *version_id
,GError **error
);
gboolean nm_device_disconnect (NMDevice *device
,GCancellable *cancellable
,GError **error
);
nm_device_disconnect
is deprecated and should not be used in newly-written code.
void nm_device_disconnect_async (NMDevice *device
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_device_disconnect_finish (NMDevice *device
,GAsyncResult *result
,GError **error
);
gboolean nm_device_delete (NMDevice *device
,GCancellable *cancellable
,GError **error
);
nm_device_delete
is deprecated and should not be used in newly-written code.
void nm_device_delete_async (NMDevice *device
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean nm_device_delete_finish (NMDevice *device
,GAsyncResult *result
,GError **error
);
GPtrArray * nm_device_filter_connections (NMDevice *device
,const GPtrArray *connections
);
gboolean nm_device_connection_valid (NMDevice *device
,NMConnection *connection
);
gboolean nm_device_connection_compatible (NMDevice *device
,NMConnection *connection
,GError **error
);
char **
nm_lldp_neighbor_get_attr_names (NMLldpNeighbor *neighbor
);
GVariant * nm_lldp_neighbor_get_attr_value (NMLldpNeighbor *neighbor
,const char *name
);
gboolean nm_lldp_neighbor_get_attr_string_value (NMLldpNeighbor *neighbor
,const char *name
,const char **out_value
);
gboolean nm_lldp_neighbor_get_attr_uint_value (NMLldpNeighbor *neighbor
,const char *name
,guint *out_value
);
const GVariantType * nm_lldp_neighbor_get_attr_type (NMLldpNeighbor *neighbor
,const char *name
);
#define NM_DEVICE_AUTOCONNECT "autoconnect"
NM_DEVICE_AUTOCONNECT
is deprecated and should not be used in newly-written code.
typedef struct _NMLldpNeighbor NMLldpNeighbor;
Supported attributes are:
NM_LLDP_ATTR_CHASSIS_ID_TYPE (type: 'u')
NM_LLDP_ATTR_CHASSIS_ID (type: 's')
NM_LLDP_ATTR_DESTINATION (type: 's')
NM_LLDP_ATTR_IEEE_802_1_PPVID (type: 'u'). This attribute only reports the first PPVID and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_PPVIDS which reports all the PPVID.
NM_LLDP_ATTR_IEEE_802_1_PPVID_FLAGS (type: 'u'). This attribute only reports the first PPVID and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_PPVIDS which reports all the PPVID.
NM_LLDP_ATTR_IEEE_802_1_PPVIDS (type: 'aa{sv}')
An array of dictionaries where each element has keys:
flags (type: 'u')
ppvid (type: 'u')
NM_LLDP_ATTR_IEEE_802_1_PVID (type: 'u')
NM_LLDP_ATTR_IEEE_802_1_VID (type: 'u'). This attribute only reports the first VLAN and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_VLANS which reports all the VLANs.
NM_LLDP_ATTR_IEEE_802_1_VLAN_NAME (type: 's'). This attribute only reports the first VLAN and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_VLANS which reports all the VLANs.
NM_LLDP_ATTR_IEEE_802_1_VLANS (type: 'aa{sv}')
An array of dictionaries where each element has keys:
name (type: 's')
vid (type: 'u')
NM_LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF (type: 'a{sv}')
Dictionary where each element has keys:
autoneg (type: 'u')
operational-mau-type (type: 'u')
pmd-autoneg-cap (type: 'u')
NM_LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE (type: 'u')
NM_LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI (type: 'a{sv}')
Dictionary where each element has keys:
mdi-power-support (type: 'u')
power-class (type: 'u')
pse-power-pair (type: 'u')
NM_LLDP_ATTR_MANAGEMENT_ADDRESSES (type: 'aa{sv}')
An array of dictionaries where each element has keys:
address (type: 'ay')
address-subtype (type: 'u')
interface-number (type: 'u')
interface-number-subtype (type: 'u')
object-id (type: 'ay')
NM_LLDP_ATTR_PORT_DESCRIPTION (type: 's')
NM_LLDP_ATTR_PORT_ID_TYPE (type: 'u')
NM_LLDP_ATTR_PORT_ID (type: 's')
NM_LLDP_ATTR_RAW (type: 'ay')
NM_LLDP_ATTR_SYSTEM_CAPABILITIES (type: 'u')
NM_LLDP_ATTR_SYSTEM_DESCRIPTION (type: 's')
NM_LLDP_ATTR_SYSTEM_NAME (type: 's')