gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Structs.LldpNeighbor

Description

Supported attributes are:

An array of dictionaries where each element has keys:

An array of dictionaries where each element has keys:

Dictionary where each element has keys: * autoneg (type: 'u') * operational-mau-type (type: 'u') * pmd-autoneg-cap (type: 'u')

Dictionary where each element has keys: * mdi-power-support (type: 'u') * power-class (type: 'u') * pse-power-pair (type: 'u')

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')

Synopsis

Exported types

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getAttrNames, getAttrStringValue, getAttrType, getAttrUintValue, getAttrValue.

Setters

None.

getAttrNames

lldpNeighborGetAttrNames Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LldpNeighbor

neighbor: the LldpNeighbor

-> m [Text]

Returns: a Nothing-terminated array of attribute names.

Gets an array of attribute names available for neighbor.

Since: 1.2

getAttrStringValue

lldpNeighborGetAttrStringValue Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LldpNeighbor

neighbor: the LldpNeighbor

-> Text

name: the attribute name

-> m (Bool, Maybe Text)

Returns: True if a string attribute with name name was found, False otherwise

Gets the string value of attribute with name name on neighbor

Since: 1.2

getAttrType

lldpNeighborGetAttrType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LldpNeighbor

neighbor: the LldpNeighbor

-> Text

name: the attribute name

-> m VariantType

Returns: the VariantType of the attribute with name name

Get the type of an attribute.

Since: 1.2

getAttrUintValue

lldpNeighborGetAttrUintValue Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LldpNeighbor

neighbor: the LldpNeighbor

-> Text

name: the attribute name

-> m (Bool, Word32)

Returns: True if a uint32 attribute with name name was found, False otherwise

Gets the uint32 value of attribute with name name on neighbor

Since: 1.2

getAttrValue

lldpNeighborGetAttrValue Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LldpNeighbor

neighbor: the LldpNeighbor

-> Text

name: the attribute name

-> m GVariant

Returns: the value or Nothing if the attribute with name was not found.

Gets the value (as a GVariant) of attribute with name name on neighbor

Since: 1.18

new

lldpNeighborNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m LldpNeighbor

Returns: the new LldpNeighbor object.

Creates a new LldpNeighbor object.

Note that LldpNeighbor has no public API for mutating an instance. Also, libnm will not internally mutate a once exposed object. They are guaranteed to be immutable.

Since 1.32, ref-counting of LldpNeighbor is thread-safe.

This function is not useful, as there is no public API to actually modify the (empty) instance.

Since: 1.2

ref

lldpNeighborRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LldpNeighbor

neighbor: the LldpNeighbor

-> m () 

Increases the reference count of the object.

Since 1.32, ref-counting of LldpNeighbor is thread-safe.

Since: 1.2

unref

lldpNeighborUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LldpNeighbor

neighbor: the LldpNeighbor

-> m () 

Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.

Since 1.32, ref-counting of LldpNeighbor is thread-safe.

Since: 1.2