OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 |
11 #include "webrtc/modules/audio_device/linux/latebindingsymboltable_linux.h" | 11 #include "webrtc/modules/audio_device/linux/latebindingsymboltable_linux.h" |
12 | 12 |
| 13 #include "webrtc/system_wrappers/include/trace.h" |
| 14 |
13 #ifdef WEBRTC_LINUX | 15 #ifdef WEBRTC_LINUX |
14 #include <dlfcn.h> | 16 #include <dlfcn.h> |
15 #endif | 17 #endif |
16 | 18 |
17 // TODO(grunell): Either put inside webrtc namespace or use webrtc:: instead. | 19 // TODO(grunell): Either put inside webrtc namespace or use webrtc:: instead. |
18 using namespace webrtc; | 20 using namespace webrtc; |
19 | 21 |
20 namespace webrtc_adm_linux { | 22 namespace webrtc_adm_linux { |
21 | 23 |
22 inline static const char *GetDllError() { | 24 inline static const char *GetDllError() { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 #endif | 101 #endif |
100 for (int i = 0; i < num_symbols; ++i) { | 102 for (int i = 0; i < num_symbols; ++i) { |
101 if (!LoadSymbol(handle, symbol_names[i], &symbols[i])) { | 103 if (!LoadSymbol(handle, symbol_names[i], &symbols[i])) { |
102 return false; | 104 return false; |
103 } | 105 } |
104 } | 106 } |
105 return true; | 107 return true; |
106 } | 108 } |
107 | 109 |
108 } // namespace webrtc_adm_linux | 110 } // namespace webrtc_adm_linux |
OLD | NEW |