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.");
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;
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.");
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.");
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;
{
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)