Index: chromecast/base/chromecast_switches.h |
diff --git a/chromecast/base/chromecast_switches.h b/chromecast/base/chromecast_switches.h |
index d692803f7285ba08a655f861ab9b534fbda0aaac..27aa9b35246a247a9046dcf430e3a0dd519d4c89 100644 |
--- a/chromecast/base/chromecast_switches.h |
+++ b/chromecast/base/chromecast_switches.h |
@@ -45,6 +45,7 @@ extern const char kAlsaOutputAvailMin[]; |
extern const char kAlsaCheckCloseTimeout[]; |
extern const char kAlsaEnableUpsampling[]; |
extern const char kAlsaFixedOutputSampleRate[]; |
+extern const char kMaxOutputVolumeDba1m[]; |
// Memory pressure switches |
extern const char kMemPressureSystemReservedKb[]; |
@@ -68,6 +69,17 @@ namespace chromecast { |
bool GetSwitchValueBoolean(const std::string& switch_string, |
const bool default_value); |
+// Gets an integer value from switch |switch_name|. If the switch is not present |
+// in the command line, or the value is not an integer, the |default_value| is |
+// returned. |
+int GetSwitchValueInt(const std::string& switch_name, const int default_value); |
+ |
+// Gets a non-negative integer value from switch |switch_name|. If the switch is |
+// not present in the command line, or the value is not a non-negative integer, |
+// the |default_value| is returned. |
+int GetSwitchValueNonNegativeInt(const std::string& switch_name, |
+ const int default_value); |
+ |
} // namespace chromecast |
#endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |