Skip to content
Snippets Groups Projects
Commit 97817a79 authored by Jérémy Quentin's avatar Jérémy Quentin
Browse files

Changed addAccount method in gnome client.

parent 3e55ab12
No related branches found
No related tags found
No related merge requests found
...@@ -510,13 +510,15 @@ dbus_set_account_details(account_t *a) ...@@ -510,13 +510,15 @@ dbus_set_account_details(account_t *a)
} }
} }
void guint
dbus_add_account(account_t *a) dbus_add_account(account_t *a)
{ {
gint accountId;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_ConfigurationManager_add_account ( org_sflphone_SFLphone_ConfigurationManager_add_account (
configurationManagerProxy, configurationManagerProxy,
a->properties, a->properties,
&accountId,
&error); &error);
if (error) if (error)
{ {
...@@ -524,6 +526,7 @@ dbus_add_account(account_t *a) ...@@ -524,6 +526,7 @@ dbus_add_account(account_t *a)
error->message); error->message);
g_error_free (error); g_error_free (error);
} }
return (guint) accountId;
} }
void void
......
...@@ -120,7 +120,7 @@ void dbus_send_register( gchar* accountID , const guint expire ); ...@@ -120,7 +120,7 @@ void dbus_send_register( gchar* accountID , const guint expire );
* ConfigurationManager - Add an account to the list * ConfigurationManager - Add an account to the list
* @param a The account to add * @param a The account to add
*/ */
void dbus_add_account(account_t *a); guint dbus_add_account(account_t *a);
/** /**
* ConfigurationManager - Remove an account from the list * ConfigurationManager - Remove an account from the list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment