OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 34 matching lines...) Loading... |
45 #define STR_CASE_CMP(s1, s2) ::_stricmp(s1, s2) | 45 #define STR_CASE_CMP(s1, s2) ::_stricmp(s1, s2) |
46 // Compares characters of two strings without regard to case. | 46 // Compares characters of two strings without regard to case. |
47 #define STR_NCASE_CMP(s1, s2, n) ::_strnicmp(s1, s2, n) | 47 #define STR_NCASE_CMP(s1, s2, n) ::_strnicmp(s1, s2, n) |
48 #else | 48 #else |
49 #define STR_CASE_CMP(s1, s2) ::strcasecmp(s1, s2) | 49 #define STR_CASE_CMP(s1, s2) ::strcasecmp(s1, s2) |
50 #define STR_NCASE_CMP(s1, s2, n) ::strncasecmp(s1, s2, n) | 50 #define STR_NCASE_CMP(s1, s2, n) ::strncasecmp(s1, s2, n) |
51 #endif | 51 #endif |
52 | 52 |
53 namespace webrtc { | 53 namespace webrtc { |
54 | 54 |
55 class Config; | |
56 | |
57 class RewindableStream { | 55 class RewindableStream { |
58 public: | 56 public: |
59 virtual ~RewindableStream() {} | 57 virtual ~RewindableStream() {} |
60 virtual int Rewind() = 0; | 58 virtual int Rewind() = 0; |
61 }; | 59 }; |
62 | 60 |
63 class InStream : public RewindableStream { | 61 class InStream : public RewindableStream { |
64 public: | 62 public: |
65 // Reads |len| bytes from file to |buf|. Returns the number of bytes read | 63 // Reads |len| bytes from file to |buf|. Returns the number of bytes read |
66 // or -1 on error. | 64 // or -1 on error. |
(...skipping 753 matching lines...) Loading... |
820 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 818 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
821 | 819 |
822 enum NetworkState { | 820 enum NetworkState { |
823 kNetworkUp, | 821 kNetworkUp, |
824 kNetworkDown, | 822 kNetworkDown, |
825 }; | 823 }; |
826 | 824 |
827 } // namespace webrtc | 825 } // namespace webrtc |
828 | 826 |
829 #endif // WEBRTC_COMMON_TYPES_H_ | 827 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |