mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 09:09:21 +00:00
Some fixes
This commit is contained in:
parent
f385c6d2f0
commit
67ae4525c9
2 changed files with 6 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class LinphoneAuthInfoImpl implements LinphoneAuthInfo {
|
|||
private native long newLinphoneAuthInfo(String username, String userid, String passwd, String ha1,String realm);
|
||||
private native void delete(long ptr);
|
||||
protected LinphoneAuthInfoImpl(String username,String password, String realm) {
|
||||
nativePtr = newLinphoneAuthInfo(username,null,password,null,realm);
|
||||
nativePtr = newLinphoneAuthInfo(username,"",password,"","");
|
||||
}
|
||||
protected void finalize() throws Throwable {
|
||||
delete(nativePtr);
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class LinphoneCallLogImpl implements LinphoneCallLog {
|
|||
private native int getStatus(long nativePtr);
|
||||
private native String getStartDate(long nativePtr);
|
||||
private native int getCallDuration(long nativePtr);
|
||||
private native int getCallId(long nativePtr);
|
||||
|
||||
LinphoneCallLogImpl(long aNativePtr) {
|
||||
nativePtr = aNativePtr;
|
||||
|
|
@ -60,4 +61,8 @@ class LinphoneCallLogImpl implements LinphoneCallLog {
|
|||
public int getCallDuration() {
|
||||
return getCallDuration(nativePtr);
|
||||
}
|
||||
@Override
|
||||
public int getCallId() {
|
||||
return getCallId(nativePtr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue