OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 18 matching lines...) Expand all Loading... |
29 ~Statistics(); | 29 ~Statistics(); |
30 | 30 |
31 int32_t SetInitialized(); | 31 int32_t SetInitialized(); |
32 int32_t SetUnInitialized(); | 32 int32_t SetUnInitialized(); |
33 bool Initialized() const; | 33 bool Initialized() const; |
34 int32_t SetLastError(int32_t error) const; | 34 int32_t SetLastError(int32_t error) const; |
35 int32_t SetLastError(int32_t error, TraceLevel level) const; | 35 int32_t SetLastError(int32_t error, TraceLevel level) const; |
36 int32_t SetLastError(int32_t error, | 36 int32_t SetLastError(int32_t error, |
37 TraceLevel level, | 37 TraceLevel level, |
38 const char* msg) const; | 38 const char* msg) const; |
39 int32_t LastError() const; | |
40 | 39 |
41 private: | 40 private: |
42 rtc::CriticalSection lock_; | 41 rtc::CriticalSection lock_; |
43 const uint32_t _instanceId; | 42 const uint32_t _instanceId; |
44 mutable int32_t _lastError; | 43 mutable int32_t _lastError; |
45 bool _isInitialized; | 44 bool _isInitialized; |
46 }; | 45 }; |
47 | 46 |
48 } // namespace voe | 47 } // namespace voe |
49 | 48 |
50 } // namespace webrtc | 49 } // namespace webrtc |
51 | 50 |
52 #endif // VOICE_ENGINE_STATISTICS_H_ | 51 #endif // VOICE_ENGINE_STATISTICS_H_ |
OLD | NEW |