17777dab0Sopenharmony_ci/* 27777dab0Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 37777dab0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 47777dab0Sopenharmony_ci * you may not use this file except in compliance with the License. 57777dab0Sopenharmony_ci * You may obtain a copy of the License at 67777dab0Sopenharmony_ci * 77777dab0Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 87777dab0Sopenharmony_ci * 97777dab0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 107777dab0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 117777dab0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127777dab0Sopenharmony_ci * See the License for the specific language governing permissions and 137777dab0Sopenharmony_ci * limitations under the License. 147777dab0Sopenharmony_ci */ 157777dab0Sopenharmony_ci 167777dab0Sopenharmony_ci/** 177777dab0Sopenharmony_ci * @addtogroup UDMF 187777dab0Sopenharmony_ci * @{ 197777dab0Sopenharmony_ci * 207777dab0Sopenharmony_ci * @brief The Unified Data Management Framework(UDMF) aims to define various standards 217777dab0Sopenharmony_ci * for data across applications, devices, and platforms, providing a unified OpenHarmony 227777dab0Sopenharmony_ci * data language and standardized data access and reading paths. 237777dab0Sopenharmony_ci * 247777dab0Sopenharmony_ci * @syscap SystemCapability.DistributedDataManager.UDMF.Core 257777dab0Sopenharmony_ci * 267777dab0Sopenharmony_ci * @since 12 277777dab0Sopenharmony_ci */ 287777dab0Sopenharmony_ci 297777dab0Sopenharmony_ci/** 307777dab0Sopenharmony_ci * @file uds.h 317777dab0Sopenharmony_ci * 327777dab0Sopenharmony_ci * @brief Provides uniform data struct(UDS). 337777dab0Sopenharmony_ci * 347777dab0Sopenharmony_ci * @kit ArkData 357777dab0Sopenharmony_ci * @library libudmf.so 367777dab0Sopenharmony_ci * @syscap SystemCapability.DistributedDataManager.UDMF.Core 377777dab0Sopenharmony_ci * @since 12 387777dab0Sopenharmony_ci */ 397777dab0Sopenharmony_ci 407777dab0Sopenharmony_ci#ifndef UDS_H 417777dab0Sopenharmony_ci#define UDS_H 427777dab0Sopenharmony_ci 437777dab0Sopenharmony_ci#include "multimedia/image_framework/image/pixelmap_native.h" 447777dab0Sopenharmony_ci 457777dab0Sopenharmony_ci#ifdef __cplusplus 467777dab0Sopenharmony_ci 477777dab0Sopenharmony_ciextern "C" { 487777dab0Sopenharmony_ci#endif 497777dab0Sopenharmony_ci 507777dab0Sopenharmony_ci/** 517777dab0Sopenharmony_ci * @brief Describes the unified data struct of plaintext. 527777dab0Sopenharmony_ci * 537777dab0Sopenharmony_ci * @since 12 547777dab0Sopenharmony_ci */ 557777dab0Sopenharmony_citypedef struct OH_UdsPlainText OH_UdsPlainText; 567777dab0Sopenharmony_ci 577777dab0Sopenharmony_ci/** 587777dab0Sopenharmony_ci * @brief Describes the unified data struct of hyperlink. 597777dab0Sopenharmony_ci * 607777dab0Sopenharmony_ci * @since 12 617777dab0Sopenharmony_ci */ 627777dab0Sopenharmony_citypedef struct OH_UdsHyperlink OH_UdsHyperlink; 637777dab0Sopenharmony_ci 647777dab0Sopenharmony_ci/** 657777dab0Sopenharmony_ci * @brief Describes the unified data struct of html. 667777dab0Sopenharmony_ci * 677777dab0Sopenharmony_ci * @since 12 687777dab0Sopenharmony_ci */ 697777dab0Sopenharmony_citypedef struct OH_UdsHtml OH_UdsHtml; 707777dab0Sopenharmony_ci 717777dab0Sopenharmony_ci/** 727777dab0Sopenharmony_ci * @brief Describes the unified data struct of open harmony application item. 737777dab0Sopenharmony_ci * 747777dab0Sopenharmony_ci * @since 12 757777dab0Sopenharmony_ci */ 767777dab0Sopenharmony_citypedef struct OH_UdsAppItem OH_UdsAppItem; 777777dab0Sopenharmony_ci 787777dab0Sopenharmony_ci/** 797777dab0Sopenharmony_ci * @brief Describes the unified data struct of file uri. 807777dab0Sopenharmony_ci * 817777dab0Sopenharmony_ci * @since 13 827777dab0Sopenharmony_ci */ 837777dab0Sopenharmony_citypedef struct OH_UdsFileUri OH_UdsFileUri; 847777dab0Sopenharmony_ci 857777dab0Sopenharmony_ci/** 867777dab0Sopenharmony_ci * @brief Describes the unified data struct of open harmony pixel map. 877777dab0Sopenharmony_ci * 887777dab0Sopenharmony_ci * @since 13 897777dab0Sopenharmony_ci */ 907777dab0Sopenharmony_citypedef struct OH_UdsPixelMap OH_UdsPixelMap; 917777dab0Sopenharmony_ci 927777dab0Sopenharmony_ci/** 937777dab0Sopenharmony_ci * @brief Describes the unified data struct of array buffer. 947777dab0Sopenharmony_ci * 957777dab0Sopenharmony_ci * @since 13 967777dab0Sopenharmony_ci */ 977777dab0Sopenharmony_citypedef struct OH_UdsArrayBuffer OH_UdsArrayBuffer; 987777dab0Sopenharmony_ci 997777dab0Sopenharmony_ci/** 1007777dab0Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsPlainText}. 1017777dab0Sopenharmony_ci * 1027777dab0Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsPlainText} 1037777dab0Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 1047777dab0Sopenharmony_ci * @see OH_UdsPlainText 1057777dab0Sopenharmony_ci * @since 12 1067777dab0Sopenharmony_ci */ 1077777dab0Sopenharmony_ciOH_UdsPlainText* OH_UdsPlainText_Create(); 1087777dab0Sopenharmony_ci 1097777dab0Sopenharmony_ci/** 1107777dab0Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsPlainText} instance. 1117777dab0Sopenharmony_ci * 1127777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 1137777dab0Sopenharmony_ci * @see OH_UdsPlainText 1147777dab0Sopenharmony_ci * @since 12 1157777dab0Sopenharmony_ci */ 1167777dab0Sopenharmony_civoid OH_UdsPlainText_Destroy(OH_UdsPlainText* pThis); 1177777dab0Sopenharmony_ci 1187777dab0Sopenharmony_ci/** 1197777dab0Sopenharmony_ci * @brief Get type id from the {@link OH_UdsPlainText}. 1207777dab0Sopenharmony_ci * 1217777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 1227777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 1237777dab0Sopenharmony_ci * @see OH_UdsPlainText 1247777dab0Sopenharmony_ci * @since 12 1257777dab0Sopenharmony_ci */ 1267777dab0Sopenharmony_ciconst char* OH_UdsPlainText_GetType(OH_UdsPlainText* pThis); 1277777dab0Sopenharmony_ci 1287777dab0Sopenharmony_ci/** 1297777dab0Sopenharmony_ci * @brief Get content from the {@link OH_UdsPlainText}. 1307777dab0Sopenharmony_ci * 1317777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 1327777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 1337777dab0Sopenharmony_ci * @see OH_UdsPlainText 1347777dab0Sopenharmony_ci * @since 12 1357777dab0Sopenharmony_ci */ 1367777dab0Sopenharmony_ciconst char* OH_UdsPlainText_GetContent(OH_UdsPlainText* pThis); 1377777dab0Sopenharmony_ci 1387777dab0Sopenharmony_ci/** 1397777dab0Sopenharmony_ci * @brief Get abstract from the {@link OH_UdsPlainText}. 1407777dab0Sopenharmony_ci * 1417777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 1427777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 1437777dab0Sopenharmony_ci * @see OH_UdsPlainText 1447777dab0Sopenharmony_ci * @since 12 1457777dab0Sopenharmony_ci */ 1467777dab0Sopenharmony_ciconst char* OH_UdsPlainText_GetAbstract(OH_UdsPlainText* pThis); 1477777dab0Sopenharmony_ci 1487777dab0Sopenharmony_ci/** 1497777dab0Sopenharmony_ci * @brief Set content to the {@link OH_UdsPlainText}. 1507777dab0Sopenharmony_ci * 1517777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 1527777dab0Sopenharmony_ci * @param content Represents a new content string. 1537777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 1547777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 1557777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 1567777dab0Sopenharmony_ci * @see OH_UdsPlainText Udmf_ErrCode 1577777dab0Sopenharmony_ci * @since 12 1587777dab0Sopenharmony_ci */ 1597777dab0Sopenharmony_ciint OH_UdsPlainText_SetContent(OH_UdsPlainText* pThis, const char* content); 1607777dab0Sopenharmony_ci 1617777dab0Sopenharmony_ci/** 1627777dab0Sopenharmony_ci * @brief Set abstract to the {@link OH_UdsPlainText}. 1637777dab0Sopenharmony_ci * 1647777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 1657777dab0Sopenharmony_ci * @param abstract Represents a new string value. 1667777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 1677777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 1687777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 1697777dab0Sopenharmony_ci * @see OH_UdsPlainText Udmf_ErrCode 1707777dab0Sopenharmony_ci * @since 12 1717777dab0Sopenharmony_ci */ 1727777dab0Sopenharmony_ciint OH_UdsPlainText_SetAbstract(OH_UdsPlainText* pThis, const char* abstract); 1737777dab0Sopenharmony_ci 1747777dab0Sopenharmony_ci/** 1757777dab0Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsHyperlink}. 1767777dab0Sopenharmony_ci * 1777777dab0Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of {@link OH_UdsHyperlink} 1787777dab0Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 1797777dab0Sopenharmony_ci * @see OH_UdsHyperlink 1807777dab0Sopenharmony_ci * @since 12 1817777dab0Sopenharmony_ci */ 1827777dab0Sopenharmony_ciOH_UdsHyperlink* OH_UdsHyperlink_Create(); 1837777dab0Sopenharmony_ci 1847777dab0Sopenharmony_ci/** 1857777dab0Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsHyperlink} instance. 1867777dab0Sopenharmony_ci * 1877777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 1887777dab0Sopenharmony_ci * @see OH_UdsHyperlink 1897777dab0Sopenharmony_ci * @since 12 1907777dab0Sopenharmony_ci */ 1917777dab0Sopenharmony_civoid OH_UdsHyperlink_Destroy(OH_UdsHyperlink* pThis); 1927777dab0Sopenharmony_ci 1937777dab0Sopenharmony_ci/** 1947777dab0Sopenharmony_ci * @brief Get type from the {@link OH_UdsHyperlink}. 1957777dab0Sopenharmony_ci * 1967777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 1977777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 1987777dab0Sopenharmony_ci * @see OH_UdsHyperlink 1997777dab0Sopenharmony_ci * @since 12 2007777dab0Sopenharmony_ci */ 2017777dab0Sopenharmony_ciconst char* OH_UdsHyperlink_GetType(OH_UdsHyperlink* pThis); 2027777dab0Sopenharmony_ci 2037777dab0Sopenharmony_ci/** 2047777dab0Sopenharmony_ci * @brief Get url from the {@link OH_UdsHyperlink}. 2057777dab0Sopenharmony_ci * 2067777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 2077777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 2087777dab0Sopenharmony_ci * @see OH_UdsHyperlink 2097777dab0Sopenharmony_ci * @since 12 2107777dab0Sopenharmony_ci */ 2117777dab0Sopenharmony_ciconst char* OH_UdsHyperlink_GetUrl(OH_UdsHyperlink* pThis); 2127777dab0Sopenharmony_ci 2137777dab0Sopenharmony_ci/** 2147777dab0Sopenharmony_ci * @brief Get description from the {@link OH_UdsHyperlink}. 2157777dab0Sopenharmony_ci * 2167777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 2177777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 2187777dab0Sopenharmony_ci * @see OH_UdsHyperlink 2197777dab0Sopenharmony_ci * @since 12 2207777dab0Sopenharmony_ci */ 2217777dab0Sopenharmony_ciconst char* OH_UdsHyperlink_GetDescription(OH_UdsHyperlink* pThis); 2227777dab0Sopenharmony_ci 2237777dab0Sopenharmony_ci/** 2247777dab0Sopenharmony_ci * @brief Set url to the {@link OH_UdsHyperlink}. 2257777dab0Sopenharmony_ci * 2267777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 2277777dab0Sopenharmony_ci * @param url Represents a new string value. 2287777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 2297777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 2307777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 2317777dab0Sopenharmony_ci * @see OH_UdsHyperlink Udmf_ErrCode 2327777dab0Sopenharmony_ci * @since 12 2337777dab0Sopenharmony_ci */ 2347777dab0Sopenharmony_ciint OH_UdsHyperlink_SetUrl(OH_UdsHyperlink* pThis, const char* url); 2357777dab0Sopenharmony_ci 2367777dab0Sopenharmony_ci/** 2377777dab0Sopenharmony_ci * @brief Set description to the {@link OH_UdsHyperlink}. 2387777dab0Sopenharmony_ci * 2397777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 2407777dab0Sopenharmony_ci * @param description Represents a new string value. 2417777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 2427777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 2437777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 2447777dab0Sopenharmony_ci * @see OH_UdsHyperlink Udmf_ErrCode 2457777dab0Sopenharmony_ci * @since 12 2467777dab0Sopenharmony_ci */ 2477777dab0Sopenharmony_ciint OH_UdsHyperlink_SetDescription(OH_UdsHyperlink* pThis, const char* description); 2487777dab0Sopenharmony_ci 2497777dab0Sopenharmony_ci/** 2507777dab0Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsHtml}. 2517777dab0Sopenharmony_ci * 2527777dab0Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsHtml} 2537777dab0Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 2547777dab0Sopenharmony_ci * @see OH_UdsHtml 2557777dab0Sopenharmony_ci * @since 12 2567777dab0Sopenharmony_ci */ 2577777dab0Sopenharmony_ciOH_UdsHtml* OH_UdsHtml_Create(); 2587777dab0Sopenharmony_ci 2597777dab0Sopenharmony_ci/** 2607777dab0Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsHtml} instance. 2617777dab0Sopenharmony_ci * 2627777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 2637777dab0Sopenharmony_ci * @see OH_UdsHtml 2647777dab0Sopenharmony_ci * @since 12 2657777dab0Sopenharmony_ci */ 2667777dab0Sopenharmony_civoid OH_UdsHtml_Destroy(OH_UdsHtml* pThis); 2677777dab0Sopenharmony_ci 2687777dab0Sopenharmony_ci/** 2697777dab0Sopenharmony_ci * @brief Get html from the {@link OH_UdsHtml}. 2707777dab0Sopenharmony_ci * 2717777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 2727777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 2737777dab0Sopenharmony_ci * @see OH_UdsHtml 2747777dab0Sopenharmony_ci * @since 12 2757777dab0Sopenharmony_ci */ 2767777dab0Sopenharmony_ciconst char* OH_UdsHtml_GetType(OH_UdsHtml* pThis); 2777777dab0Sopenharmony_ci 2787777dab0Sopenharmony_ci/** 2797777dab0Sopenharmony_ci * @brief Get content from the {@link OH_UdsHtml}. 2807777dab0Sopenharmony_ci * 2817777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 2827777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 2837777dab0Sopenharmony_ci * @see OH_UdsHtml 2847777dab0Sopenharmony_ci * @since 12 2857777dab0Sopenharmony_ci */ 2867777dab0Sopenharmony_ciconst char* OH_UdsHtml_GetContent(OH_UdsHtml* pThis); 2877777dab0Sopenharmony_ci 2887777dab0Sopenharmony_ci/** 2897777dab0Sopenharmony_ci * @brief Get plain content from the {@link OH_UdsHtml}. 2907777dab0Sopenharmony_ci * 2917777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 2927777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 2937777dab0Sopenharmony_ci * @see OH_UdsHtml 2947777dab0Sopenharmony_ci * @since 12 2957777dab0Sopenharmony_ci */ 2967777dab0Sopenharmony_ciconst char* OH_UdsHtml_GetPlainContent(OH_UdsHtml* pThis); 2977777dab0Sopenharmony_ci 2987777dab0Sopenharmony_ci/** 2997777dab0Sopenharmony_ci * @brief Set content to the {@link OH_UdsHtml}. 3007777dab0Sopenharmony_ci * 3017777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 3027777dab0Sopenharmony_ci * @param content Represents a new string value. 3037777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 3047777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 3057777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 3067777dab0Sopenharmony_ci * @see OH_UdsHtml Udmf_ErrCode 3077777dab0Sopenharmony_ci * @since 12 3087777dab0Sopenharmony_ci */ 3097777dab0Sopenharmony_ciint OH_UdsHtml_SetContent(OH_UdsHtml* pThis, const char* content); 3107777dab0Sopenharmony_ci 3117777dab0Sopenharmony_ci/** 3127777dab0Sopenharmony_ci * @brief Set plain content to the {@link OH_UdsHtml}. 3137777dab0Sopenharmony_ci * 3147777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 3157777dab0Sopenharmony_ci * @param plainContent Represents a new string value. 3167777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 3177777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 3187777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 3197777dab0Sopenharmony_ci * @see OH_UdsHtml Udmf_ErrCode 3207777dab0Sopenharmony_ci * @since 12 3217777dab0Sopenharmony_ci */ 3227777dab0Sopenharmony_ciint OH_UdsHtml_SetPlainContent(OH_UdsHtml* pThis, const char* plainContent); 3237777dab0Sopenharmony_ci 3247777dab0Sopenharmony_ci/** 3257777dab0Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsAppItem}. 3267777dab0Sopenharmony_ci * 3277777dab0Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsAppItem} 3287777dab0Sopenharmony_ci * structure is returned. sIf the operation is failed, nullptr is returned. 3297777dab0Sopenharmony_ci * @see OH_UdsAppItem 3307777dab0Sopenharmony_ci * @since 12 3317777dab0Sopenharmony_ci */ 3327777dab0Sopenharmony_ciOH_UdsAppItem* OH_UdsAppItem_Create(); 3337777dab0Sopenharmony_ci 3347777dab0Sopenharmony_ci/** 3357777dab0Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsAppItem} instance. 3367777dab0Sopenharmony_ci * 3377777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 3387777dab0Sopenharmony_ci * @see OH_UdsAppItem 3397777dab0Sopenharmony_ci * @since 12 3407777dab0Sopenharmony_ci */ 3417777dab0Sopenharmony_civoid OH_UdsAppItem_Destroy(OH_UdsAppItem* pThis); 3427777dab0Sopenharmony_ci 3437777dab0Sopenharmony_ci/** 3447777dab0Sopenharmony_ci * @brief Get type from the {@link OH_UdsAppItem}. 3457777dab0Sopenharmony_ci * 3467777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 3477777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 3487777dab0Sopenharmony_ci * @see OH_UdsAppItem 3497777dab0Sopenharmony_ci * @since 12 3507777dab0Sopenharmony_ci */ 3517777dab0Sopenharmony_ciconst char* OH_UdsAppItem_GetType(OH_UdsAppItem* pThis); 3527777dab0Sopenharmony_ci 3537777dab0Sopenharmony_ci/** 3547777dab0Sopenharmony_ci * @brief Get app id from the {@link OH_UdsAppItem}. 3557777dab0Sopenharmony_ci * 3567777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 3577777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 3587777dab0Sopenharmony_ci * @see OH_UdsAppItem 3597777dab0Sopenharmony_ci * @since 12 3607777dab0Sopenharmony_ci */ 3617777dab0Sopenharmony_ciconst char* OH_UdsAppItem_GetId(OH_UdsAppItem* pThis); 3627777dab0Sopenharmony_ci 3637777dab0Sopenharmony_ci/** 3647777dab0Sopenharmony_ci * @brief Get app name from the {@link OH_UdsAppItem}. 3657777dab0Sopenharmony_ci * 3667777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 3677777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 3687777dab0Sopenharmony_ci * @see OH_UdsAppItem 3697777dab0Sopenharmony_ci * @since 12 3707777dab0Sopenharmony_ci */ 3717777dab0Sopenharmony_ciconst char* OH_UdsAppItem_GetName(OH_UdsAppItem* pThis); 3727777dab0Sopenharmony_ci 3737777dab0Sopenharmony_ci/** 3747777dab0Sopenharmony_ci * @brief Get app icon id from the {@link OH_UdsAppItem}. 3757777dab0Sopenharmony_ci * 3767777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 3777777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 3787777dab0Sopenharmony_ci * @see OH_UdsAppItem 3797777dab0Sopenharmony_ci * @since 12 3807777dab0Sopenharmony_ci */ 3817777dab0Sopenharmony_ciconst char* OH_UdsAppItem_GetIconId(OH_UdsAppItem* pThis); 3827777dab0Sopenharmony_ci 3837777dab0Sopenharmony_ci/** 3847777dab0Sopenharmony_ci * @brief Get app label id from the {@link OH_UdsAppItem}. 3857777dab0Sopenharmony_ci * 3867777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 3877777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 3887777dab0Sopenharmony_ci * @see OH_UdsAppItem 3897777dab0Sopenharmony_ci * @since 12 3907777dab0Sopenharmony_ci */ 3917777dab0Sopenharmony_ciconst char* OH_UdsAppItem_GetLabelId(OH_UdsAppItem* pThis); 3927777dab0Sopenharmony_ci 3937777dab0Sopenharmony_ci/** 3947777dab0Sopenharmony_ci * @brief Get bundle name from the {@link OH_UdsAppItem}. 3957777dab0Sopenharmony_ci * 3967777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 3977777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 3987777dab0Sopenharmony_ci * @see OH_UdsAppItem 3997777dab0Sopenharmony_ci * @since 12 4007777dab0Sopenharmony_ci */ 4017777dab0Sopenharmony_ciconst char* OH_UdsAppItem_GetBundleName(OH_UdsAppItem* pThis); 4027777dab0Sopenharmony_ci 4037777dab0Sopenharmony_ci/** 4047777dab0Sopenharmony_ci * @brief Get ability name from the {@link OH_UdsAppItem}. 4057777dab0Sopenharmony_ci * 4067777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance {@link OH_UdsAppItem}. 4077777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 4087777dab0Sopenharmony_ci * @see OH_UdsAppItem 4097777dab0Sopenharmony_ci * @since 12 4107777dab0Sopenharmony_ci */ 4117777dab0Sopenharmony_ciconst char* OH_UdsAppItem_GetAbilityName(OH_UdsAppItem* pThis); 4127777dab0Sopenharmony_ci 4137777dab0Sopenharmony_ci/** 4147777dab0Sopenharmony_ci * @brief Set application id to the {@link OH_UdsAppItem}. 4157777dab0Sopenharmony_ci * 4167777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 4177777dab0Sopenharmony_ci * @param appId Represents a new string value. 4187777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 4197777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 4207777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 4217777dab0Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 4227777dab0Sopenharmony_ci * @since 12 4237777dab0Sopenharmony_ci */ 4247777dab0Sopenharmony_ciint OH_UdsAppItem_SetId(OH_UdsAppItem* pThis, const char* appId); 4257777dab0Sopenharmony_ci 4267777dab0Sopenharmony_ci/** 4277777dab0Sopenharmony_ci * @brief Set application name to the {@link OH_UdsAppItem}. 4287777dab0Sopenharmony_ci * 4297777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 4307777dab0Sopenharmony_ci * @param appName Represents a new string value. 4317777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 4327777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 4337777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 4347777dab0Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 4357777dab0Sopenharmony_ci * @since 12 4367777dab0Sopenharmony_ci */ 4377777dab0Sopenharmony_ciint OH_UdsAppItem_SetName(OH_UdsAppItem* pThis, const char* appName); 4387777dab0Sopenharmony_ci 4397777dab0Sopenharmony_ci/** 4407777dab0Sopenharmony_ci * @brief Set application icon id to the {@link OH_UdsAppItem}. 4417777dab0Sopenharmony_ci * 4427777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 4437777dab0Sopenharmony_ci * @param appIconId Represents a new string value. 4447777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 4457777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 4467777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 4477777dab0Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 4487777dab0Sopenharmony_ci * @since 12 4497777dab0Sopenharmony_ci */ 4507777dab0Sopenharmony_ciint OH_UdsAppItem_SetIconId(OH_UdsAppItem* pThis, const char* appIconId); 4517777dab0Sopenharmony_ci 4527777dab0Sopenharmony_ci/** 4537777dab0Sopenharmony_ci * @brief Set application label id to the {@link OH_UdsAppItem}. 4547777dab0Sopenharmony_ci * 4557777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 4567777dab0Sopenharmony_ci * @param appLabelId Represents a new string value. 4577777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 4587777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 4597777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 4607777dab0Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 4617777dab0Sopenharmony_ci * @since 12 4627777dab0Sopenharmony_ci */ 4637777dab0Sopenharmony_ciint OH_UdsAppItem_SetLabelId(OH_UdsAppItem* pThis, const char* appLabelId); 4647777dab0Sopenharmony_ci 4657777dab0Sopenharmony_ci/** 4667777dab0Sopenharmony_ci * @brief Set bundle name to the {@link OH_UdsAppItem}. 4677777dab0Sopenharmony_ci * 4687777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 4697777dab0Sopenharmony_ci * @param bundleName Represents a new string value. 4707777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 4717777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 4727777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 4737777dab0Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 4747777dab0Sopenharmony_ci * @since 12 4757777dab0Sopenharmony_ci */ 4767777dab0Sopenharmony_ciint OH_UdsAppItem_SetBundleName(OH_UdsAppItem* pThis, const char* bundleName); 4777777dab0Sopenharmony_ci 4787777dab0Sopenharmony_ci/** 4797777dab0Sopenharmony_ci * @brief Set ability name to the {@link OH_UdsAppItem}. 4807777dab0Sopenharmony_ci * 4817777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 4827777dab0Sopenharmony_ci * @param abilityName Represents a new string value. 4837777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 4847777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 4857777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 4867777dab0Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 4877777dab0Sopenharmony_ci * @since 12 4887777dab0Sopenharmony_ci */ 4897777dab0Sopenharmony_ciint OH_UdsAppItem_SetAbilityName(OH_UdsAppItem* pThis, const char* abilityName); 4907777dab0Sopenharmony_ci 4917777dab0Sopenharmony_ci/** 4927777dab0Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsFileUri}. 4937777dab0Sopenharmony_ci * 4947777dab0Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsFileUri} 4957777dab0Sopenharmony_ci * structure is returned. If the memory is not enough, nullptr is returned. 4967777dab0Sopenharmony_ci * @see OH_UdsFileUri 4977777dab0Sopenharmony_ci * @since 13 4987777dab0Sopenharmony_ci */ 4997777dab0Sopenharmony_ciOH_UdsFileUri* OH_UdsFileUri_Create(); 5007777dab0Sopenharmony_ci 5017777dab0Sopenharmony_ci/** 5027777dab0Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsFileUri} instance. 5037777dab0Sopenharmony_ci * 5047777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 5057777dab0Sopenharmony_ci * @see OH_UdsFileUri 5067777dab0Sopenharmony_ci * @since 13 5077777dab0Sopenharmony_ci */ 5087777dab0Sopenharmony_civoid OH_UdsFileUri_Destroy(OH_UdsFileUri* pThis); 5097777dab0Sopenharmony_ci 5107777dab0Sopenharmony_ci/** 5117777dab0Sopenharmony_ci * @brief Get type id from the {@link OH_UdsFileUri}. 5127777dab0Sopenharmony_ci * 5137777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 5147777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 5157777dab0Sopenharmony_ci * @see OH_UdsFileUri 5167777dab0Sopenharmony_ci * @since 13 5177777dab0Sopenharmony_ci */ 5187777dab0Sopenharmony_ciconst char* OH_UdsFileUri_GetType(OH_UdsFileUri* pThis); 5197777dab0Sopenharmony_ci 5207777dab0Sopenharmony_ci/** 5217777dab0Sopenharmony_ci * @brief Get file uri from the {@link OH_UdsFileUri}. 5227777dab0Sopenharmony_ci * 5237777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 5247777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 5257777dab0Sopenharmony_ci * @see OH_UdsFileUri 5267777dab0Sopenharmony_ci * @since 13 5277777dab0Sopenharmony_ci */ 5287777dab0Sopenharmony_ciconst char* OH_UdsFileUri_GetFileUri(OH_UdsFileUri* pThis); 5297777dab0Sopenharmony_ci 5307777dab0Sopenharmony_ci/** 5317777dab0Sopenharmony_ci * @brief Get file type from the {@link OH_UdsFileUri}. 5327777dab0Sopenharmony_ci * 5337777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 5347777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 5357777dab0Sopenharmony_ci * @see OH_UdsFileUri 5367777dab0Sopenharmony_ci * @since 13 5377777dab0Sopenharmony_ci */ 5387777dab0Sopenharmony_ciconst char* OH_UdsFileUri_GetFileType(OH_UdsFileUri* pThis); 5397777dab0Sopenharmony_ci 5407777dab0Sopenharmony_ci/** 5417777dab0Sopenharmony_ci * @brief Set file uri to the {@link OH_UdsFileUri}. 5427777dab0Sopenharmony_ci * 5437777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 5447777dab0Sopenharmony_ci * @param fileUri Represents a new file uri string. 5457777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 5467777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 5477777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 5487777dab0Sopenharmony_ci * @see OH_UdsFileUri Udmf_ErrCode 5497777dab0Sopenharmony_ci * @since 13 5507777dab0Sopenharmony_ci */ 5517777dab0Sopenharmony_ciint OH_UdsFileUri_SetFileUri(OH_UdsFileUri* pThis, const char* fileUri); 5527777dab0Sopenharmony_ci 5537777dab0Sopenharmony_ci/** 5547777dab0Sopenharmony_ci * @brief Set file type to the {@link OH_UdsFileUri}. 5557777dab0Sopenharmony_ci * 5567777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 5577777dab0Sopenharmony_ci * @param fileType Represents a new file type string. 5587777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 5597777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 5607777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 5617777dab0Sopenharmony_ci * @see OH_UdsFileUri Udmf_ErrCode 5627777dab0Sopenharmony_ci * @since 13 5637777dab0Sopenharmony_ci */ 5647777dab0Sopenharmony_ciint OH_UdsFileUri_SetFileType(OH_UdsFileUri* pThis, const char* fileType); 5657777dab0Sopenharmony_ci 5667777dab0Sopenharmony_ci/** 5677777dab0Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsPixelMap}. 5687777dab0Sopenharmony_ci * 5697777dab0Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsPixelMap} 5707777dab0Sopenharmony_ci * structure is returned. If the memory is not enough, nullptr is returned. 5717777dab0Sopenharmony_ci * @see OH_UdsPixelMap 5727777dab0Sopenharmony_ci * @since 13 5737777dab0Sopenharmony_ci */ 5747777dab0Sopenharmony_ciOH_UdsPixelMap* OH_UdsPixelMap_Create(); 5757777dab0Sopenharmony_ci 5767777dab0Sopenharmony_ci/** 5777777dab0Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsPixelMap} instance. 5787777dab0Sopenharmony_ci * 5797777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 5807777dab0Sopenharmony_ci * @see OH_UdsPixelMap 5817777dab0Sopenharmony_ci * @since 13 5827777dab0Sopenharmony_ci */ 5837777dab0Sopenharmony_civoid OH_UdsPixelMap_Destroy(OH_UdsPixelMap* pThis); 5847777dab0Sopenharmony_ci 5857777dab0Sopenharmony_ci/** 5867777dab0Sopenharmony_ci * @brief Get type id from the {@link OH_UdsPixelMap}. 5877777dab0Sopenharmony_ci * 5887777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 5897777dab0Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 5907777dab0Sopenharmony_ci * @see OH_UdsPixelMap 5917777dab0Sopenharmony_ci * @since 13 5927777dab0Sopenharmony_ci */ 5937777dab0Sopenharmony_ciconst char* OH_UdsPixelMap_GetType(OH_UdsPixelMap* pThis); 5947777dab0Sopenharmony_ci 5957777dab0Sopenharmony_ci/** 5967777dab0Sopenharmony_ci * @brief Get pixel map from the {@link OH_UdsPixelMap}. 5977777dab0Sopenharmony_ci * 5987777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 5997777dab0Sopenharmony_ci * @param pixelmapNative Represents output params of {@link OH_PixelmapNative}. 6007777dab0Sopenharmony_ci * @see OH_UdsPixelMap 6017777dab0Sopenharmony_ci * @since 13 6027777dab0Sopenharmony_ci */ 6037777dab0Sopenharmony_civoid OH_UdsPixelMap_GetPixelMap(OH_UdsPixelMap* pThis, OH_PixelmapNative* pixelmapNative); 6047777dab0Sopenharmony_ci 6057777dab0Sopenharmony_ci/** 6067777dab0Sopenharmony_ci * @brief Set pixel map to the {@link OH_UdsPixelMap}. 6077777dab0Sopenharmony_ci * 6087777dab0Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 6097777dab0Sopenharmony_ci * @param pixelmapNative Represents a new {@link OH_PixelmapNative}. 6107777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 6117777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 6127777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 6137777dab0Sopenharmony_ci * @see OH_UdsPixelMap Udmf_ErrCode 6147777dab0Sopenharmony_ci * @since 13 6157777dab0Sopenharmony_ci */ 6167777dab0Sopenharmony_ciint OH_UdsPixelMap_SetPixelMap(OH_UdsPixelMap* pThis, OH_PixelmapNative* pixelmapNative); 6177777dab0Sopenharmony_ci 6187777dab0Sopenharmony_ci/** 6197777dab0Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsArrayBuffer}. 6207777dab0Sopenharmony_ci * 6217777dab0Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsArrayBuffer} 6227777dab0Sopenharmony_ci * structure is returned. If the memory is not enough, nullptr is returned. 6237777dab0Sopenharmony_ci * @see OH_UdsArrayBuffer 6247777dab0Sopenharmony_ci * @since 13 6257777dab0Sopenharmony_ci */ 6267777dab0Sopenharmony_ciOH_UdsArrayBuffer* OH_UdsArrayBuffer_Create(); 6277777dab0Sopenharmony_ci 6287777dab0Sopenharmony_ci/** 6297777dab0Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsArrayBuffer} instance. 6307777dab0Sopenharmony_ci * 6317777dab0Sopenharmony_ci * @param buffer Represents a pointer to an instance of {@link OH_UdsArrayBuffer}. 6327777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 6337777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 6347777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 6357777dab0Sopenharmony_ci * @see OH_UdsArrayBuffer Udmf_ErrCode 6367777dab0Sopenharmony_ci * @since 13 6377777dab0Sopenharmony_ci */ 6387777dab0Sopenharmony_ciint OH_UdsArrayBuffer_Destroy(OH_UdsArrayBuffer* buffer); 6397777dab0Sopenharmony_ci 6407777dab0Sopenharmony_ci/** 6417777dab0Sopenharmony_ci * @brief Set array buffer data to the {@link OH_UdsArrayBuffer}. 6427777dab0Sopenharmony_ci * 6437777dab0Sopenharmony_ci * @param buffer Represents a pointer to an instance of {@link OH_UdsArrayBuffer}. 6447777dab0Sopenharmony_ci * @param data Represents the array buffer data. 6457777dab0Sopenharmony_ci * @param len Represents the length of data param. 6467777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 6477777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 6487777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 6497777dab0Sopenharmony_ci * @see OH_UdsArrayBuffer Udmf_ErrCode 6507777dab0Sopenharmony_ci * @since 13 6517777dab0Sopenharmony_ci */ 6527777dab0Sopenharmony_ciint OH_UdsArrayBuffer_SetData(OH_UdsArrayBuffer* buffer, unsigned char* data, unsigned int len); 6537777dab0Sopenharmony_ci 6547777dab0Sopenharmony_ci/** 6557777dab0Sopenharmony_ci * @brief Get array buffer data from the {@link OH_UdsArrayBuffer}. 6567777dab0Sopenharmony_ci * 6577777dab0Sopenharmony_ci * @param buffer Represents a pointer to an instance of {@link OH_UdsArrayBuffer}. 6587777dab0Sopenharmony_ci * @param data Represents a pointer to array buffer data that is a output param. 6597777dab0Sopenharmony_ci * @param len Represents the array buffer data length that is a output param. 6607777dab0Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 6617777dab0Sopenharmony_ci * {@link UDMF_E_OK} success. 6627777dab0Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 6637777dab0Sopenharmony_ci * @see OH_UdsArrayBuffer Udmf_ErrCode 6647777dab0Sopenharmony_ci * @since 13 6657777dab0Sopenharmony_ci */ 6667777dab0Sopenharmony_ciint OH_UdsArrayBuffer_GetData(OH_UdsArrayBuffer* buffer, unsigned char** data, unsigned int* len); 6677777dab0Sopenharmony_ci 6687777dab0Sopenharmony_ci#ifdef __cplusplus 6697777dab0Sopenharmony_ci}; 6707777dab0Sopenharmony_ci#endif 6717777dab0Sopenharmony_ci 6727777dab0Sopenharmony_ci/** @} */ 6737777dab0Sopenharmony_ci#endif