#define PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_EMAIL "PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_EMAIL"
/** String property for filtering based on package info*/
#define PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF "PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF"
+ /** String property for filtering based on package info*/
+#define PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE "PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE"
/** Boolean property for filtering based on package info*/
#define PMINFO_PKGINFO_PROP_PACKAGE_REMOVABLE "PMINFO_PKGINFO_PROP_PACKAGE_REMOVABLE"
E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_NAME,
E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_EMAIL,
E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF,
- E_PMINFO_PKGINFO_PROP_PACKAGE_MAX_STR = E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF
+ E_PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE,
+ E_PMINFO_PKGINFO_PROP_PACKAGE_MAX_STR = E_PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE
} pkgmgrinfo_pkginfo_filter_prop_str;
/*Boolean properties for filtering based on package info*/
"SELECT DISTINCT package_info.package FROM package_info"
" LEFT OUTER JOIN package_localized_info"
" ON package_info.package=package_localized_info.package"
- " AND package_localized_info.package_locale=%Q ";
+ " AND package_localized_info.package_locale=%Q "
+ " LEFT OUTER JOIN package_privilege_info"
+ " ON package_info.package=package_privilege_info.package";
int ret;
char *query;
char *query_localized;
{E_PMINFO_PKGINFO_PROP_PACKAGE_INSTALLED_STORAGE,PMINFO_PKGINFO_PROP_PACKAGE_INSTALLED_STORAGE},
{E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_NAME, PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_NAME},
{E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_EMAIL, PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_EMAIL},
- {E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF, PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF}
+ {E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF, PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_HREF},
+ {E_PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE, PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE}
};
struct _pkginfo_int_map_t {
case E_PMINFO_PKGINFO_PROP_PACKAGE_AUTHOR_EMAIL:
snprintf(buf, MAX_QUERY_LEN, "package_info.author_email='%s'", node->value);
break;
+ case E_PMINFO_PKGINFO_PROP_PACKAGE_PRIVILEGE:
+ snprintf(buf, MAX_QUERY_LEN, "package_privilege_info.privilege='%s'", node->value);
+ break;
case E_PMINFO_PKGINFO_PROP_PACKAGE_SIZE:
snprintf(buf, MAX_QUERY_LEN, "package_info.package_size='%s'", node->value);
break;