| Liboobs (Gnome System Tools) Reference Manual | ||||
|---|---|---|---|---|
OobsIface;
gboolean oobs_iface_get_auto (OobsIface *iface);
void oobs_iface_set_auto (OobsIface *iface,
gboolean is_auto);
gboolean oobs_iface_get_active (OobsIface *iface);
void oobs_iface_set_active (OobsIface *iface,
gboolean is_active);
const gchar* oobs_iface_get_device_name (OobsIface *iface);
const gchar* oobs_iface_get_hwaddr (OobsIface *iface);
gboolean oobs_iface_get_configured (OobsIface *iface);
void oobs_iface_set_configured (OobsIface *iface,
gboolean is_configured);
gboolean oobs_iface_has_gateway (OobsIface *iface);
GObject
+----OobsIface
+----OobsIfaceEthernet
+----OobsIfaceISDN
+----OobsIfacePlip
"active" gboolean : Read / Write "auto" gboolean : Read / Write "configured" gboolean : Read / Write "device" gchararray : Read / Write / Construct Only "hardware-address" gchararray : Read / Write / Construct Only
gboolean oobs_iface_get_auto (OobsIface *iface);
Returns whether the interface is started automatically at boot time.
iface : |
An OobsIface. |
| Returns : | TRUE if the interface starts during system boot. |
void oobs_iface_set_auto (OobsIface *iface, gboolean is_auto);
Sets whether the interface is started automatically at boot time.
iface : |
An OobsIface. |
is_auto : |
TRUE to make the interface start at boot time. |
gboolean oobs_iface_get_active (OobsIface *iface);
Returns whether the interface is active.
iface : |
An OobsIface. |
| Returns : | TRUE if the interface is active. |
void oobs_iface_set_active (OobsIface *iface, gboolean is_active);
Sets whether the interface is currently active.
iface : |
An OobsIface. |
is_active : |
TRUE to enable the interface. |
const gchar* oobs_iface_get_device_name (OobsIface *iface);
Returns the device name for the interface.
iface : |
An OobsIface. |
| Returns : | A string containing the device name. This string must not be freed or modified. |
gboolean oobs_iface_get_configured (OobsIface *iface);
Returns whether the interface has a valid (i.e.: complete)
configuration and is explicitly marked as configured
(see oobs_iface_set_configured()).
iface : |
An OobsIface. |
| Returns : | TRUE if its configuration is valid. |
void oobs_iface_set_configured (OobsIface *iface, gboolean is_configured);
If is_configured is FALSE, the function explicitly marks the interface
as not configured. If is_configured is TRUE, the explicit mark will be
removed, but the interface may still have an incomplete/invalid configuration.
iface : |
An OobsIface. |
is_configured : |
FALSE to explictitly mark the interface as not configured. |
active" property"active" gboolean : Read / Write
Whether the interface is active.
Default value: FALSE
auto" property"auto" gboolean : Read / Write
Whether the interface starts at boot time.
Default value: FALSE
configured" property"configured" gboolean : Read / Write
Whether the interface is fully configured.
Default value: FALSE
device" property"device" gchararray : Read / Write / Construct Only
Device name of the iface.
Default value: NULL