mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
Merge branch 'master' of git.savannah.nongnu.org:/srv/git/linphone
This commit is contained in:
commit
c6a7471db6
2 changed files with 4 additions and 24 deletions
|
|
@ -68,31 +68,11 @@ const char *linphone_online_status_to_string(LinphoneOnlineStatus ss){
|
|||
return str;
|
||||
}
|
||||
|
||||
static int friend_data_compare(const void * a, const void * b, void * data){
|
||||
static int friend_compare(const void * a, const void * b){
|
||||
LinphoneAddress *fa=((LinphoneFriend*)a)->uri;
|
||||
LinphoneAddress *fb=((LinphoneFriend*)b)->uri;
|
||||
const char *ua,*ub;
|
||||
ua=linphone_address_get_username(fa);
|
||||
ub=linphone_address_get_username(fb);
|
||||
if (ua!=NULL && ub!=NULL) {
|
||||
//printf("Comparing usernames %s,%s\n",ua,ub);
|
||||
return strcasecmp(ua,ub);
|
||||
}
|
||||
else {
|
||||
/* compare hosts*/
|
||||
ua=linphone_address_get_domain(fa);
|
||||
ub=linphone_address_get_domain(fb);
|
||||
if (ua!=NULL && ub!=NULL){
|
||||
int ret=strcasecmp(ua,ub);
|
||||
//printf("Comparing hostnames %s,%s,res=%i\n",ua,ub,ret);
|
||||
return ret;
|
||||
}
|
||||
else return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int friend_compare(const void * a, const void * b){
|
||||
return friend_data_compare(a,b,NULL);
|
||||
if (linphone_address_weak_equal (fa,fb)) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<property name="border_width">5</property>
|
||||
<property name="title" translatable="yes">Linphone debug window</property>
|
||||
<property name="window_position">center-on-parent</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<property name="type_hint">normal</property>
|
||||
<property name="deletable">False</property>
|
||||
<property name="has_separator">False</property>
|
||||
<signal name="response" handler="gtk_widget_hide"/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue