OobsIfaceEthernet

OobsIfaceEthernet —

Synopsis




enum        OobsIfaceConfigurationMethod;
#define     OOBS_TYPE_IFACE_CONFIGURATION_METHOD
            OobsIfaceEthernet;
GType       oobs_iface_ethernet_get_type    (void);
const gchar* oobs_iface_ethernet_get_ip_address
                                            (OobsIfaceEthernet *iface);
void        oobs_iface_ethernet_set_ip_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);
const gchar* oobs_iface_ethernet_get_network_mask
                                            (OobsIfaceEthernet *iface);
void        oobs_iface_ethernet_set_network_mask
                                            (OobsIfaceEthernet *iface,
                                             const gchar *mask);
const gchar* oobs_iface_ethernet_get_gateway_address
                                            (OobsIfaceEthernet *iface);
void        oobs_iface_ethernet_set_gateway_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);
const gchar* oobs_iface_ethernet_get_network_address
                                            (OobsIfaceEthernet *iface);
void        oobs_iface_ethernet_set_network_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);
const gchar* oobs_iface_ethernet_get_broadcast_address
                                            (OobsIfaceEthernet *iface);
void        oobs_iface_ethernet_set_broadcast_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);
OobsIfaceConfigurationMethod oobs_iface_ethernet_get_configuration_method
                                            (OobsIfaceEthernet *iface);
void        oobs_iface_ethernet_set_configuration_method
                                            (OobsIfaceEthernet *iface,
                                             OobsIfaceConfigurationMethod method);

Object Hierarchy


  GObject
   +----OobsIface
         +----OobsIfaceEthernet
               +----OobsIfaceIRLan
               +----OobsIfaceWireless

Properties


  "broadcast-address"    gchararray            : Read / Write
  "config-method"        OobsIfaceConfigurationMethod  : Read / Write
  "gateway-address"      gchararray            : Read / Write
  "ip-address"           gchararray            : Read / Write
  "ip-mask"              gchararray            : Read / Write
  "network-address"      gchararray            : Read / Write

Description

Details

enum OobsIfaceConfigurationMethod

typedef enum {
  OOBS_METHOD_NONE,
  OOBS_METHOD_STATIC,
  OOBS_METHOD_DHCP
} OobsIfaceConfigurationMethod;


OOBS_TYPE_IFACE_CONFIGURATION_METHOD

#define OOBS_TYPE_IFACE_CONFIGURATION_METHOD (oobs_iface_configuration_method_get_type ())


OobsIfaceEthernet

typedef struct _OobsIfaceEthernet OobsIfaceEthernet;


oobs_iface_ethernet_get_type ()

GType       oobs_iface_ethernet_get_type    (void);

Returns :

oobs_iface_ethernet_get_ip_address ()

const gchar* oobs_iface_ethernet_get_ip_address
                                            (OobsIfaceEthernet *iface);

Returns the IP address that this interface uses.

iface : An OobsIfaceEthernet.
Returns : A pointer to the IP address as a string. This string must not be freed, modified or stored.

oobs_iface_ethernet_set_ip_address ()

void        oobs_iface_ethernet_set_ip_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);

Sets a new IP address for the interface, overwriting the previous one.

iface : An OobsIfaceEthernet.
address : a new IP address for the interface.

oobs_iface_ethernet_get_network_mask ()

const gchar* oobs_iface_ethernet_get_network_mask
                                            (OobsIfaceEthernet *iface);

Returns the IP network mask that this interface uses.

iface : An OobsIfaceEthernet.
Returns : A pointer to the network mask as a string. This string must not be freed, modified or stored.

oobs_iface_ethernet_set_network_mask ()

void        oobs_iface_ethernet_set_network_mask
                                            (OobsIfaceEthernet *iface,
                                             const gchar *mask);

Sets a new IP network mask for the interface, overwriting the previous one.

iface : An OobsIfaceEthernet.
mask : a new IP network mask for the interface.

oobs_iface_ethernet_get_gateway_address ()

const gchar* oobs_iface_ethernet_get_gateway_address
                                            (OobsIfaceEthernet *iface);

Returns the gateway IP address that this interface uses.

iface : An OobsIfaceEthernet.
Returns : A pointer to the gateway address as a string. This string must not be freed, modified or stored.

oobs_iface_ethernet_set_gateway_address ()

void        oobs_iface_ethernet_set_gateway_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);

Sets a new gateway IP address for the interface, overwriting the previous one.

iface : An OobsIfaceEthernet.
address : a new gateway IP address for the interface.

oobs_iface_ethernet_get_network_address ()

const gchar* oobs_iface_ethernet_get_network_address
                                            (OobsIfaceEthernet *iface);

Returns the network address for this interface.

iface : An OobsIfaceEthernet.
Returns : A pointer to the network address as a string. This string must not be freed, modified or stored.

oobs_iface_ethernet_set_network_address ()

void        oobs_iface_ethernet_set_network_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);

Sets a new network address for the interface, overwriting the previous one.

iface : An OobsIfaceEthernet.
address : a new network address for the interface.

oobs_iface_ethernet_get_broadcast_address ()

const gchar* oobs_iface_ethernet_get_broadcast_address
                                            (OobsIfaceEthernet *iface);

Returns the broadcast address for this interface.

iface : An OobsIfaceEthernet.
Returns : A pointer to the broadcast address as a string. This string must not be freed, modified or stored.

oobs_iface_ethernet_set_broadcast_address ()

void        oobs_iface_ethernet_set_broadcast_address
                                            (OobsIfaceEthernet *iface,
                                             const gchar *address);

Sets a new broadcast address for the interface, overwriting the previous one.

iface : An OobsIfaceEthernet.
address : a new broadcast address for the interface.

oobs_iface_ethernet_get_configuration_method ()

OobsIfaceConfigurationMethod oobs_iface_ethernet_get_configuration_method
                                            (OobsIfaceEthernet *iface);

Returns the configuration method for the interface.

iface : An OobsIfaceEthernet.
Returns : The configuration method that the interface uses.

oobs_iface_ethernet_set_configuration_method ()

void        oobs_iface_ethernet_set_configuration_method
                                            (OobsIfaceEthernet *iface,
                                             OobsIfaceConfigurationMethod method);

Sets the configuration method that the interface will use.

iface : An OobsIfaceEthernet.
method : An OobsIfaceConfigurationMethod.

Property Details

The "broadcast-address" property

  "broadcast-address"    gchararray            : Read / Write

Network broadcast for the iface.

Default value: NULL


The "config-method" property

  "config-method"        OobsIfaceConfigurationMethod  : Read / Write

Network configuration method for the iface.

Default value: OOBS_METHOD_NONE


The "gateway-address" property

  "gateway-address"      gchararray            : Read / Write

Gateway address for the iface.

Default value: NULL


The "ip-address" property

  "ip-address"           gchararray            : Read / Write

Address for the iface.

Default value: NULL


The "ip-mask" property

  "ip-mask"              gchararray            : Read / Write

Netmask for the iface.

Default value: NULL


The "network-address" property

  "network-address"      gchararray            : Read / Write

Network address for the iface.

Default value: NULL