From 98125ae628a59fae6f1a4da19200b799595fd47e Mon Sep 17 00:00:00 2001 From: Saurabh Srivastava Date: Mon, 9 Apr 2018 17:56:08 +0530 Subject: [PATCH] Adding Location Service Modem Emulator Adding Modem Emulator to test features not yet supported in Modem build. Change-Id: I86f4eeaa7577d83c5ef9605c78672068721c020e CRs-Fixed: 2193247 --- utils/loc_cfg.cpp | 17 +++++++++++++++-- utils/loc_cfg.h | 2 ++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp index 80379792..aa8d0e82 100644 --- a/utils/loc_cfg.cpp +++ b/utils/loc_cfg.cpp @@ -57,12 +57,14 @@ /* Parameter data */ static uint32_t DEBUG_LEVEL = 0xff; static uint32_t TIMESTAMP = 0; +static uint32_t LOC_MODEM_EMULATOR = 0; /* Parameter spec table */ static const loc_param_s_type loc_param_table[] = { - {"DEBUG_LEVEL", &DEBUG_LEVEL, NULL, 'n'}, - {"TIMESTAMP", &TIMESTAMP, NULL, 'n'}, + {"DEBUG_LEVEL", &DEBUG_LEVEL, NULL, 'n'}, + {"TIMESTAMP", &TIMESTAMP, NULL, 'n'}, + {"LOC_MODEM_EMULATOR", &LOC_MODEM_EMULATOR, NULL, 'n'}, }; static const int loc_param_num = sizeof(loc_param_table) / sizeof(loc_param_s_type); @@ -85,6 +87,17 @@ const char LOC_PATH_APDR_CONF[] = LOC_PATH_APDR_CONF_STR; const char LOC_PATH_XTWIFI_CONF[] = LOC_PATH_XTWIFI_CONF_STR; const char LOC_PATH_QUIPC_CONF[] = LOC_PATH_QUIPC_CONF_STR; +/*=========================================================================== +FUNCTION loc_modem_emulator_enabled + +DESCRIPTION + Provides access to Modem Emulator config item. +===========================================================================*/ +uint32_t loc_modem_emulator_enabled() +{ + return LOC_MODEM_EMULATOR; +} + /*=========================================================================== FUNCTION loc_set_config_entry diff --git a/utils/loc_cfg.h b/utils/loc_cfg.h index c89d3038..652d86eb 100644 --- a/utils/loc_cfg.h +++ b/utils/loc_cfg.h @@ -133,6 +133,8 @@ extern const char LOC_PATH_QUIPC_CONF[]; int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_ptr, loc_process_info_s_type** process_info_table_ptr); +uint32_t loc_modem_emulator_enabled(); + #ifdef __cplusplus } #endif