My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
sw_user_mgmt.c File Reference
#include <global.h>
#include <sw_buddy.h>
#include <task.h>
#include <sw_user_mgmt.h>
#include <sw_debug.h>
#include <otz_id.h>

Functions

int getPermission (int d_id)
 Before a device can be used permission has to be sought This function gets permission pertaining to the requested device id and it returns 1 if permission is allowed. More...
 
int setPermission (struct sw_task *new_task)
 Sets permission for the task passed. More...
 
void updateGlobalACL (int d_id, int g_id, int u_id)
 Updates the global access control for the given device id or service id. More...
 

Function Documentation

int getPermission ( int  d_id)

Before a device can be used permission has to be sought This function gets permission pertaining to the requested device id and it returns 1 if permission is allowed.

Parameters
d_iddevice id
Returns
int setPermission ( struct sw_task new_task)

Sets permission for the task passed.

Parameters
new_task
Returns
void updateGlobalACL ( int  d_id,
int  g_id,
int  u_id 
)

Updates the global access control for the given device id or service id.

Parameters
d_iddevice id
g_idgroup id
u_iduser id