From 88b1ece24ba6af7041cc6ae90d3a5352d7d88611 Mon Sep 17 00:00:00 2001 From: liumingyue Date: Wed, 12 Jun 2024 15:16:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E7=AE=A1=E7=90=86=E8=93=9D=E9=BB=84?= =?UTF-8?q?=E5=B7=AE=E5=BC=82=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liumingyue --- .../bundle/include/native_interface_bundle.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h b/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h index 89068919d8f..eb30b3e3df6 100644 --- a/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h +++ b/bundlemanager/bundle_framework/bundle/include/native_interface_bundle.h @@ -72,7 +72,9 @@ typedef struct OH_NativeBundle_ApplicationInfo OH_NativeBundle_ApplicationInfo; /** * @brief Obtains the application info based on the The current bundle. * - * @return Returns the application info. + * @return Returns the newly created OH_NativaBundle_ApplicationInfo object, if the returned object is NULL, + * it indicates creation failure. The possible cause of failure could be that the application address space is full, + * leading to space allocation failure. * @since 9 * @version 1.0 */ @@ -84,7 +86,10 @@ OH_NativeBundle_ApplicationInfo OH_NativeBundle_GetCurrentApplicationInfo(); * After utilizing this interface, to prevent memory leaks, * it is necessary to manually release the pointer returned by the interface. * - * @return Returns the appId info. + * @return Returns the newly created string that indicates appId information, + * if the returned object is NULL, it indicates creation failure. + * The possible cause of failure could be that the application address space is full, + * leading to space allocation failure. * @since 11 * @version 1.0 */ @@ -96,7 +101,10 @@ char* OH_NativeBundle_GetAppId(); * After utilizing this interface, to prevent memory leaks, * it is necessary to manually release the pointer returned by the interface. * - * @return Returns the appIdentifier info. + * @return Returns the newly created string that indicates app identifier information, + * if the returned object is NULL, it indicates creation failure. + * The possible cause of failure could be that the application address space is full, + * leading to space allocation failure. * @since 11 * @version 1.0 */ -- Gitee