| Libvirt-sandbox Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <libvirt-sandbox/libvirt-sandbox.h> #define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_HANDLE struct GVirSandboxConfigNetwork; struct GVirSandboxConfigNetworkClass; GVirSandboxConfigNetwork * gvir_sandbox_config_network_new (void); void gvir_sandbox_config_network_set_source (GVirSandboxConfigNetwork *config,const gchar *network); const gchar * gvir_sandbox_config_network_get_source (GVirSandboxConfigNetwork *config); void gvir_sandbox_config_network_set_mac (GVirSandboxConfigNetwork *config,const gchar *mac); const gchar * gvir_sandbox_config_network_get_mac (GVirSandboxConfigNetwork *config); void gvir_sandbox_config_network_set_dhcp (GVirSandboxConfigNetwork *config,gboolean dhcp); gboolean gvir_sandbox_config_network_get_dhcp (GVirSandboxConfigNetwork *config); void gvir_sandbox_config_network_add_address (GVirSandboxConfigNetwork *config,GVirSandboxConfigNetworkAddress *addr); GList * gvir_sandbox_config_network_get_addresses (GVirSandboxConfigNetwork *config); void gvir_sandbox_config_network_add_route (GVirSandboxConfigNetwork *config,GVirSandboxConfigNetworkRoute *addr); GList * gvir_sandbox_config_network_get_routes (GVirSandboxConfigNetwork *config);
"dhcp" gboolean : Read / Write "mac" gchar* : Read / Write "source" gchar* : Read / Write
Provides an object to store information about a kernel ramdisk
The GVirSandboxConfigNetwork object stores the information required to build a kernel ramdisk to use when booting a virtual machine as a sandbox.
#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_HANDLE (gvir_sandbox_config_network_handle_get_type ())
struct GVirSandboxConfigNetworkClass {
GObjectClass parent_class;
gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};
GVirSandboxConfigNetwork * gvir_sandbox_config_network_new
(void);
Create a new network config with DHCP enabled
Returns : |
a new sandbox network object. [transfer full] |
void gvir_sandbox_config_network_set_source (GVirSandboxConfigNetwork *config,const gchar *network);
const gchar * gvir_sandbox_config_network_get_source
(GVirSandboxConfigNetwork *config);
void gvir_sandbox_config_network_set_mac (GVirSandboxConfigNetwork *config,const gchar *mac);
const gchar * gvir_sandbox_config_network_get_mac (GVirSandboxConfigNetwork *config);
void gvir_sandbox_config_network_set_dhcp (GVirSandboxConfigNetwork *config,gboolean dhcp);
gboolean gvir_sandbox_config_network_get_dhcp
(GVirSandboxConfigNetwork *config);
void gvir_sandbox_config_network_add_address (GVirSandboxConfigNetwork *config,GVirSandboxConfigNetworkAddress *addr);
Add a network interface address. This will be ignored unless DHCP has been disabled
|
the sandbox network configuration. [transfer none] |
|
the network address. [transfer none] |
GList * gvir_sandbox_config_network_get_addresses
(GVirSandboxConfigNetwork *config);
Retrieve the list of network interface addresses
|
the sandbox network configuration. [transfer none] |
Returns : |
the address list. [transfer full][element-type GVirSandboxConfigNetworkAddress] |
void gvir_sandbox_config_network_add_route (GVirSandboxConfigNetwork *config,GVirSandboxConfigNetworkRoute *addr);
Add a network interface route. This will be ignored unless DHCP has been disabled
|
the sandbox network configuration. [transfer none] |
|
the network route. [transfer none] |
GList * gvir_sandbox_config_network_get_routes
(GVirSandboxConfigNetwork *config);
Retrieve the list of network interface routes
|
the sandbox network configuration. [transfer none] |
Returns : |
the route list. [transfer full][element-type GVirSandboxConfigNetworkRoute] |