shill: Add a command line option that controls the default technology order
This can be used to configure a preference for a particular network on a given
device. For example, a device may want to use the mobile network for all
traffic even if an open wifi network is available.
BUG=chromium:453607
TEST=Added the flag via /etc/init/shill.override and confirmed that dbus GetServiceOrder returned the new order
Change-Id: Ifac0baa4feeaae4a780d4d74f2bd195b4e4dd31d
Reviewed-on: https://chromium-review.googlesource.com/248610
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Jason Simmons <jsimmons@chromium.org>
Commit-Queue: Jason Simmons <jsimmons@chromium.org>
diff --git a/shill_daemon.h b/shill_daemon.h
index c886192..d2cbf19 100644
--- a/shill_daemon.h
+++ b/shill_daemon.h
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
+#include <vector>
#include "shill/control_interface.h"
#include "shill/event_dispatcher.h"
@@ -28,7 +29,8 @@
class Daemon {
public:
- Daemon(Config *config, ControlInterface *control);
+ Daemon(Config *config, ControlInterface *control,
+ const std::vector<Technology::Identifier> &default_technology_order);
~Daemon();
void AddDeviceToBlackList(const std::string &device_name);