mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 04:58:14 +00:00
add missing file
This commit is contained in:
parent
60d5695501
commit
ad29346e10
1 changed files with 53 additions and 0 deletions
53
java/impl/org/linphone/core/TunnelConfigImpl.java
Normal file
53
java/impl/org/linphone/core/TunnelConfigImpl.java
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
package org.linphone.core;
|
||||
|
||||
public class TunnelConfigImpl implements TunnelConfig{
|
||||
long mNativePtr;
|
||||
protected TunnelConfigImpl(long nativePtr){
|
||||
mNativePtr = nativePtr;
|
||||
}
|
||||
private native String getHost(long nativePtr);
|
||||
@Override
|
||||
public String getHost() {
|
||||
return getHost(mNativePtr);
|
||||
}
|
||||
private native void setHost(long nativePtr, String host);
|
||||
@Override
|
||||
public void setHost(String host) {
|
||||
setHost(mNativePtr, host);
|
||||
}
|
||||
private native int getPort(long nativePtr);
|
||||
@Override
|
||||
public int getPort() {
|
||||
return getPort(mNativePtr);
|
||||
}
|
||||
private native void setPort(long nativePtr, int port);
|
||||
@Override
|
||||
public void setPort(int port) {
|
||||
setPort(mNativePtr, port);
|
||||
}
|
||||
private native int getRemoteUdpMirrorPort(long nativePtr);
|
||||
@Override
|
||||
public int getRemoteUdpMirrorPort() {
|
||||
return getRemoteUdpMirrorPort(mNativePtr);
|
||||
}
|
||||
private native void setRemoteUdpMirrorPort(long nativePtr, int remoteUdpMirrorPort);
|
||||
@Override
|
||||
public void setRemoteUdpMirrorPort(int remoteUdpMirrorPort) {
|
||||
setRemoteUdpMirrorPort(mNativePtr, remoteUdpMirrorPort);
|
||||
}
|
||||
private native int getDelay(long nativePtr);
|
||||
@Override
|
||||
public int getDelay() {
|
||||
return getDelay(mNativePtr);
|
||||
}
|
||||
private native void setDelay(long nativePtr, int delay);
|
||||
@Override
|
||||
public void setDelay(int delay) {
|
||||
setDelay(mNativePtr, delay);
|
||||
}
|
||||
private native void enableSip(long nativePtr, boolean enabled);
|
||||
private native void destroy(long nativePtr);
|
||||
protected void finalize() throws Throwable {
|
||||
if (mNativePtr!=0) destroy(mNativePtr);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue