diff options
author | Saurabh Srivastava <ssrivast@codeaurora.org> | 2018-04-09 17:56:08 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-05-08 23:27:51 -0700 |
commit | f906756e7b491951b8c7bf230272051e41d1dced (patch) | |
tree | b89f82aa07bbd085139d034151b95c25f947c25c | |
parent | 43699ba79c512ec8cebd54a5e804ea24bc6962eb (diff) | |
download | gps-f906756e7b491951b8c7bf230272051e41d1dced.tar.gz |
Adding Location Service Modem Emulator
Adding Modem Emulator to test features
not yet supported in Modem build.
Change-Id: I86f4eeaa7577d83c5ef9605c78672068721c020e
CRs-Fixed: 2193247
-rw-r--r-- | utils/loc_cfg.cpp | 17 | ||||
-rw-r--r-- | 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 6b53188..78d4010 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); @@ -86,6 +88,17 @@ 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 DESCRIPTION diff --git a/utils/loc_cfg.h b/utils/loc_cfg.h index c89d303..652d86e 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 |