| Libvirt-sandbox Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ADDRESS_HANDLE struct GVirSandboxConfigNetworkAddress; struct GVirSandboxConfigNetworkAddressClass; GVirSandboxConfigNetworkAddress * gvir_sandbox_config_network_address_new (GInetAddress *primary,guint prefix,GInetAddress *broadcast); void gvir_sandbox_config_network_address_set_primary (GVirSandboxConfigNetworkAddress *config,GInetAddress *addr); GInetAddress * gvir_sandbox_config_network_address_get_primary (GVirSandboxConfigNetworkAddress *config); void gvir_sandbox_config_network_address_set_prefix (GVirSandboxConfigNetworkAddress *config,guint prefix); guint gvir_sandbox_config_network_address_get_prefix (GVirSandboxConfigNetworkAddress *config); void gvir_sandbox_config_network_address_set_broadcast (GVirSandboxConfigNetworkAddress *config,GInetAddress *addr); GInetAddress * gvir_sandbox_config_network_address_get_broadcast (GVirSandboxConfigNetworkAddress *config);
"broadcast" GInetAddress* : Read / Write / Construct Only "prefix" guint : Read / Write / Construct Only "primary" GInetAddress* : Read / Write / Construct Only
#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ADDRESS_HANDLE (gvir_sandbox_config_network_address_handle_get_type ())
struct GVirSandboxConfigNetworkAddressClass {
GObjectClass parent_class;
gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};
GVirSandboxConfigNetworkAddress * gvir_sandbox_config_network_address_new (GInetAddress *primary,guint prefix,GInetAddress *broadcast);
Create a new network address config. Only the primary parameter
is required to be non-NULL. The broadcast address
will be automatically filled in, if not otherwise specified
|
the primary address |
|
the network prefix |
|
the broadcast address (optional) |
Returns : |
a new sandbox network_address object. [transfer full] |
void gvir_sandbox_config_network_address_set_primary (GVirSandboxConfigNetworkAddress *config,GInetAddress *addr);
Sets the interface primary address
|
the sandbox network address config. [transfer none] |
|
the primary address. [transfer none] |
GInetAddress * gvir_sandbox_config_network_address_get_primary
(GVirSandboxConfigNetworkAddress *config);
Retrieves the primary address
|
the sandbox network address config. [transfer none] |
Returns : |
the primary address. [transfer none] |
void gvir_sandbox_config_network_address_set_prefix (GVirSandboxConfigNetworkAddress *config,guint prefix);
Sets the interface network prefix
|
the sandbox network address config. [transfer none] |
|
the prefix length |
guint gvir_sandbox_config_network_address_get_prefix
(GVirSandboxConfigNetworkAddress *config);
Retrieves the network prefix
|
the sandbox network address config. [transfer none] |
Returns : |
the network prefix |
void gvir_sandbox_config_network_address_set_broadcast (GVirSandboxConfigNetworkAddress *config,GInetAddress *addr);
Sets the interface broadcast address
|
the sandbox network address config. [transfer none] |
|
the broadcast address. [transfer none] |
GInetAddress * gvir_sandbox_config_network_address_get_broadcast
(GVirSandboxConfigNetworkAddress *config);
Retrieves the broadcast address
|
the sandbox network address config. [transfer none] |
Returns : |
the broadcast address. [transfer none] |