diff --git a/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h b/hiviewdfx/hiappevent/include/hiappevent/hiappevent.h index 8ea6331c1ec187318c181a78a2f75c1d26b9d4c0..37f019582c32997470a91aa37503d0d4e2bda672 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;