From 96ed8a6abbd3ce5bfc2487a535b8795028959b69 Mon Sep 17 00:00:00 2001 From: liujiaxing19 Date: Tue, 24 Jun 2025 21:18:39 +0800 Subject: [PATCH] =?UTF-8?q?hiappevent=E4=BF=AE=E5=A4=8DEventType=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiaxing19 Change-Id: Id326d406d16ec98721f37da7b3a0f6cc575133e2 --- hiviewdfx/hiappevent/include/hiappevent/hiappevent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h b/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h index 8ea6331c1..37f019582 100644 --- a/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h +++ b/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h @@ -134,7 +134,7 @@ typedef enum { * @since 8 * @version 1.0 */ -enum EventType { +typedef enum { /* Fault event type */ FAULT = 1, @@ -146,7 +146,7 @@ enum EventType { /* Behavior event type */ BEHAVIOR = 4 -}; +} EventType; /** * @brief The HiAppEvent_AppEventInfo structure is used to represent event information in an application, including @@ -161,7 +161,7 @@ typedef struct HiAppEvent_AppEventInfo { /* The name of the event. */ const char* name; /* The type of the event. */ - enum EventType type; + EventType type; /* The json string of the parameter. */ const char* params; } HiAppEvent_AppEventInfo; -- Gitee