diff options
Diffstat (limited to 'include/vintf/TransportArch.h')
-rw-r--r-- | include/vintf/TransportArch.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/vintf/TransportArch.h b/include/vintf/TransportArch.h index f09b6f0..b1d9352 100644 --- a/include/vintf/TransportArch.h +++ b/include/vintf/TransportArch.h | |||
@@ -28,7 +28,16 @@ struct TransportArch { | |||
28 | Transport transport = Transport::EMPTY; | 28 | Transport transport = Transport::EMPTY; |
29 | Arch arch = Arch::ARCH_EMPTY; | 29 | Arch arch = Arch::ARCH_EMPTY; |
30 | 30 | ||
31 | private: | 31 | inline bool operator==(const TransportArch& other) const { |
32 | return transport == other.transport && arch == other.arch; | ||
33 | } | ||
34 | inline bool operator<(const TransportArch& other) const { | ||
35 | if (transport < other.transport) return true; | ||
36 | if (transport > other.transport) return false; | ||
37 | return arch < other.arch; | ||
38 | } | ||
39 | |||
40 | private: | ||
32 | friend struct TransportArchConverter; | 41 | friend struct TransportArchConverter; |
33 | friend struct ManifestHalConverter; | 42 | friend struct ManifestHalConverter; |
34 | friend struct ManifestHal; | 43 | friend struct ManifestHal; |