Fix build errors 47/321747/1 tizen
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Thu, 27 Mar 2025 11:35:32 +0000 (17:05 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Thu, 27 Mar 2025 11:35:32 +0000 (17:05 +0530)
Change-Id: I864c703aa0056241cec25bfc0550d4a397f4d186

gps-plugin/src/gps_plugin_replay.c

index 2db586ed65d1e8c71c4a7f56a946e725c8321393..d82462de142c5c12b316e99636f36d2fff924bfe 100755 (executable)
@@ -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(&timestamp);
 
-       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(&timestamp);
-       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(&timestamp);
 
-       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)