12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef UPDATE_ENGINE_CONNECTION_UTILS_H_
- #define UPDATE_ENGINE_CONNECTION_UTILS_H_
- #include <string>
- namespace chromeos_update_engine {
- enum class ConnectionType {
- kDisconnected,
- kEthernet,
- kWifi,
- kWimax,
- kBluetooth,
- kCellular,
- kUnknown
- };
- enum class ConnectionTethering {
- kNotDetected,
- kSuspected,
- kConfirmed,
- kUnknown,
- };
- namespace connection_utils {
- ConnectionType ParseConnectionType(const std::string& type_str);
- ConnectionTethering ParseConnectionTethering(const std::string& tethering_str);
- const char* StringForConnectionType(ConnectionType type);
- }
- }
- #endif
|