From 415314ef210a99edc7e6639abb9f82b7c9413597 Mon Sep 17 00:00:00 2001 From: liujiaxing19 Date: Mon, 2 Jun 2025 16:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eprocessor=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiaxing19 Change-Id: I04fdfc3769e9cc99fb1a8f8cb0e81fe686f7d4cb --- .../hiappevent/include/hiappevent/hiappevent.h | 15 +++++++++++++++ hiviewdfx/hiappevent/libhiappevent.ndk.json | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h b/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h index 8ea6331c1..6e41ae61a 100644 --- a/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h +++ b/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h @@ -740,6 +740,21 @@ int OH_HiAppEvent_SetCustomConfig(HiAppEvent_Processor* processor, const char* k */ int OH_HiAppEvent_SetConfigId(HiAppEvent_Processor* processor, int configId); +/** + * @brief The interface to set config Name for processor. + * + * @param processor The pointer to the HiAppEvent_Processor instance. + * @param configName The configName of processor. + * @return set result. + * {@link HIAPPEVENT_SUCCESS} The operation is successful. + * {@link HIAPPEVENT_PROCESSOR_IS_NULL} The processor is nullptr. + * {@link HIAPPEVENT_INVALID_PARAM_VALUE} Invalid Param value. + * {@link HIAPPEVENT_INVALID_UID} Invalid uid. + * {@link HIAPPEVENT_INVALID_PARAM_VALUE_LENGTH} Invalid param value length. + * @since 20 + */ +int OH_HiAppEvent_SetConfigName(HiAppEvent_Processor* processor, const char* configName); + /** * @brief The interface to set user info for processor. * diff --git a/hiviewdfx/hiappevent/libhiappevent.ndk.json b/hiviewdfx/hiappevent/libhiappevent.ndk.json index 98c62ebeb..23733ddde 100644 --- a/hiviewdfx/hiappevent/libhiappevent.ndk.json +++ b/hiviewdfx/hiappevent/libhiappevent.ndk.json @@ -158,5 +158,9 @@ { "first_introduced": "18", "name": "OH_HiAppEvent_RemoveProcessor" + }, + { + "first_introduced": "20", + "name": "OH_HiAppEvent_SetConfigName" } ] -- Gitee