Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: webrtc/modules/audio_device/linux/latebindingsymboltable_linux.cc

Issue 2818563003: Rename the webrtc_adm_linux* namespaces to webrtc::adm_linux* (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 13 #include "webrtc/system_wrappers/include/trace.h"
14 14
15 #ifdef WEBRTC_LINUX 15 #ifdef WEBRTC_LINUX
16 #include <dlfcn.h> 16 #include <dlfcn.h>
17 #endif 17 #endif
18 18
19 // TODO(grunell): Either put inside webrtc namespace or use webrtc:: instead. 19 namespace webrtc {
20 using namespace webrtc; 20 namespace adm_linux {
21
22 namespace webrtc_adm_linux {
23 21
24 inline static const char *GetDllError() { 22 inline static const char *GetDllError() {
25 #ifdef WEBRTC_LINUX 23 #ifdef WEBRTC_LINUX
26 char *err = dlerror(); 24 char *err = dlerror();
27 if (err) { 25 if (err) {
28 return err; 26 return err;
29 } else { 27 } else {
30 return "No error"; 28 return "No error";
31 } 29 }
32 #else 30 #else
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 dlerror(); 98 dlerror();
101 #endif 99 #endif
102 for (int i = 0; i < num_symbols; ++i) { 100 for (int i = 0; i < num_symbols; ++i) {
103 if (!LoadSymbol(handle, symbol_names[i], &symbols[i])) { 101 if (!LoadSymbol(handle, symbol_names[i], &symbols[i])) {
104 return false; 102 return false;
105 } 103 }
106 } 104 }
107 return true; 105 return true;
108 } 106 }
109 107
110 } // namespace webrtc_adm_linux 108 } // namespace adm_linux
109 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698