Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
4e6f29fa
Commit
4e6f29fa
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #6895: fix memleaks, cleanup in accountconfigdialog
parent
edba1f4d
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gnome/src/actions.c
+2
-37
2 additions, 37 deletions
gnome/src/actions.c
gnome/src/actions.h
+4
-12
4 additions, 12 deletions
gnome/src/actions.h
gnome/src/config/accountconfigdialog.c
+794
-865
794 additions, 865 deletions
gnome/src/config/accountconfigdialog.c
with
800 additions
and
914 deletions
gnome/src/actions.c
+
2
−
37
View file @
4e6f29fa
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
#include
"widget/imwidget.h"
#include
"widget/imwidget.h"
static
GHashTable
*
ip2ip_profile
=
NULL
;
static
GHashTable
*
ip2ip_profile
;
static
gchar
**
sflphone_order_history_hash_table
(
GHashTable
*
result
)
static
gchar
**
sflphone_order_history_hash_table
(
GHashTable
*
result
)
{
{
...
@@ -1362,10 +1362,9 @@ sflphone_request_go_clear (void)
...
@@ -1362,10 +1362,9 @@ sflphone_request_go_clear (void)
{
{
callable_obj_t
*
selectedCall
=
calltab_get_selected_call
(
current_calls
);
callable_obj_t
*
selectedCall
=
calltab_get_selected_call
(
current_calls
);
if
(
selectedCall
)
{
if
(
selectedCall
)
dbus_request_go_clear
(
selectedCall
);
dbus_request_go_clear
(
selectedCall
);
}
}
}
void
void
sflphone_call_state_changed
(
callable_obj_t
*
c
,
const
gchar
*
description
,
const
guint
code
)
sflphone_call_state_changed
(
callable_obj_t
*
c
,
const
gchar
*
description
,
const
guint
code
)
...
@@ -1384,37 +1383,3 @@ sflphone_call_state_changed (callable_obj_t * c, const gchar * description, cons
...
@@ -1384,37 +1383,3 @@ sflphone_call_state_changed (callable_obj_t * c, const gchar * description, cons
update_actions
();
update_actions
();
}
}
void
sflphone_get_interface_addr_from_name
(
char
*
iface_name
,
char
**
iface_addr
,
int
size
)
{
struct
ifreq
ifr
;
int
fd
;
// static char iface_addr[18];
char
*
tmp_addr
;
struct
sockaddr_in
*
saddr_in
;
struct
in_addr
*
addr_in
;
if
(
(
fd
=
socket
(
AF_INET
,
SOCK_DGRAM
,
0
))
<
0
)
DEBUG
(
"getInterfaceAddrFromName error could not open socket
\n
"
);
memset
(
&
ifr
,
0
,
sizeof
(
struct
ifreq
));
strcpy
(
ifr
.
ifr_name
,
iface_name
);
ifr
.
ifr_addr
.
sa_family
=
AF_INET
;
if
(
ioctl
(
fd
,
SIOCGIFADDR
,
&
ifr
)
<
0
)
DEBUG
(
"getInterfaceAddrFromName use default interface (0.0.0.0)
\n
"
);
saddr_in
=
(
struct
sockaddr_in
*
)
&
ifr
.
ifr_addr
;
addr_in
=
&
(
saddr_in
->
sin_addr
);
tmp_addr
=
(
char
*
)
addr_in
;
snprintf
(
*
iface_addr
,
size
,
"%d.%d.%d.%d"
,
UC
(
tmp_addr
[
0
]),
UC
(
tmp_addr
[
1
]),
UC
(
tmp_addr
[
2
]),
UC
(
tmp_addr
[
3
]));
close
(
fd
);
}
This diff is collapsed.
Click to expand it.
gnome/src/actions.h
+
4
−
12
View file @
4e6f29fa
...
@@ -35,13 +35,10 @@
...
@@ -35,13 +35,10 @@
#include
<libintl.h>
#include
<libintl.h>
#include
<locale.h>
#include
<locale.h>
#include
<accountlist.h>
#include
"accountlist.h"
#include
<codeclist.h>
#include
"codeclist.h"
#include
<sflphone_const.h>
#include
"sflphone_const.h"
#include
<conference_obj.h>
#include
"conference_obj.h"
#define UC(b) (((int)b)&0xff)
/** @file actions.h
/** @file actions.h
* @brief General functions that change the state of the application.
* @brief General functions that change the state of the application.
...
@@ -278,11 +275,6 @@ void sflphone_request_go_clear (void);
...
@@ -278,11 +275,6 @@ void sflphone_request_go_clear (void);
*/
*/
void
sflphone_call_state_changed
(
callable_obj_t
*
c
,
const
gchar
*
description
,
const
guint
code
);
void
sflphone_call_state_changed
(
callable_obj_t
*
c
,
const
gchar
*
description
,
const
guint
code
);
/**
* Resolve an interface address given its name
*/
void
sflphone_get_interface_addr_from_name
(
char
*
iface_name
,
char
**
iface_addr
,
int
size
);
void
sflphone_add_main_participant
(
const
conference_obj_t
*
c
);
void
sflphone_add_main_participant
(
const
conference_obj_t
*
c
);
void
void
...
...
This diff is collapsed.
Click to expand it.
gnome/src/config/accountconfigdialog.c
+
794
−
865
View file @
4e6f29fa
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment