memset(&gps_event, 0, sizeof(gps_event_info_s));
time(×tamp);
- gps_event.hal_location_gps_event_id_e = GPS_EVENT_REPORT_POSITION;
+ gps_event.hal_location_gps_event_id_e = 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 = GPS_EVENT_REPORT_BATCH;
+ gps_event.hal_location_gps_event_id_e = 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 = GPS_EVENT_REPORT_SATELLITE;
+ gps_event.hal_location_gps_event_id_e = 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 = GPS_EVENT_REPORT_NMEA;
+ gps_event.hal_location_gps_event_id_e = HAL_LOCATION_GPS_EVENT_REPORT_NMEA;
if (data == NULL) {
LOG_PLUGIN(DBG_ERR, "NULL NMEA data.");
static int gps_plugin_replay_gps_request(hal_location_gps_action_e gps_action, void *gps_action_data, gps_failure_reason_e *reason_code)
{
- gps_action_start_data_t *gps_start_data = gps_action_data;
+ hal_location_gps_action_start_data_s *gps_start_data = gps_action_data;
switch (gps_action) {
- case GPS_ACTION_SEND_PARAMS:
+ case HAL_LOCATION_GPS_ACTION_SEND_PARAMS:
g_replay_timer->lcd_mode = *(int*)(gps_action_data);
break;
- case GPS_ACTION_START_SESSION:
+ case HAL_LOCATION_GPS_ACTION_START_SESSION:
gps_plugin_start_replay_mode(g_replay_timer);
break;
- case GPS_ACTION_STOP_SESSION:
+ case HAL_LOCATION_GPS_ACTION_STOP_SESSION:
gps_plugin_stop_replay_mode(g_replay_timer);
break;
- case GPS_ACTION_START_BATCH:
+ case HAL_LOCATION_GPS_ACTION_START_BATCH:
if (!gps_start_data->session_status) /* need to start */
gps_plugin_start_replay_mode(g_replay_timer);
gps_plugin_update_batch_mode(g_replay_timer, gps_start_data->interval, gps_start_data->period);
break;
- case GPS_ACTION_STOP_BATCH:
+ case HAL_LOCATION_GPS_ACTION_STOP_BATCH:
if (!gps_start_data->session_status) /* need to stop */
gps_plugin_stop_replay_mode(g_replay_timer);
gps_plugin_stop_batch_mode(g_replay_timer, gps_start_data->interval, gps_start_data->period);
break;
//error when adding new options, cannot build. so adding calling functions in existing cases for now which were unused
- case GPS_INDI_SUPL_VERIFICATION:
+ case HAL_LOCATION_GPS_INDI_SUPL_VERIFICATION:
display_mode_changed();
break;
- case GPS_INDI_SUPL_DNSQUERY:
+ case HAL_LOCATION_GPS_INDI_SUPL_DNSQUERY:
if (nmea_file_name) {
free(nmea_file_name);
nmea_file_name = NULL;
}
nmea_file_name = strdup(*(const char**)(gps_action_data));
break;
- case GPS_ACTION_START_FACTTEST:
+ case HAL_LOCATION_GPS_ACTION_START_FACTTEST:
g_replay_timer->replay_mode = *(int*)(gps_action_data);
break;
- case GPS_ACTION_STOP_FACTTEST:
+ case HAL_LOCATION_GPS_ACTION_STOP_FACTTEST:
replay_mode_changed();
break;
- case GPS_ACTION_REQUEST_SUPL_NI:
+ case HAL_LOCATION_GPS_ACTION_REQUEST_SUPL_NI:
LOG_PLUGIN(DBG_LOW, "Don't use action type : [ %d ]", gps_action);
break;
default: