From 34bb501be08aa2b313d88e67d6e0a7e0a3f9cfa6 Mon Sep 17 00:00:00 2001
From: Michael Biebl
NMIPAddress * nm_ip_address_new (+int family,const char *addr, -guint prefix, -GError **error);
guint prefix,
+ GError **error);
Creates a new NMIPAddress object.
error
location to store error, or NULL
location to store error, or NULL
int fam
Returns
-the new NMIPAddress object, or NULL on error.
+the new NMIPAddress object, or NULL on error.
[transfer full]
@@ -1583,9 +1595,9 @@ nm_ip_address_new (int fam
nm_ip_address_new_binary ()
NMIPAddress *
nm_ip_address_new_binary (int family,
- gconstpointer addr,
- guint prefix,
- GError **error);
+ gconstpointer addr,
+ guint prefix,
+ GError **error);
Creates a new NMIPAddress object. addr
must point to a buffer of the
correct size for family
@@ -1617,7 +1629,7 @@ correct size for family
error
-location to store error, or NULL
+location to store error, or NULL
@@ -1625,7 +1637,7 @@ correct size for family
Returns
-the new NMIPAddress object, or NULL on error.
+the new NMIPAddress object, or NULL on error.
[transfer full]
@@ -1677,7 +1689,7 @@ reaches zero, the object will be destroyed.
nm_ip_address_equal ()
-gboolean
+gboolean
nm_ip_address_equal (NMIPAddress *address,
NMIPAddress *other);
Determines if two NMIPAddress objects contain the same address and prefix
@@ -1707,7 +1719,7 @@ to.
Returns
- TRUE if the objects contain the same values, FALSE if they do not.
+ TRUE if the objects contain the same values, FALSE if they do not.
@@ -1882,7 +1894,7 @@ have a valid address, use nm_ip_address_get_address_binary ()
void
nm_ip_address_get_address_binary (NMIPAddress *address,
- gpointer addr);
+ gpointer addr);
Gets the IP address property of this address object.
addr
must point to a buffer that is the correct size for address
@@ -1916,7 +1928,7 @@ nm_ip_address_get_address_binary (nm_ip_address_set_address_binary ()
void
nm_ip_address_set_address_binary (NMIPAddress *address,
- gconstpointer addr);
+ gconstpointer addr);
Sets the IP address property of this address object.
addr
must point to a buffer that is the correct size for address
@@ -1948,7 +1960,7 @@ nm_ip_address_set_address_binary (
nm_ip_address_get_prefix ()
-guint
+guint
nm_ip_address_get_prefix (NMIPAddress *address);
Gets the IP address prefix (ie "24" or "30" etc) property of this address
object.
@@ -1977,7 +1989,7 @@ object.
nm_ip_address_set_prefix ()
void
nm_ip_address_set_prefix (NMIPAddress *address,
- guint prefix);
+ guint prefix);
Sets the IP address prefix property of this address object.
nm_ip_address_get_attribute ()
-GVariant *
+GVariant *
nm_ip_address_get_attribute (NMIPAddress *address,
const char *name);
Gets the value of the attribute with name name
@@ -2066,7 +2078,7 @@ nm_ip_address_get_attribute (name
on
address
-, or NULL if address
+, or NULL if address
has no such attribute.
[transfer none]
@@ -2077,7 +2089,7 @@ has no such attribute.
void
nm_ip_address_set_attribute (NMIPAddress *address,
const char *name,
- GVariant *value);
+ GVariant *value);
Sets or clears the named attribute on address
to the given value.
@@ -2114,10 +2126,10 @@ nm_ip_address_set_attribute (NMIPRoute *
nm_ip_route_new (int family,
const char *dest,
- guint prefix,
+ guint prefix,
const char *next_hop,
- gint64 metric,
- GError **error);
+ gint64 metric,
+ GError **error);
Creates a new NMIPRoute object.
Parameters
@@ -2146,7 +2158,7 @@ nm_ip_route_new (int famil
next_hop
-the IP address of the next hop (or NULL).
+the IP address of the next hop (or NULL).
[nullable]
@@ -2156,7 +2168,7 @@ nm_ip_route_new (int famil
error
-location to store error, or NULL
+location to store error, or NULL
@@ -2164,7 +2176,7 @@ nm_ip_route_new (int famil
@@ -2173,14 +2185,14 @@ nm_ip_route_new (int famil
nm_ip_route_new_binary ()
NMIPRoute *
nm_ip_route_new_binary (int family,
- gconstpointer dest,
- guint prefix,
- gconstpointer next_hop,
- gint64 metric,
- GError **error);
+ gconstpointer dest,
+ guint prefix,
+ gconstpointer next_hop,
+ gint64 metric,
+ GError **error);
Creates a new NMIPRoute object. dest
and next_hop
- (if non-NULL) must
+ (if non-NULL) must
point to buffers of the correct size for family
.
@@ -2210,7 +2222,7 @@ point to buffers of the correct size for family
next_hop
-the IP address of the next hop (or NULL).
+the IP address of the next hop (or NULL).
[nullable]
@@ -2220,7 +2232,7 @@ point to buffers of the correct size for family
error
-location to store error, or NULL
+location to store error, or NULL
@@ -2228,7 +2240,7 @@ point to buffers of the correct size for family
Returns
-the new NMIPRoute object, or NULL on error.
+the new NMIPRoute object, or NULL on error.
[transfer full]
@@ -2280,7 +2292,7 @@ reaches zero, the object will be destroyed.
nm_ip_route_equal ()
-gboolean
+gboolean
nm_ip_route_equal (NMIPRoute *route,
NMIPRoute *other);
Determines if two NMIPRoute objects contain the same destination, prefix,
@@ -2310,16 +2322,16 @@ to.
Returns
- TRUE if the objects contain the same values, FALSE if they do not.
+ TRUE if the objects contain the same values, FALSE if they do not.
nm_ip_route_equal_full ()
-gboolean
+gboolean
nm_ip_route_equal_full (NMIPRoute *route,
NMIPRoute *other,
- guint cmp_flags);
+ guint cmp_flags);
Determines if two NMIPRoute objects contain the same destination, prefix,
next hop, and metric.
@@ -2354,7 +2366,7 @@ is supported.
Returns
- TRUE if the objects contain the same values, FALSE if they do not.
+ TRUE if the objects contain the same values, FALSE if they do not.
Since: 1.10
@@ -2483,7 +2495,7 @@ have a valid address, use nm_inet_is_valid() to ch
nm_ip_route_get_dest_binary ()
void
nm_ip_route_get_dest_binary (NMIPRoute *route,
- gpointer dest);
+ gpointer dest);
Gets the destination property of this route object.
dest
must point to a buffer that is the correct size for route
@@ -2517,7 +2529,7 @@ nm_ip_route_get_dest_binary (nm_ip_route_set_dest_binary ()
void
nm_ip_route_set_dest_binary (NMIPRoute *route,
- gconstpointer dest);
+ gconstpointer dest);
Sets the destination property of this route object.
dest
must point to a buffer that is the correct size for route
@@ -2549,7 +2561,7 @@ nm_ip_route_set_dest_binary (
nm_ip_route_get_prefix ()
-guint
+guint
nm_ip_route_get_prefix (NMIPRoute *route);
Gets the IP prefix (ie "24" or "30" etc) of this route.
@@ -2577,7 +2589,7 @@ nm_ip_route_get_prefix (nm_ip_route_set_prefix ()
void
nm_ip_route_set_prefix (NMIPRoute *route,
- guint prefix);
+ guint prefix);
Sets the prefix property of this route object.
Parameters
@@ -2607,7 +2619,7 @@ nm_ip_route_set_prefix (nm_ip_route_get_next_hop ()
const char *
nm_ip_route_get_next_hop (NMIPRoute *route);
-Gets the IP address of the next hop of this route; this will be NULL if the
+
Gets the IP address of the next hop of this route; this will be NULL if the
route has no next hop.
@@ -2637,7 +2649,7 @@ nm_ip_route_set_next_hop (const char *next_hop);
Sets the next-hop property of this route object.
next_hop
- (if non-NULL) must be a valid address of route
+ (if non-NULL) must be a valid address of route
's family. If you
aren't sure you have a valid address, use nm_utils_ipaddr_valid() to check
it.
@@ -2667,9 +2679,9 @@ it.
nm_ip_route_get_next_hop_binary ()
-gboolean
+gboolean
nm_ip_route_get_next_hop_binary (NMIPRoute *route,
- gpointer next_hop);
+ gpointer next_hop);
Gets the next hop property of this route object.
next_hop
must point to a buffer that is the correct size for route
@@ -2699,8 +2711,8 @@ nm_ip_route_get_next_hop_binary (
@@ -2710,10 +2722,10 @@ will be zeroed out)
nm_ip_route_set_next_hop_binary ()
void
nm_ip_route_set_next_hop_binary (NMIPRoute *route,
- gconstpointer next_hop);
+ gconstpointer next_hop);
Sets the destination property of this route object.
next_hop
- (if non-NULL) must point to a buffer that is the correct size for
+ (if non-NULL) must point to a buffer that is the correct size for
route
's family.
[skip]
@@ -2743,7 +2755,7 @@ nm_ip_route_set_next_hop_binary (
nm_ip_route_get_metric ()
-gint64
+gint64
nm_ip_route_get_metric (NMIPRoute *route);
Gets the route metric property of this route object; lower values
indicate "better" or more preferred routes; -1 indicates "default"
@@ -2773,7 +2785,7 @@ indicate "better" or more preferred routes; -1 indicates "default"
nm_ip_route_set_metric ()
void
nm_ip_route_set_metric (NMIPRoute *route,
- gint64 metric);
+ gint64 metric);
Sets the metric property of this route object.
nm_ip_route_get_attribute ()
-GVariant *
+GVariant *
nm_ip_route_get_attribute (NMIPRoute *route,
const char *name);
Gets the value of the attribute with name name
@@ -2862,7 +2874,7 @@ nm_ip_route_get_attribute (name
on
route
-, or NULL if route
+, or NULL if route
has no such attribute.
[transfer none]
@@ -2873,7 +2885,7 @@ has no such attribute.
void
nm_ip_route_set_attribute (NMIPRoute *route,
const char *name,
- GVariant *value);
+ GVariant *value);
Sets the named attribute on route
to the given value.
@@ -2919,12 +2931,12 @@ nm_ip_route_get_variant_attribute_spec
nm_ip_route_attribute_validate ()
-gboolean
+gboolean
nm_ip_route_attribute_validate (const char *name,
- GVariant *value,
+ GVariant *value,
int family,
- gboolean *known,
- GError **error);
+ gboolean *known,
+ GError **error);
Validates a route attribute, i.e. checks that the attribute is a known one
and the value is of the correct type and well-formed.
@@ -2958,7 +2970,7 @@ and the value is of the correct type and well-formed.
error
-
+
@@ -2966,7 +2978,7 @@ and the value is of the correct type and well-formed.
Since: 1.8
@@ -3089,7 +3101,7 @@ the instance if the reference count reaches zero.
nm_ip_routing_rule_is_sealed ()
-gboolean
+gboolean
nm_ip_routing_rule_is_sealed (const NMIPRoutingRule *self);
Parameters
@@ -3169,7 +3181,7 @@ nm_ip_routing_rule_get_addr_family (const
nm_ip_routing_rule_get_invert ()
-gboolean
+gboolean
nm_ip_routing_rule_get_invert (const NMIPRoutingRule *self);
Parameters
@@ -3197,7 +3209,7 @@ nm_ip_routing_rule_get_invert (const nm_ip_routing_rule_set_invert ()
void
nm_ip_routing_rule_set_invert (NMIPRoutingRule *self,
- gboolean invert);
+ gboolean invert);
Parameters