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 |
11 // This is the pure C wrapper of the DataLog class. | 11 // This is the pure C wrapper of the DataLog class. |
12 | 12 |
13 #include "webrtc/system_wrappers/interface/data_log_c.h" | 13 #include "webrtc/system_wrappers/include/data_log_c.h" |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "webrtc/system_wrappers/interface/data_log.h" | 17 #include "webrtc/system_wrappers/include/data_log.h" |
18 | 18 |
19 extern "C" int WebRtcDataLog_CreateLog() { | 19 extern "C" int WebRtcDataLog_CreateLog() { |
20 return webrtc::DataLog::CreateLog(); | 20 return webrtc::DataLog::CreateLog(); |
21 } | 21 } |
22 | 22 |
23 extern "C" void WebRtcDataLog_ReturnLog() { | 23 extern "C" void WebRtcDataLog_ReturnLog() { |
24 return webrtc::DataLog::ReturnLog(); | 24 return webrtc::DataLog::ReturnLog(); |
25 } | 25 } |
26 | 26 |
27 extern "C" char* WebRtcDataLog_Combine(char* combined_name, size_t combined_len, | 27 extern "C" char* WebRtcDataLog_Combine(char* combined_name, size_t combined_len, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 const int64_t* values, | 134 const int64_t* values, |
135 int length) { | 135 int length) { |
136 if (!table_name || !column_name) return -1; | 136 if (!table_name || !column_name) return -1; |
137 return webrtc::DataLog::InsertCell(table_name, column_name, values, length); | 137 return webrtc::DataLog::InsertCell(table_name, column_name, values, length); |
138 } | 138 } |
139 | 139 |
140 extern "C" int WebRtcDataLog_NextRow(const char* table_name) { | 140 extern "C" int WebRtcDataLog_NextRow(const char* table_name) { |
141 if (!table_name) return -1; | 141 if (!table_name) return -1; |
142 return webrtc::DataLog::NextRow(table_name); | 142 return webrtc::DataLog::NextRow(table_name); |
143 } | 143 } |
OLD | NEW |