shill: Add Technology class
Move Technology enum out into its own class, and create static
functions for converting between these and strings.
BUG=chromium-os:20114
TEST=Rerun unit tests
Change-Id: I9e3aea44e5d0b14d844328f023b01d7f8ea04c42
Reviewed-on: http://gerrit.chromium.org/gerrit/8204
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/ethernet.cc b/ethernet.cc
index a971bc5..2592b0f 100644
--- a/ethernet.cc
+++ b/ethernet.cc
@@ -63,8 +63,8 @@
Device::Stop();
}
-bool Ethernet::TechnologyIs(const Device::Technology type) const {
- return type == Device::kEthernet;
+bool Ethernet::TechnologyIs(const Technology::Identifier type) const {
+ return type == Technology::kEthernet;
}
void Ethernet::LinkEvent(unsigned int flags, unsigned int change) {