Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c6a7471d
Commit
c6a7471d
authored
Oct 15, 2010
by
jehan
Browse files
Merge branch 'master' of git.savannah.nongnu.org:/srv/git/linphone
parents
b6c3f44d
a520cc02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
24 deletions
+4
-24
coreapi/friend.c
coreapi/friend.c
+3
-23
gtk/log.ui
gtk/log.ui
+1
-1
No files found.
coreapi/friend.c
View file @
c6a7471d
...
...
@@ -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
;
}
...
...
gtk/log.ui
View file @
c6a7471d
...
...
@@ -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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment