sync code

Signed-off-by: shilei <shilei91@huawei.com>
Change-Id: Iba524445184a82a30e1a1b66ced9e1dd71312316
This commit is contained in:
shilei
2022-09-15 19:52:04 +08:00
parent d5d047f8fa
commit 37beaf49e4
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}.
*