Add privacy feature: APIs and privacy info
To Test New APIs, bulid packages and install tc-privilege-checker.*.rpm and run /usr/bin/tc-privilege-info
For using new APIs:
#include <privilege_info.h>
int ret = privilege_info_is_privacy("http://tizen.org/privilege/account.read");
if (ret == 1)
//is privacy case
else if (ret == 0)
// is not privacy case
else if (ret == -1)
// on error
GList* privacy_list = NULL; // privacy_list must be released with g_list_free by caller
ret = privilege_info_get_privacy_list(&privacy_list);
if (ret == 0) // ret == PRVMGR_ERR_NONE
// success case
else
// on error
GList* privilege_list = NULL; // privilege_list must be released with g_list_free by caller
ret = privilege_info_get_privilege_list_by_privacy("ACCOUNT", &privilege_list);
if (ret == 0) // ret == PRVMGR_ERR_NONE
//success case
else if (ret == PRVMGR_ERR_INVALID_PARAMETER)
// privacy param is NULL
else
// on error
Change-Id: I5106d53b4adc538155912269bdf6fd31142ad4ab
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
12 files changed: