Commit 42b51aaa authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Uniformized set/get_passwd in set/get_password

parent 47824233
......@@ -83,6 +83,10 @@ const char *linphone_auth_info_get_username(const LinphoneAuthInfo *i) {
}
const char *linphone_auth_info_get_passwd(const LinphoneAuthInfo *i) {
return linphone_auth_info_get_password(i);
}
const char *linphone_auth_info_get_password(const LinphoneAuthInfo *i) {
return i->passwd;
}
......@@ -118,8 +122,11 @@ const char *linphone_auth_info_get_tls_key_path(const LinphoneAuthInfo *i) {
return i->tls_key_path;
}
void linphone_auth_info_set_passwd(LinphoneAuthInfo *info, const char *passwd) {
linphone_auth_info_set_password(info, passwd);
}
void linphone_auth_info_set_password(LinphoneAuthInfo *info, const char *passwd) {
if (info->passwd) {
ms_free(info->passwd);
info->passwd = NULL;
......
......@@ -78,6 +78,22 @@ LINPHONE_PUBLIC void linphone_auth_info_unref(LinphoneAuthInfo *info);
**/
LINPHONE_PUBLIC void linphone_auth_info_set_passwd(LinphoneAuthInfo *info, const char *passwd);
/**
* Sets the password.
* @param[in] info The #LinphoneAuthInfo object
* @param[in] passwd The password.
* @deprecated, use linphone_auth_info_set_password instead
* @donotwrap
**/
LINPHONE_PUBLIC void linphone_auth_info_set_passwd(LinphoneAuthInfo *info, const char *passwd);
/**
* Sets the password.
* @param[in] info The #LinphoneAuthInfo object
* @param[in] passwd The password.
**/
LINPHONE_PUBLIC void linphone_auth_info_set_password(LinphoneAuthInfo *info, const char *passwd);
/**
* Sets the username.
* @param[in] info The #LinphoneAuthInfo object
......@@ -154,9 +170,19 @@ LINPHONE_PUBLIC const char *linphone_auth_info_get_username(const LinphoneAuthIn
* Gets the password.
* @param[in] info The #LinphoneAuthInfo object
* @return The password.
* @deprecated, use linphone_auth_info_get_password instead
* @donotwrap
*/
LINPHONE_PUBLIC const char *linphone_auth_info_get_passwd(const LinphoneAuthInfo *info);
/**
* Gets the password.
* @param[in] info The #LinphoneAuthInfo object
* @return The password.
*/
LINPHONE_PUBLIC const char *linphone_auth_info_get_password(const LinphoneAuthInfo *info);
/**
* Gets the userid.
* @param[in] info The #LinphoneAuthInfo object
......
#!/bin/sh
SRC_DIR="src/android/org/linphone/*.java"
SED_START='find ./src/android/org/linphone/ -type f -exec sed -i -e '
SED_END='{} \;'
# Listeners
sed -i 's/AccountCreator.AccountCreatorListener/AccountCreatorListener/g' $SRC_DIR
sed -i 's/LinphoneCoreListenerBase/CoreListenerStub/g' $SRC_DIR
sed -i 's/LinphoneCoreListener/CoreListener/g' $SRC_DIR
sed -i 's/LinphoneChatMessage.LinphoneChatMessageListener/ChatMessageListener/g' $SRC_DIR
sed -i 's/AccountCreator.AccountCreatorListener/AccountCreatorListener/g' $SRC_DIR
eval "$SED_START 's/AccountCreator.AccountCreatorListener/AccountCreatorListener/g' $SED_END"
eval "$SED_START 's/LinphoneCoreListenerBase/CoreListenerStub/g' $SED_END"
eval "$SED_START 's/LinphoneCoreListener/CoreListener/g' $SED_END"
eval "$SED_START 's/LinphoneChatMessage.LinphoneChatMessageListener/ChatMessageListener/g' $SED_END"
# Enums
sed -i 's/Core.LinphoneLimeState/Core.LimeState/g' $SRC_DIR
sed -i 's/LinphoneLimeState/LimeState/g' $SRC_DIR
eval "$SED_START 's/Core.LinphoneLimeState/Core.LimeState/g' $SED_END"
eval "$SED_START 's/LinphoneLimeState/LimeState/g' $SED_END"
sed -i 's/GlobalState.GlobalOn/Core.GlobalState.On/g' $SRC_DIR
eval "$SED_START 's/GlobalState.GlobalOn/Core.GlobalState.On/g' $SED_END"
sed -i 's/RegistrationState.RegistrationOk/RegistrationState.Ok/g' $SRC_DIR
sed -i 's/RegistrationState.RegistrationFailed/RegistrationState.Failed/g' $SRC_DIR
sed -i 's/RegistrationState.RegistrationCleared/RegistrationState.Cleared/g' $SRC_DIR
sed -i 's/RegistrationState.RegistrationProgress/RegistrationState.Progress/g' $SRC_DIR
eval "$SED_START 's/RegistrationState.RegistrationOk/RegistrationState.Ok/g' $SED_END"
eval "$SED_START 's/RegistrationState.RegistrationFailed/RegistrationState.Failed/g' $SED_END"
eval "$SED_START 's/RegistrationState.RegistrationCleared/RegistrationState.Cleared/g' $SED_END"
eval "$SED_START 's/RegistrationState.RegistrationProgress/RegistrationState.Progress/g' $SED_END"
sed -i 's/RemoteProvisioningState.ConfiguringSuccessful/ConfiguringState.Successful/g' $SRC_DIR
sed -i 's/LinphoneCore.RemoteProvisioningState/Core.ConfiguringState/g' $SRC_DIR
sed -i 's/RemoteProvisioningState/ConfiguringState/g' $SRC_DIR
eval "$SED_START 's/RemoteProvisioningState.ConfiguringSuccessful/ConfiguringState.Successful/g' $SED_END"
eval "$SED_START 's/LinphoneCore.RemoteProvisioningState/Core.ConfiguringState/g' $SED_END"
eval "$SED_START 's/RemoteProvisioningState/ConfiguringState/g' $SED_END"
eval "$SED_START 's/ConfiguringFailed/Failed/g' $SED_END"
sed -i 's/CallDirection/Call.Dir/g' $SRC_DIR
eval "$SED_START 's/CallDirection/Call.Dir/g' $SED_END"
sed -i 's/State.CallReleased/State.Released/g' $SRC_DIR
sed -i 's/State.CallEnd/State.End/g' $SRC_DIR
sed -i 's/State.CallUpdatedByRemote/State.UpdatedByRemote/g' $SRC_DIR
sed -i 's/State.CallIncomingEarlyMedia/State.IncomingEarlyMedia/g' $SRC_DIR
sed -i 's/State.CallUpdating/State.Updating/g' $SRC_DIR
eval "$SED_START 's/State.CallReleased/State.Released/g' $SED_END"
eval "$SED_START 's/State.CallEnd/State.End/g' $SED_END"
eval "$SED_START 's/State.CallUpdatedByRemote/State.UpdatedByRemote/g' $SED_END"
eval "$SED_START 's/State.CallIncomingEarlyMedia/State.IncomingEarlyMedia/g' $SED_END"
eval "$SED_START 's/State.CallUpdating/State.Updating/g' $SED_END"
sed -i 's/LogCollectionUploadState.LogCollectionUploadStateInProgress/LogCollectionUploadState.InProgress/g' $SRC_DIR
sed -i 's/LogCollectionUploadState.LogCollectionUploadStateDelivered/LogCollectionUploadState.Delivered/g' $SRC_DIR
sed -i 's/LogCollectionUploadState.LogCollectionUploadStateNotDelivered/LogCollectionUploadState.NotDelivered/g' $SRC_DIR
eval "$SED_START 's/LogCollectionUploadState.LogCollectionUploadStateInProgress/LogCollectionUploadState.InProgress/g' $SED_END"
eval "$SED_START 's/LogCollectionUploadState.LogCollectionUploadStateDelivered/LogCollectionUploadState.Delivered/g' $SED_END"
eval "$SED_START 's/LogCollectionUploadState.LogCollectionUploadStateNotDelivered/LogCollectionUploadState.NotDelivered/g' $SED_END"
sed -i 's/AccountCreator.RequestStatus/AccountCreator.Status/g' $SRC_DIR
sed -i 's/AccountCreator.Status.Ok/AccountCreator.Status.RequestOk/g' $SRC_DIR
sed -i 's/AccountCreator.PasswordCheck/AccountCreator.PasswordStatus/g' $SRC_DIR
sed -i 's/AccountCreator.PhoneNumberCheck/AccountCreator.PhoneNumberStatus/g' $SRC_DIR
sed -i 's/AccountCreator.EmailCheck/AccountCreator.EmailStatus/g' $SRC_DIR
sed -i 's/AccountCreator.UsernameCheck/AccountCreator.UsernameStatus/g' $SRC_DIR
sed -i 's/AccountCreator.Status.Failed/AccountCreator.Status.RequestFailed/g' $SRC_DIR
sed -i 's/AccountCreator.Status.ErrorServer/AccountCreator.Status.ServerError/g' $SRC_DIR
eval "$SED_START 's/AccountCreator.RequestStatus/AccountCreator.Status/g' $SED_END"
eval "$SED_START 's/AccountCreator.Status.Ok/AccountCreator.Status.RequestOk/g' $SED_END"
eval "$SED_START 's/AccountCreator.PasswordCheck/AccountCreator.PasswordStatus/g' $SED_END"
eval "$SED_START 's/AccountCreator.PhoneNumberCheck/AccountCreator.PhoneNumberStatus/g' $SED_END"
eval "$SED_START 's/AccountCreator.EmailCheck/AccountCreator.EmailStatus/g' $SED_END"
eval "$SED_START 's/AccountCreator.UsernameCheck/AccountCreator.UsernameStatus/g' $SED_END"
eval "$SED_START 's/AccountCreator.Status.Failed/AccountCreator.Status.RequestFailed/g' $SED_END"
eval "$SED_START 's/AccountCreator.Status.ErrorServer/AccountCreator.Status.ServerError/g' $SED_END"
sed -i 's/Reason.Media/Reason.NotAcceptable/g' $SRC_DIR
sed -i 's/Reason.BadCredentials/Reason.Forbidden/g' $SRC_DIR
eval "$SED_START 's/Reason.Media/Reason.NotAcceptable/g' $SED_END"
eval "$SED_START 's/Reason.BadCredentials/Reason.Forbidden/g' $SED_END"
sed -i 's/TransportType.LinphoneTransportUdp/TransportType.Udp/g' $SRC_DIR
sed -i 's/TransportType.LinphoneTransportTcp/TransportType.Tcp/g' $SRC_DIR
sed -i 's/TransportType.LinphoneTransportTls/TransportType.Tls/g' $SRC_DIR
sed -i 's/TransportType.LinphoneTransportDtls/TransportType.Dtls/g' $SRC_DIR
eval "$SED_START 's/TransportType.LinphoneTransportUdp/TransportType.Udp/g' $SED_END"
eval "$SED_START 's/TransportType.LinphoneTransportTcp/TransportType.Tcp/g' $SED_END"
eval "$SED_START 's/TransportType.LinphoneTransportTls/TransportType.Tls/g' $SED_END"
eval "$SED_START 's/TransportType.LinphoneTransportDtls/TransportType.Dtls/g' $SED_END"
eval "$SED_START 's/AddressFamily.INET_6.getInt()/AddressFamily.Inet6.toInt()/g' $SED_END"
eval "$SED_START 's/AddressFamily.INET.getInt()/AddressFamily.Inet.toInt()/g' $SED_END"
# Classes
sed -i 's/LpConfig/Config/g' $SRC_DIR
sed -i 's/LinphoneCoreException/CoreException/g' $SRC_DIR
sed -i 's/LinphoneCoreFactory/Factory/g' $SRC_DIR
sed -i 's/LinphoneAccountCreator/AccountCreator/g' $SRC_DIR
sed -i 's/LinphoneAddress/Address/g' $SRC_DIR
sed -i 's/LinphoneAuthInfo/AuthInfo/g' $SRC_DIR
sed -i 's/LinphoneCallLog/CallLog/g' $SRC_DIR
sed -i 's/LinphoneCallParams/CallParams/g' $SRC_DIR
sed -i 's/LinphoneCallStats/CallStats/g' $SRC_DIR
sed -i 's/LinphoneCall/Call/g' $SRC_DIR
sed -i 's/LinphoneChatMessage/ChatMessage/g' $SRC_DIR
sed -i 's/LinphoneChatRoom/ChatRoom/g' $SRC_DIR
sed -i 's/LinphoneConferenceParams/ConferenceParams/g' $SRC_DIR
sed -i 's/LinphoneConference/Conference/g' $SRC_DIR
sed -i 's/LinphoneConfig/Config/g' $SRC_DIR
sed -i 's/LinphoneContent/Content/g' $SRC_DIR
sed -i 's/LinphoneCore/Core/g' $SRC_DIR
sed -i 's/LinphoneEvent/Event/g' $SRC_DIR
sed -i 's/LinphoneFriendList/FriendList/g' $SRC_DIR
sed -i 's/LinphoneFriend/Friend/g' $SRC_DIR
sed -i 's/LinphoneHeaders/Headers/g' $SRC_DIR
sed -i 's/LinphoneImNotifyPolicy/ImNotifyPolicy/g' $SRC_DIR
sed -i 's/LinphoneInfoMessage/InfoMessage/g' $SRC_DIR
sed -i 's/LinphoneNatPolicy/NatPolicy/g' $SRC_DIR
sed -i 's/LinphonePayloadType/PayloadType/g' $SRC_DIR
sed -i 's/LinphonePlayer/Player/g' $SRC_DIR
sed -i 's/LinphonePresence/Presence/g' $SRC_DIR
sed -i 's/LinphonePrivacy/Privacy/g' $SRC_DIR
sed -i 's/LinphoneProxyConfig/ProxyConfig/g' $SRC_DIR
sed -i 's/LinphonePublishState/PublishState/g' $SRC_DIR
sed -i 's/LinphoneRange/Range/g' $SRC_DIR
sed -i 's/LinphoneStreamType/StreamType/g' $SRC_DIR
sed -i 's/LinphoneSubscription/Subscription/g' $SRC_DIR
sed -i 's/LinphoneTransports/Transports/g' $SRC_DIR
sed -i 's/LinphoneTunnel/Tunnel/g' $SRC_DIR
sed -i 's/LinphoneVcard/Vcard/g' $SRC_DIR
sed -i 's/LinphoneXmlRpc/XmlRpc/g' $SRC_DIR
#Callbacks
sed -i 's/onChatMessageStateChanged/onMsgStateChanged/g' $SRC_DIR
sed -i 's/onChatMessageFileTransferProgressChanged/onFileTransferProgressIndication/g' $SRC_DIR
#Methods
sed -i 's/getFriendList(/getFriendsLists(/g' $SRC_DIR
sed -i 's/getFriendLists()/getFriendsLists()/g' $SRC_DIR
sed -i 's/getIdentity(/getIdentityAddress(/g' $SRC_DIR
sed -i 's/isTunnelAvailable()/tunnelAvailable()/g' $SRC_DIR
sed -i 's/setZrtpSecretsCache(/setZrtpSecretsFile(/g' $SRC_DIR
sed -i 's/setRootCA(/setRootCa(/g' $SRC_DIR
sed -i 's/isInComingInvitePending()/isIncomingInvitePending()/g' $SRC_DIR
sed -i 's/getAudioCodecs()/getAudioPayloadTypes()/g' $SRC_DIR
sed -i 's/getVideoCodecs()/getVideoPayloadTypes()/g' $SRC_DIR
sed -i 's/getMime()/getMimeType()/g' $SRC_DIR
sed -i 's/getFrom()/getFromAddress()/g' $SRC_DIR
sed -i 's/getTo()/getToAddress()/g' $SRC_DIR
sed -i 's/getUserName()/getUsername()/g' $SRC_DIR
sed -i 's/getLimeEncryption()/limeEnabled()/g' $SRC_DIR
sed -i 's/getDirection/getDir/g' $SRC_DIR
sed -i 's/.getVideoEnabled()/.videoEnabled()/g' $SRC_DIR
sed -i 's/.getDataAsString()/.getStringBuffer()/g' $SRC_DIR
sed -i 's/getEventName()/getName()/g' $SRC_DIR
sed -i 's/setPlaybackGain(/setPlaybackGainDb(/g' $SRC_DIR
sed -i 's/isIncall()/inCall()/g' $SRC_DIR
sed -i 's/setVideoEnabled(/enableVideo(/g' $SRC_DIR
sed -i 's/setAudioBandwidth(/setAudioBandwidthLimit(/g' $SRC_DIR
sed -i 's/isAuthenticationTokenVerified()/getAuthenticationTokenVerified()/g' $SRC_DIR
sed -i 's/isMicMuted()/!micEnabled()/g' $SRC_DIR
sed -i 's/isLowBandwidthEnabled()/lowBandwidthEnabled()/g' $SRC_DIR
sed -i 's/muteMic(/enableMic(!/g' $SRC_DIR
sed -i 's/getRate()/getClockRate()/g' $SRC_DIR
sed -i 's/getSentVideoSize()/getSentVideoDefinition()/g' $SRC_DIR
sed -i 's/getReceivedVideoSize()/getReceivedVideoDefinition()/g' $SRC_DIR
sed -i 's/getUsedAudioCodec()/getUsedAudioPayloadType()/g' $SRC_DIR
sed -i 's/getUsedVideoCodec()/getUsedVideoPayloadType()/g' $SRC_DIR
sed -i 's/setVideoWindow(/setNativeVideoWindowId(/g' $SRC_DIR
sed -i 's/setPreviewWindow(/setNativePreviewWindowId(/g' $SRC_DIR
sed -i 's/islimeAvailable()/limeAvailable()/g' $SRC_DIR
sed -i 's/createChatMessage(/createMessage(/g' $SRC_DIR
eval "$SED_START 's/LpConfig/Config/g' $SED_END"
eval "$SED_START 's/LinphoneCoreException/CoreException/g' $SED_END"
eval "$SED_START 's/LinphoneCoreFactory/Factory/g' $SED_END"
eval "$SED_START 's/LinphoneAccountCreator/AccountCreator/g' $SED_END"
eval "$SED_START 's/LinphoneAddress/Address/g' $SED_END"
eval "$SED_START 's/LinphoneAuthInfo/AuthInfo/g' $SED_END"
eval "$SED_START 's/LinphoneCallLog/CallLog/g' $SED_END"
eval "$SED_START 's/LinphoneCallParams/CallParams/g' $SED_END"
eval "$SED_START 's/LinphoneCallStats/CallStats/g' $SED_END"
eval "$SED_START 's/LinphoneCall/Call/g' $SED_END"
eval "$SED_START 's/LinphoneChatMessage/ChatMessage/g' $SED_END"
eval "$SED_START 's/LinphoneChatRoom/ChatRoom/g' $SED_END"
eval "$SED_START 's/LinphoneConferenceParams/ConferenceParams/g' $SED_END"
eval "$SED_START 's/LinphoneConference/Conference/g' $SED_END"
eval "$SED_START 's/LinphoneConfig/Config/g' $SED_END"
eval "$SED_START 's/LinphoneContent/Content/g' $SED_END"
eval "$SED_START 's/LinphoneCore/Core/g' $SED_END"
eval "$SED_START 's/LinphoneEvent/Event/g' $SED_END"
eval "$SED_START 's/LinphoneFriendList/FriendList/g' $SED_END"
eval "$SED_START 's/LinphoneFriend/Friend/g' $SED_END"
eval "$SED_START 's/LinphoneHeaders/Headers/g' $SED_END"
eval "$SED_START 's/LinphoneImNotifyPolicy/ImNotifyPolicy/g' $SED_END"
eval "$SED_START 's/LinphoneInfoMessage/InfoMessage/g' $SED_END"
eval "$SED_START 's/LinphoneNatPolicy/NatPolicy/g' $SED_END"
eval "$SED_START 's/LinphonePayloadType/PayloadType/g' $SED_END"
eval "$SED_START 's/LinphonePlayer/Player/g' $SED_END"
eval "$SED_START 's/LinphonePresence/Presence/g' $SED_END"
eval "$SED_START 's/LinphonePrivacy/Privacy/g' $SED_END"
eval "$SED_START 's/LinphoneProxyConfig/ProxyConfig/g' $SED_END"
eval "$SED_START 's/LinphonePublishState/PublishState/g' $SED_END"
eval "$SED_START 's/LinphoneRange/Range/g' $SED_END"
eval "$SED_START 's/LinphoneStreamType/StreamType/g' $SED_END"
eval "$SED_START 's/LinphoneSubscription/Subscription/g' $SED_END"
eval "$SED_START 's/LinphoneTransports/Transports/g' $SED_END"
eval "$SED_START 's/LinphoneTunnel/Tunnel/g' $SED_END"
eval "$SED_START 's/LinphoneVcard/Vcard/g' $SED_END"
eval "$SED_START 's/LinphoneXmlRpc/XmlRpc/g' $SED_END"
# Callbacks
eval "$SED_START 's/onChatMessageStateChanged/onMsgStateChanged/g' $SED_END"
eval "$SED_START 's/onChatMessageFileTransferProgressChanged/onFileTransferProgressIndication/g' $SED_END"
eval "$SED_START 's/registrationState/onRegistrationStateChanged/g' $SED_END"
# Methods
eval "$SED_START 's/getFriendList(/getFriendsLists(/g' $SED_END"
eval "$SED_START 's/getFriendLists()/getFriendsLists()/g' $SED_END"
eval "$SED_START 's/getIdentity(/getIdentityAddress(/g' $SED_END"
eval "$SED_START 's/isTunnelAvailable()/tunnelAvailable()/g' $SED_END"
eval "$SED_START 's/setZrtpSecretsCache(/setZrtpSecretsFile(/g' $SED_END"
eval "$SED_START 's/setRootCA(/setRootCa(/g' $SED_END"
eval "$SED_START 's/isInComingInvitePending()/isIncomingInvitePending()/g' $SED_END"
eval "$SED_START 's/getAudioCodecs()/getAudioPayloadTypes()/g' $SED_END"
eval "$SED_START 's/getVideoCodecs()/getVideoPayloadTypes()/g' $SED_END"
eval "$SED_START 's/getMime()/getMimeType()/g' $SED_END"
eval "$SED_START 's/getFrom()/getFromAddress()/g' $SED_END"
eval "$SED_START 's/getTo()/getToAddress()/g' $SED_END"
eval "$SED_START 's/getUserName()/getUsername()/g' $SED_END"
eval "$SED_START 's/getLimeEncryption()/limeEnabled()/g' $SED_END"
eval "$SED_START 's/getDirection/getDir/g' $SED_END"
eval "$SED_START 's/.getVideoEnabled()/.videoEnabled()/g' $SED_END"
eval "$SED_START 's/.getDataAsString()/.getStringBuffer()/g' $SED_END"
eval "$SED_START 's/getEventName()/getName()/g' $SED_END"
eval "$SED_START 's/setPlaybackGain(/setPlaybackGainDb(/g' $SED_END"
eval "$SED_START 's/isIncall()/inCall()/g' $SED_END"
eval "$SED_START 's/setVideoEnabled(/enableVideo(/g' $SED_END"
eval "$SED_START 's/setAudioBandwidth(/setAudioBandwidthLimit(/g' $SED_END"
eval "$SED_START 's/isAuthenticationTokenVerified()/getAuthenticationTokenVerified()/g' $SED_END"
eval "$SED_START 's/isMicMuted()/!micEnabled()/g' $SED_END"
eval "$SED_START 's/isLowBandwidthEnabled()/lowBandwidthEnabled()/g' $SED_END"
eval "$SED_START 's/muteMic(/enableMic(!/g' $SED_END"
eval "$SED_START 's/getRate()/getClockRate()/g' $SED_END"
eval "$SED_START 's/getSentVideoSize()/getSentVideoDefinition()/g' $SED_END"
eval "$SED_START 's/getReceivedVideoSize()/getReceivedVideoDefinition()/g' $SED_END"
eval "$SED_START 's/getUsedAudioCodec()/getUsedAudioPayloadType()/g' $SED_END"
eval "$SED_START 's/getUsedVideoCodec()/getUsedVideoPayloadType()/g' $SED_END"
eval "$SED_START 's/setVideoWindow(/setNativeVideoWindowId(/g' $SED_END"
eval "$SED_START 's/setPreviewWindow(/setNativePreviewWindowId(/g' $SED_END"
eval "$SED_START 's/islimeAvailable()/limeAvailable()/g' $SED_END"
eval "$SED_START 's/createChatMessage(/createMessage(/g' $SED_END"
#For messages only
sed -i 's/message.getStatus()/message.getState()/g' $SRC_DIR
eval "$SED_START 's/message.getStatus()/message.getState()/g' $SED_END"
#
sed -i 's/reSend()/resend()/g' $SRC_DIR
sed -i 's/setAppData(/setAppdata(/g' $SRC_DIR
sed -i 's/getAppData()/getAppdata()/g' $SRC_DIR
sed -i 's/getOrCreateChatRoom(/getChatRoomFromUri(/g' $SRC_DIR
sed -i 's/findFriendByAddress(/findFriend(/g' $SRC_DIR
sed -i 's/getTimestamp()/getStartDate()/g' $SRC_DIR
eval "$SED_START 's/reSend()/resend()/g' $SED_END"
eval "$SED_START 's/setAppData(/setAppdata(/g' $SED_END"
eval "$SED_START 's/getAppData()/getAppdata()/g' $SED_END"
eval "$SED_START 's/getOrCreateChatRoom(/getChatRoomFromUri(/g' $SED_END"
eval "$SED_START 's/findFriendByAddress(/findFriend(/g' $SED_END"
eval "$SED_START 's/getTimestamp()/getStartDate()/g' $SED_END"
#For ProxyConfigs only
sed -i 's/lpc.getAddress()/lpc.getIdentityAddress()/g' $SRC_DIR
eval "$SED_START 's/lpc.getAddress()/lpc.getIdentityAddress()/g' $SED_END"
eval "$SED_START 's/cfg.getAddress()/lpc.getIdentityAddress()/g' $SED_END"
#
sed -i 's/getCallDuration()/getDuration()/g' $SRC_DIR
sed -i 's/isVCardSupported()/vcardSupported()/g' $SRC_DIR
sed -i 's/getPresenceModelForUri(/getPresenceModelForUriOrTel(/g' $SRC_DIR
sed -i 's/setAvpfRRInterval(/setAvpfRrInterval(/g' $SRC_DIR
sed -i 's/getProxy()/getServerAddr()/g' $SRC_DIR
sed -i 's/setProxy(/setServerAddr(/g' $SRC_DIR
sed -i 's/setIdentity(/setIdentityAddress(/g' $SRC_DIR
sed -i 's/setUserId(/setUserid(/g' $SRC_DIR
sed -i 's/getUserId(/getUserid/g' $SRC_DIR
sed -i 's/getAuthInfosList(/getAuthInfoList(/g' $SRC_DIR
sed -i 's/getPassword/getPasswd(/g' $SRC_DIR
sed -i 's/getSignalingTransportPorts()/getTransports()/g' $SRC_DIR
sed -i 's/setSignalingTransportPorts(/setTransports(/g' $SRC_DIR
sed -i 's/isIpv6Enabled()/ipv6Enabled()/g' $SRC_DIR
sed -i 's/isAdaptiveRateControlEnabled()/adaptiveRateControlEnabled()/g' $SRC_DIR
sed -i 's/setLimeEncryption(/enableLime(/g' $SRC_DIR
eval "$SED_START 's/getCallDuration()/getDuration()/g' $SED_END"
eval "$SED_START 's/isVCardSupported()/vcardSupported()/g' $SED_END"
eval "$SED_START 's/getPresenceModelForUri(/getPresenceModelForUriOrTel(/g' $SED_END"
eval "$SED_START 's/setAvpfRRInterval(/setAvpfRrInterval(/g' $SED_END"
eval "$SED_START 's/getProxy()/getServerAddr()/g' $SED_END"
eval "$SED_START 's/setProxy(/setServerAddr(/g' $SED_END"
eval "$SED_START 's/setIdentity(/setIdentityAddress(/g' $SED_END"
eval "$SED_START 's/setUserId(/setUserid(/g' $SED_END"
eval "$SED_START 's/getUserId(/getUserid(/g' $SED_END"
eval "$SED_START 's/getAuthInfosList(/getAuthInfoList(/g' $SED_END"
eval "$SED_START 's/getSignalingTransportPorts()/getTransports()/g' $SED_END"
eval "$SED_START 's/setSignalingTransportPorts(/setTransports(/g' $SED_END"
eval "$SED_START 's/isIpv6Enabled()/ipv6Enabled()/g' $SED_END"
eval "$SED_START 's/isAdaptiveRateControlEnabled()/adaptiveRateControlEnabled()/g' $SED_END"
eval "$SED_START 's/setLimeEncryption(/enableLime(/g' $SED_END"
#For enums only
sed -i 's/.value()/.toInt()/g' $SRC_DIR
eval "$SED_START 's/.value()/.toInt()/g' $SED_END"
#
sed -i 's/clearAuthInfos()/clearAllAuthInfo()/g' $SRC_DIR
sed -i 's/clearProxyConfigs()/clearProxyConfig()/g' $SRC_DIR
sed -i 's/isVideoSupported()/videoSupported()/g' $SRC_DIR
#Removed methods
sed -i 's/.isRegistered()/.getState() == RegistrationState.Ok/g' $SRC_DIR
sed -i 's/getBool(/getInt(/g' $SRC_DIR
sed -i 's/setBool(/setInt(/g' $SRC_DIR
sed -i 's/isInConference()/getConference() != null/g' $SRC_DIR
sed -i 's/getAudioStats()/getStats(StreamType.Audio)/g' $SRC_DIR
sed -i 's/getVideoStats()/getStats(StreamType.Audio)/g' $SRC_DIR
sed -i 's/getVcardToString()/getVcard().asVcard4String()/g' $SRC_DIR
sed -i 's/getVideoAutoInitiatePolicy()/getVideoActivationPolicy().getAutomaticallyInitiate()/g' $SRC_DIR
sed -i 's/setFamilyName(/getVcard().setFamilyName(/g' $SRC_DIR
sed -i 's/setGivenName(/getVcard().setGivenName(/g' $SRC_DIR
sed -i 's/setOrganization(/getVcard().setOrganization(/g' $SRC_DIR
sed -i 's/getFamilyName()/getVcard().getFamilyName()/g' $SRC_DIR
sed -i 's/getGivenName()/getVcard().getGivenName()/g' $SRC_DIR
sed -i 's/getOrganization()/getVcard().getOrganization()/g' $SRC_DIR
sed -i 's/enableAvpf(/setAvpfMode(AVPFMode.Enabled)/g' $SRC_DIR
sed -i 's/transports.udp = /transports.setUdpPort(/g' $SRC_DIR
sed -i 's/transports.tcp = /transports.setTcpPort(/g' $SRC_DIR
sed -i 's/transports.tls = /transports.setTlsPort(/g' $SRC_DIR
sed -i 's/transports.udp/transports.getUdpPort()/g' $SRC_DIR
sed -i 's/transports.tcp/transports.getTcpPort()/g' $SRC_DIR
sed -i 's/transports.tls/transports.getTlsPort()/g' $SRC_DIR
sed -i 's/getPrimaryContactUsername()/getPrimaryContactParsed().getUsername()/g' $SRC_DIR
sed -i 's/getPrimaryContactDisplayName()/getPrimaryContactParsed().getDisplayName()/g' $SRC_DIR
#Have disapeared, to check
eval "$SED_START 's/clearAuthInfos()/clearAllAuthInfo()/g' $SED_END"
eval "$SED_START 's/clearProxyConfigs()/clearProxyConfig()/g' $SED_END"
eval "$SED_START 's/isVideoSupported()/videoSupported()/g' $SED_END"
eval "$SED_START 's/VideoDefinition().toDisplayableString()/VideoDefinition().getName()/g' $SED_END"
eval "$SED_START 's/isAccountUsed/isAccountExist()/g' $SED_END"
eval "$SED_START 's/loadXmlFile(/loadFromXmlFile(/g' $SED_END"
eval "$SED_START 's/activatePhoneNumberLink()/activateAlias()/g' $SED_END"
eval "$SED_START 's//g' $SED_END"
# Removed methods
eval "$SED_START 's/.isRegistered()/.getState() == RegistrationState.Ok/g' $SED_END"
eval "$SED_START 's/getBool(/getInt(/g' $SED_END"
eval "$SED_START 's/setBool(/setInt(/g' $SED_END"
eval "$SED_START 's/isInConference()/getConference() != null/g' $SED_END"
eval "$SED_START 's/getAudioStats()/getStats(StreamType.Audio)/g' $SED_END"
eval "$SED_START 's/getVideoStats()/getStats(StreamType.Video)/g' $SED_END"
eval "$SED_START 's/getVcardToString()/getVcard().asVcard4String()/g' $SED_END"
eval "$SED_START 's/getVideoAutoInitiatePolicy()/getVideoActivationPolicy().getAutomaticallyInitiate()/g' $SED_END"
eval "$SED_START 's/setFamilyName(/getVcard().setFamilyName(/g' $SED_END"
eval "$SED_START 's/setGivenName(/getVcard().setGivenName(/g' $SED_END"
eval "$SED_START 's/setOrganization(/getVcard().setOrganization(/g' $SED_END"
eval "$SED_START 's/getFamilyName()/getVcard().getFamilyName()/g' $SED_END"
eval "$SED_START 's/getGivenName()/getVcard().getGivenName()/g' $SED_END"
eval "$SED_START 's/getOrganization()/getVcard().getOrganization()/g' $SED_END"
eval "$SED_START 's/enableAvpf(/setAvpfMode(AVPFMode.Enabled)/g' $SED_END"
eval "$SED_START 's/transports.udp = /transports.setUdpPort(/g' $SED_END"
eval "$SED_START 's/transports.tcp = /transports.setTcpPort(/g' $SED_END"
eval "$SED_START 's/transports.tls = /transports.setTlsPort(/g' $SED_END"
eval "$SED_START 's/transports.udp/transports.getUdpPort()/g' $SED_END"
eval "$SED_START 's/transports.tcp/transports.getTcpPort()/g' $SED_END"
eval "$SED_START 's/transports.tls/transports.getTlsPort()/g' $SED_END"
eval "$SED_START 's/getPrimaryContactUsername()/getPrimaryContactParsed().getUsername()/g' $SED_END"
eval "$SED_START 's/getPrimaryContactDisplayName()/getPrimaryContactParsed().getDisplayName()/g' $SED_END"
#Changes in library required
#OpenH264DownloadHelper
#Core.enablePayloadType()
#Core.isPayloadTypeEnabled()
#Core.payloadTypeIsVbr()
#Core.setPayloadTypeBitrate()
#DialPlan
#LinphoneBuffer
#CallParams.getJitterBufferSize()
#Core.getSupportedVideoSizes()
#Call.zoomVideo()
#Android specifics not wrapped automatically
#Core.needsEchoCalibration()
#Core.removeFriend(
#Core.hasCrappyOpenGL()
#Core.enableSpeaker / isSpeakerEnabled()
#Core.getMSFactory()
#Core.getMSFactory()
# For the payloads, get the list from the Core, call the method on the object directly and set it back if required
#Core.enablePayloadType()
#Core.isPayloadTypeEnabled()
#Core.payloadTypeIsVbr()
#Core.setPayloadTypeBitrate()
#CallParams.getJitterBufferSize() => CallStatsImpl.getJitterBufferSizeMs()
#Core.getSupportedVideoSizes() => Factory.getSupportedVideoDefinitions()
#Core.removeFriend() => FriendList.removeFriend()
#Core.enableSpeaker / isSpeakerEnabled() => mAudioManager.setSpeakerphoneOn(speakerOn);
#Core.enableVideo(true, true) => Core.enableVideoCapture(bool) & Core.enableVideoDisplay(bool)
#Core.setCpuCount()
#Call.zoomVideo() has been removed temporarily in the wrapper
#Core.setCpuCount() => Not needed anymore, can be removed
#AccountCreator.getPrefix => linphone_dial_plan_lookup_ccc_from_e164
#ProxyConfig.lookupCCCFromIso=> linphone_dial_plan_lookup_ccc_from_iso
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment