summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
8afd46f)
Using command line tool, it is possible to install
more than just one widget. Before this commit, the
list of requested permission was not cleaned.
Change-Id: Ic9311754f51f12d6231d1f08a55eb4b4aef0c74e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
+ reset_requested_permissions();
desc = wgt_info_desc(ifo);
if (check_widget(desc))
goto error3;
desc = wgt_info_desc(ifo);
if (check_widget(desc))
goto error3;
{
unsigned int i;
for (i = 0 ; i < nrpermissions ; i++)
{
unsigned int i;
for (i = 0 ; i < nrpermissions ; i++)
- permissions[i].granted = 0;
+ permissions[i].granted = permissions[i].requested = 0;
+}
+
+/* remove any requested permission */
+void reset_requested_permissions()
+{
+ unsigned int i;
+ for (i = 0 ; i < nrpermissions ; i++)
+ permissions[i].requested = 0;
}
/* remove any granting */
}
/* remove any granting */
extern int is_standard_permission(const char *name);
extern void reset_permissions();
extern int is_standard_permission(const char *name);
extern void reset_permissions();
+extern void reset_requested_permissions();
extern void crop_permissions(unsigned level);
extern int grant_permission_list(const char *list);
extern int permission_exists(const char *name);
extern void crop_permissions(unsigned level);
extern int grant_permission_list(const char *list);
extern int permission_exists(const char *name);