mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-20 23:55:24 -04:00
@@ -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}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user