summaryrefslogtreecommitdiff
path: root/src/nm-default-route-manager.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-31 23:26:48 +0100
committerThomas Haller <thaller@redhat.com>2014-11-07 15:23:12 +0100
commitff40ccf8994ab5a45f88bc95bd0ef7467c0810e0 (patch)
tree57bee584802b753aa9cff892006fb4c9948ba1ca /src/nm-default-route-manager.h
parenta39a3ae4cd72d695f1b5d10eaa79544f2020a54e (diff)
downloadNetworkManager-ff40ccf8994ab5a45f88bc95bd0ef7467c0810e0.tar.gz
policy: move get_best_config() function to nm-default-route-manager
No functional change, only refactoring by moving and combining the code. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/nm-default-route-manager.h')
-rw-r--r--src/nm-default-route-manager.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nm-default-route-manager.h b/src/nm-default-route-manager.h
index bf24366329..6961979404 100644
--- a/src/nm-default-route-manager.h
+++ b/src/nm-default-route-manager.h
@@ -60,5 +60,24 @@ gboolean nm_default_route_manager_ip6_connection_has_default_route (NMDefaultRou
NMDevice *nm_default_route_manager_ip4_get_best_device (NMDefaultRouteManager *manager, const GSList *devices, gboolean fully_activated, NMDevice *preferred_device);
NMDevice *nm_default_route_manager_ip6_get_best_device (NMDefaultRouteManager *manager, const GSList *devices, gboolean fully_activated, NMDevice *preferred_device);
+NMIP4Config *nm_default_route_manager_ip4_get_best_config (NMDefaultRouteManager *manager,
+ NMManager *nm_manager,
+ gboolean ignore_never_default,
+ NMDevice *preferred_device,
+ const char **out_ip_iface,
+ int *out_ip_ifindex,
+ NMActiveConnection **out_ac,
+ NMDevice **out_device,
+ NMVpnConnection **out_vpn);
+NMIP6Config *nm_default_route_manager_ip6_get_best_config (NMDefaultRouteManager *manager,
+ NMManager *nm_manager,
+ gboolean ignore_never_default,
+ NMDevice *preferred_device,
+ const char **out_ip_iface,
+ int *out_ip_ifindex,
+ NMActiveConnection **out_ac,
+ NMDevice **out_device,
+ NMVpnConnection **out_vpn);
+
#endif /* NM_DEFAULT_ROUTE_MANAGER_H */