!193 同步代码

Merge pull request !193 from shilei91/master
This commit is contained in:
openharmony_ci
2022-09-15 12:09:20 +00:00
committed by Gitee
2 changed files with 13 additions and 0 deletions
@@ -42,6 +42,11 @@ void ClearElement(ElementName *element)
AdapterFree(element->abilityName);
}
void DeleteElement(ElementName *element)
{
AdapterFree(element);
}
bool SetElementDeviceID(ElementName *element, const char *deviceId)
{
if (element == nullptr) {
@@ -82,6 +82,14 @@ extern "C" {
*/
void ClearElement(ElementName *element);
/**
* @brief Delete <b>ElementName</b>.
*
* After {@link AbilityInfo} is queried, clear the internal data of an <b>ElementName</b> if it is no longer required.
* @param element Indicates the pointer to the <b>ElementName</b> to clear.
*/
void DeleteElement(ElementName *element);
/**
* @brief Sets the device ID used to query {@link AbilityInfo}.
*