gvir_network_get_config ()
GVirConfigNetwork *
gvir_network_get_config (GVirNetwork *network
,
guint flags
,
GError **err
);
Returns
the config. The returned object should be
unreffed with g_object_unref()
when no longer needed.
[transfer full]
gvir_network_get_dhcp_leases ()
GList *
gvir_network_get_dhcp_leases (GVirNetwork *network
,
const char *mac
,
guint flags
,
GError **err
);
This function fetches leases info of guests in the specified network. If the
optional parameter mac
is specified, the returned list will contain only
lease info about a specific guest interface with mac
. There can be multiple
leases for a single mac
because this API supports DHCPv6 too.
Returns
the
list of network leases. Each object in the returned list should be unreffed
with g_object_unref()
and the list itself using g_list_free, when no longer
needed.
[element-type LibvirtGObject.NetworkDHCPLease][transfer full]