mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-19 12:13:04 -04:00
add
Signed-off-by: shilei <shilei91@huawei.com> Change-Id: If34c1e711e54743e11745dd72b0cca78963b103e
This commit is contained in:
@@ -159,6 +159,9 @@ uint8_t BundleMsClient::QueryAbilityInfo (const Want *want, AbilityInfo *ability
|
||||
|
||||
uint8_t BundleMsClient::GetBundleInfo (const char *bundleName, int32_t flags, BundleInfo *bundleInfo) const
|
||||
{
|
||||
if ((bundleName == nullptr) || (bundleInfo == nullptr)) {
|
||||
return ERR_APPEXECFWK_QUERY_PARAMETER_ERROR;
|
||||
}
|
||||
if (!Initialize()) {
|
||||
return -1;
|
||||
}
|
||||
@@ -167,6 +170,12 @@ uint8_t BundleMsClient::GetBundleInfo (const char *bundleName, int32_t flags, Bu
|
||||
|
||||
uint8_t BundleMsClient::GetBundleInfos (int32_t flags, BundleInfo **bundleInfos, int32_t *len) const
|
||||
{
|
||||
if (bundleInfos == nullptr) {
|
||||
return ERR_APPEXECFWK_QUERY_PARAMETER_ERROR;
|
||||
}
|
||||
if (len == nullptr) {
|
||||
return ERR_APPEXECFWK_QUERY_NO_INFOS;
|
||||
}
|
||||
if (!Initialize()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user