diff options
author | Dan Winship <danw@gnome.org> | 2014-11-04 15:48:48 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-11-06 16:59:18 -0500 |
commit | 4cc45c312bad63f8e769412a6ee664a8ca31a91c (patch) | |
tree | 3df68488e62a76baae2a54a5fe138c4e3a299bcb /libnm-core/nm-setting-ip-config.h | |
parent | 4efa495b80dbe6694534ee1838424358c6e9d41f (diff) | |
download | NetworkManager-danw/addressdata-bgo682946.tar.gz |
all: allow route metrics to be "0"danw/addressdata-bgo682946
Change NMIPRoute to use "-1" for "default", so that "0" is a valid
metric. Update everything for that.
Diffstat (limited to 'libnm-core/nm-setting-ip-config.h')
-rw-r--r-- | libnm-core/nm-setting-ip-config.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libnm-core/nm-setting-ip-config.h b/libnm-core/nm-setting-ip-config.h index 37437761c4..fba226c331 100644 --- a/libnm-core/nm-setting-ip-config.h +++ b/libnm-core/nm-setting-ip-config.h @@ -78,13 +78,13 @@ NMIPRoute *nm_ip_route_new (int family, const char *dest, guint prefix, const char *next_hop, - guint metric, + gint64 metric, GError **error); NMIPRoute *nm_ip_route_new_binary (int family, gconstpointer dest, guint prefix, gconstpointer next_hop, - guint metric, + gint64 metric, GError **error); void nm_ip_route_ref (NMIPRoute *route); @@ -111,9 +111,9 @@ gboolean nm_ip_route_get_next_hop_binary (NMIPRoute *route, gpointer next_hop); void nm_ip_route_set_next_hop_binary (NMIPRoute *route, gconstpointer next_hop); -guint32 nm_ip_route_get_metric (NMIPRoute *route); +gint64 nm_ip_route_get_metric (NMIPRoute *route); void nm_ip_route_set_metric (NMIPRoute *route, - guint32 metric); + gint64 metric); char **nm_ip_route_get_attribute_names (NMIPRoute *route); GVariant *nm_ip_route_get_attribute (NMIPRoute *route, |