From bc58195c332172d544af11f7688b57ee3b7ff872 Mon Sep 17 00:00:00 2001 From: Abhimanyu Swami Date: Thu, 27 Mar 2025 17:05:32 +0530 Subject: [PATCH] Fix build errors Change-Id: I864c703aa0056241cec25bfc0550d4a397f4d186 --- gps-plugin/src/gps_plugin_replay.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gps-plugin/src/gps_plugin_replay.c b/gps-plugin/src/gps_plugin_replay.c index 2db586e..d82462d 100755 --- a/gps-plugin/src/gps_plugin_replay.c +++ b/gps-plugin/src/gps_plugin_replay.c @@ -80,7 +80,7 @@ void gps_plugin_replay_pos_event(hal_location_pos_data_s *data) memset(&gps_event, 0, sizeof(gps_event_info_s)); time(×tamp); - gps_event.hal_location_gps_event_id_e = HAL_LOCATION_GPS_EVENT_REPORT_POSITION; + gps_event.event_id = HAL_LOCATION_GPS_EVENT_REPORT_POSITION; if (data == NULL) { LOG_PLUGIN(DBG_ERR, "NULL POS data."); @@ -158,7 +158,7 @@ void gps_plugin_replay_batch_event(hal_location_pos_data_s *data, replay_timeout gps_event_info_s gps_event; memset(&gps_event, 0, sizeof(gps_event_info_s)); - gps_event.hal_location_gps_event_id_e = HAL_LOCATION_GPS_EVENT_REPORT_BATCH; + gps_event.event_id = HAL_LOCATION_GPS_EVENT_REPORT_BATCH; timer->batch_start_time = timestamp; timer->is_flush = FALSE; @@ -186,7 +186,7 @@ void gps_plugin_replay_sv_event(hal_location_sv_data_s *data) memset(&gps_event, 0, sizeof(gps_event_info_s)); time(×tamp); - gps_event.hal_location_gps_event_id_e = HAL_LOCATION_GPS_EVENT_REPORT_SATELLITE; + gps_event.event_id = HAL_LOCATION_GPS_EVENT_REPORT_SATELLITE; if (data == NULL) { LOG_PLUGIN(DBG_ERR, "NULL SV data."); @@ -217,7 +217,7 @@ void gps_plugin_replay_nmea_event(hal_location_nmea_data_s *data) memset(&gps_event, 0, sizeof(gps_event_info_s)); time(×tamp); - gps_event.hal_location_gps_event_id_e = HAL_LOCATION_GPS_EVENT_REPORT_NMEA; + gps_event.event_id = HAL_LOCATION_GPS_EVENT_REPORT_NMEA; if (data == NULL) { LOG_PLUGIN(DBG_ERR, "NULL NMEA data."); @@ -251,7 +251,7 @@ void gps_plugin_replay_nmea_event(hal_location_nmea_data_s *data) void gps_plugin_respond_start_session(gboolean ret) { gps_event_info_s gps_event; - gps_event.hal_location_gps_event_id_e = HAL_LOCATION_GPS_EVENT_START_SESSION; + gps_event.event_id = HAL_LOCATION_GPS_EVENT_START_SESSION; if (ret == TRUE) gps_event.event_data.start_session_rsp.error = HAL_LOCATION_GPS_ERR_NONE; @@ -266,7 +266,7 @@ void gps_plugin_respond_stop_session(void) { gps_event_info_s gps_event; - gps_event.hal_location_gps_event_id_e = HAL_LOCATION_GPS_EVENT_STOP_SESSION; + gps_event.event_id = HAL_LOCATION_GPS_EVENT_STOP_SESSION; gps_event.event_data.stop_session_rsp.error = HAL_LOCATION_GPS_ERR_NONE; if (g_gps_event_cb != NULL) -- 2.34.1