diff options
author | Chia-chi Yeh <chiachi@android.com> | 2010-07-07 15:24:28 +0800 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2010-07-07 15:24:28 +0800 |
commit | 6f70982ebcf40c149d4cfbdc803679fc20b1ee4a (patch) | |
tree | d71f57ad4a63f369076be2a913d9e0d3ca08e89b | |
parent | 3e792835c3821efd4820634d88657ca639770207 (diff) | |
download | nist-sip-6f70982ebcf40c149d4cfbdc803679fc20b1ee4a.tar.gz |
RTP: add the missing file for librtp_jni.
Change-Id: Ie35a7ca367b0e636662d68e2c84f4e66e937879a
-rw-r--r-- | src/jni/rtp_jni/rtp_jni.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/jni/rtp_jni/rtp_jni.cpp b/src/jni/rtp_jni/rtp_jni.cpp new file mode 100644 index 0000000..9f4bff9 --- /dev/null +++ b/src/jni/rtp_jni/rtp_jni.cpp @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2010 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <stdio.h> + +#include "jni.h" + +extern int registerRtpStream(JNIEnv *env); +extern int registerAudioGroup(JNIEnv *env); + +__attribute__((visibility("default"))) jint JNI_OnLoad(JavaVM *vm, void *unused) +{ + JNIEnv *env = NULL; + if (vm->GetEnv((void **)&env, JNI_VERSION_1_4) != JNI_OK || + registerRtpStream(env) < 0 || registerAudioGroup(env) < 0) { + return -1; + } + return JNI_VERSION_1_4; +} |