diff --git a/src/profile.c b/src/profile.c
index 22c0797..a58e9f9 100644
--- a/src/profile.c
+++ b/src/profile.c
char *owner;
char *uuid;
char *path;
+ char *role;
guint id;
if (type != DBUS_TYPE_BOOLEAN)
return -EINVAL;
dbus_message_iter_get_basic(value, &ext->authorize);
+ } else if (strcasecmp(key, "Role") == 0) {
+ if (type != DBUS_TYPE_STRING)
+ return -EINVAL;
+ dbus_message_iter_get_basic(value, &str);
+ g_free(ext->role);
+ ext->role = g_strdup(str);
}
return 0;
g_free(ext->name);
g_free(ext->owner);
g_free(ext->uuid);
+ g_free(ext->role);
g_free(ext->path);
g_free(ext);