account-provider: Add debugging in the public functions

This commit is contained in:
Evangelos Ribeiro Tzaras
2021-05-06 12:09:14 +02:00
parent a888ac54b1
commit 80ec7d8a35
3 changed files with 35 additions and 0 deletions

View File

@@ -389,3 +389,29 @@ calls_credentials_update_from_keyfile (CallsCredentials *self,
return TRUE;
}
const char *
calls_credentials_get_name (CallsCredentials *self)
{
g_return_val_if_fail (CALLS_IS_CREDENTIALS (self), NULL);
return self->name;
}
void
calls_credentials_set_name (CallsCredentials *self,
const char *name)
{
g_return_if_fail (CALLS_IS_CREDENTIALS (self));
if (!name)
return;
if (g_strcmp0 (name, self->name) == 0)
return;
g_free (self->name);
self->name = g_strdup (name);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_NAME]);
}