End of JNI export for getRemoteParams, acceptCallWithParams, acceptCallUpdate and deferCallUpdate

This commit is contained in:
Sylvain Berfini 2012-02-29 16:55:17 +01:00
parent fe0fc97a95
commit 0308e07f0e
2 changed files with 26 additions and 1 deletions

View file

@ -29,6 +29,7 @@ class LinphoneCallImpl implements LinphoneCall {
native private long getRemoteAddress(long nativePtr); native private long getRemoteAddress(long nativePtr);
native private int getState(long nativePtr); native private int getState(long nativePtr);
private native long getCurrentParamsCopy(long nativePtr); private native long getCurrentParamsCopy(long nativePtr);
private native long getRemoteParams(long nativePtr);
private native void enableCamera(long nativePtr, boolean enabled); private native void enableCamera(long nativePtr, boolean enabled);
private native boolean cameraEnabled(long nativePtr); private native boolean cameraEnabled(long nativePtr);
private native void enableEchoCancellation(long nativePtr,boolean enable); private native void enableEchoCancellation(long nativePtr,boolean enable);
@ -74,7 +75,9 @@ class LinphoneCallImpl implements LinphoneCall {
public LinphoneCallParams getCurrentParamsCopy() { public LinphoneCallParams getCurrentParamsCopy() {
return new LinphoneCallParamsImpl(getCurrentParamsCopy(nativePtr)); return new LinphoneCallParamsImpl(getCurrentParamsCopy(nativePtr));
} }
public LinphoneCallParams getRemoteParams() {
return new LinphoneCallParamsImpl(getRemoteParams(nativePtr));
}
public void enableCamera(boolean enabled) { public void enableCamera(boolean enabled) {
enableCamera(nativePtr, enabled); enableCamera(nativePtr, enabled);
} }

View file

@ -670,4 +670,26 @@ class LinphoneCoreImpl implements LinphoneCore {
@Override @Override
public native boolean isTunnelAvailable(); public native boolean isTunnelAvailable();
private native void acceptCallWithParams(long nativePtr, LinphoneCall aCall,
LinphoneCallParams params);
@Override
public void acceptCallWithParams(LinphoneCall aCall,
LinphoneCallParams params) throws LinphoneCoreException {
acceptCallWithParams(nativePtr, aCall, params);
}
private native void acceptCallUpdate(long nativePtr, LinphoneCall aCall, LinphoneCallParams params);
@Override
public void acceptCallUpdate(LinphoneCall aCall, LinphoneCallParams params)
throws LinphoneCoreException {
acceptCallUpdate(nativePtr, aCall, params);
}
private native void deferCallUpdate(long nativePtr, LinphoneCall aCall, LinphoneCallParams params);
@Override
public void deferCallUpdate(LinphoneCall aCall, LinphoneCallParams params)
throws LinphoneCoreException {
deferCallUpdate(nativePtr, aCall, params);
}
} }