Liboobs (System configuration management) Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
Synopsis
OobsIface; OobsIfaceClass; 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
); gboolean oobs_iface_get_configured (OobsIface *iface
); void oobs_iface_set_configured (OobsIface *iface
,gboolean is_configured
); gboolean oobs_iface_has_gateway (OobsIface *iface
);
Properties
"active" gboolean : Read / Write "auto" gboolean : Read / Write "configured" gboolean : Read / Write "device" gchar* : Read / Write / Construct Only
Details
OobsIfaceClass
typedef struct { GObjectClass parent_class; gboolean (*is_configured) (OobsIface*); gboolean (*has_gateway) (OobsIface*); void (*state_changed) (OobsIface *iface); void (*_oobs_padding2) (void); } OobsIfaceClass;
oobs_iface_get_auto ()
gboolean oobs_iface_get_auto (OobsIface *iface
);
Returns whether the interface is started automatically at boot time.
oobs_iface_set_auto ()
void oobs_iface_set_auto (OobsIface *iface
,gboolean is_auto
);
Sets whether the interface is started automatically at boot time.
oobs_iface_get_active ()
gboolean oobs_iface_get_active (OobsIface *iface
);
Returns whether the interface is active.
oobs_iface_set_active ()
void oobs_iface_set_active (OobsIface *iface
,gboolean is_active
);
Sets whether the interface is currently active.
oobs_iface_get_device_name ()
const gchar* oobs_iface_get_device_name (OobsIface *iface
);
Returns the device name for the interface.
|
An OobsIface. |
Returns : |
A string containing the device name. This string must not be freed or modified. |
oobs_iface_get_configured ()
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()
).
oobs_iface_set_configured ()
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.
Property Details
The "active"
property
"active" gboolean : Read / Write
Whether the interface is active.
Default value: FALSE
The "auto"
property
"auto" gboolean : Read / Write
Whether the interface starts at boot time.
Default value: FALSE
The "configured"
property
"configured" gboolean : Read / Write
Whether the interface is fully configured.
Default value: FALSE
The "device"
property
"device" gchar* : Read / Write / Construct Only
Device name of the iface.
Default value: NULL