forked from mirrors/linphone-iphone
Export JNI of setState() method for LinphoneCall object
This commit is contained in:
parent
221c0c5806
commit
c578cdcf6e
2 changed files with 14 additions and 1 deletions
|
|
@ -875,6 +875,17 @@ extern "C" void Java_org_linphone_core_LinphoneCallParamsImpl_setMediaEncryption
|
|||
linphone_call_params_set_media_encryption((LinphoneCallParams*)cp,(LinphoneMediaEncryption)jmenc);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCallImpl_setState(JNIEnv* env,
|
||||
jobject thiz,
|
||||
jlong call,
|
||||
int state,
|
||||
jstring message) {
|
||||
|
||||
const char* jmessage = env->GetStringUTFChars(message, NULL);
|
||||
linphone_call_set_state(call, state, jmessage);
|
||||
env->ReleaseStringUTFChars(message, jmessage);
|
||||
}
|
||||
|
||||
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_getMediaEncryptionMandatory(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public interface LinphoneCall {
|
|||
static private Vector values = new Vector();
|
||||
private final int mValue;
|
||||
public final int value() {return mValue;}
|
||||
|
||||
|
||||
private final String mStringValue;
|
||||
/**
|
||||
* Idle
|
||||
|
|
@ -244,4 +244,6 @@ public interface LinphoneCall {
|
|||
boolean isInConference();
|
||||
|
||||
float getPlayVolume();
|
||||
|
||||
void setState(State state, String message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue