Index: remoting/base/util.h |
diff --git a/remoting/base/util.h b/remoting/base/util.h |
index c8c70210f686051ee474ffe0fbfe6931a2da6ebe..d11d407d281ad4e30c1a56f5ebb90fce67ade20b 100644 |
--- a/remoting/base/util.h |
+++ b/remoting/base/util.h |
@@ -96,6 +96,11 @@ bool StringIsUtf8(const char* data, size_t length); |
bool DoesRectContain(const webrtc::DesktopRect& a, |
const webrtc::DesktopRect& b); |
+// Parse string in the form "<min_port>-<max_port>". E.g. "12400-12409". |
+// Returns true if string was parsed successfuly. |
+bool ParsePortRange(const std::string& port_range, int* out_min_port, |
Sergey Ulanov
2014/03/24 23:37:12
nit:move out_min_port to the next line (one argume
Sergey Ulanov
2014/03/24 23:37:12
This doesn't belong in remoting/base (and I'd like
dcaiafa
2014/03/26 15:29:16
Done.
dcaiafa
2014/03/26 15:29:16
Moved to network_settings.*
|
+ int* out_max_port); |
+ |
} // namespace remoting |
#endif // REMOTING_BASE_UTIL_H_ |