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

Unified Diff: webrtc/sdk/android/src/jni/pc/callsessionfilerotatinglogsink_jni.cc

Issue 2998403002: Android: Update convenience macro defining JNI-accessible methods (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/sdk/android/src/jni/pc/audiotrack_jni.cc ('k') | webrtc/sdk/android/src/jni/pc/datachannel_jni.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/src/jni/pc/callsessionfilerotatinglogsink_jni.cc
diff --git a/webrtc/sdk/android/src/jni/pc/callsessionfilerotatinglogsink_jni.cc b/webrtc/sdk/android/src/jni/pc/callsessionfilerotatinglogsink_jni.cc
index 42763b608454abdfa58b0cae0c05cbef7a930c50..eeca18535555ffbdc20b9af64b121d0c60a1a80a 100644
--- a/webrtc/sdk/android/src/jni/pc/callsessionfilerotatinglogsink_jni.cc
+++ b/webrtc/sdk/android/src/jni/pc/callsessionfilerotatinglogsink_jni.cc
@@ -13,8 +13,13 @@
namespace webrtc_jni {
-JOW(jlong, CallSessionFileRotatingLogSink_nativeAddSink)
-(JNIEnv* jni, jclass, jstring j_dirPath, jint j_maxFileSize, jint j_severity) {
+JNI_FUNCTION_DECLARATION(jlong,
+ CallSessionFileRotatingLogSink_nativeAddSink,
+ JNIEnv* jni,
+ jclass,
+ jstring j_dirPath,
+ jint j_maxFileSize,
+ jint j_severity) {
std::string dir_path = JavaToStdString(jni, j_dirPath);
rtc::CallSessionFileRotatingLogSink* sink =
new rtc::CallSessionFileRotatingLogSink(dir_path, j_maxFileSize);
@@ -30,16 +35,22 @@ JOW(jlong, CallSessionFileRotatingLogSink_nativeAddSink)
return (jlong)sink;
}
-JOW(void, CallSessionFileRotatingLogSink_nativeDeleteSink)
-(JNIEnv* jni, jclass, jlong j_sink) {
+JNI_FUNCTION_DECLARATION(void,
+ CallSessionFileRotatingLogSink_nativeDeleteSink,
+ JNIEnv* jni,
+ jclass,
+ jlong j_sink) {
rtc::CallSessionFileRotatingLogSink* sink =
reinterpret_cast<rtc::CallSessionFileRotatingLogSink*>(j_sink);
rtc::LogMessage::RemoveLogToStream(sink);
delete sink;
}
-JOW(jbyteArray, CallSessionFileRotatingLogSink_nativeGetLogData)
-(JNIEnv* jni, jclass, jstring j_dirPath) {
+JNI_FUNCTION_DECLARATION(jbyteArray,
+ CallSessionFileRotatingLogSink_nativeGetLogData,
+ JNIEnv* jni,
+ jclass,
+ jstring j_dirPath) {
std::string dir_path = JavaToStdString(jni, j_dirPath);
std::unique_ptr<rtc::CallSessionFileRotatingStream> stream(
new rtc::CallSessionFileRotatingStream(dir_path));
« no previous file with comments | « webrtc/sdk/android/src/jni/pc/audiotrack_jni.cc ('k') | webrtc/sdk/android/src/jni/pc/datachannel_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698