summaryrefslogtreecommitdiff
path: root/utils/loc_cfg.h
diff options
context:
space:
mode:
authorValeri Atamaniouk <valeria@codeaurora.org>2015-10-21 18:53:58 +0300
committerValeri Atamaniouk <valeria@codeaurora.org>2015-11-09 11:33:15 +0200
commit78bb13288e9ac69a985cf8a4b8c15b21770b59c5 (patch)
tree16c9b3b8582db269f758c24b3a44c439539fa7ff /utils/loc_cfg.h
parent15ea4fca381ca7cc2085fae72318a9b0c1cedbed (diff)
downloadgps-78bb13288e9ac69a985cf8a4b8c15b21770b59c5.tar.gz
Location: reduce memory footprint
Reduce memory footprint by moving data sets into const data segments. Update function parameters to accept const parameters when appropriate. CRs-fixed: 928770 Change-Id: I42955cf18de2b0541cfaed89359cdcf9ae6fea8a
Diffstat (limited to 'utils/loc_cfg.h')
-rw-r--r--utils/loc_cfg.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/loc_cfg.h b/utils/loc_cfg.h
index ea4865b..9045e1d 100644
--- a/utils/loc_cfg.h
+++ b/utils/loc_cfg.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -54,7 +54,7 @@
*============================================================================*/
typedef struct
{
- char param_name[LOC_MAX_PARAM_NAME];
+ const char *param_name;
void *param_ptr;
uint8_t *param_set; /* was this value set by config file? */
char param_type; /* 'n' for number,
@@ -78,12 +78,12 @@ extern "C" {
*
*============================================================================*/
void loc_read_conf(const char* conf_file_name,
- loc_param_s_type* config_table,
+ const loc_param_s_type* config_table,
uint32_t table_length);
-int loc_read_conf_r(FILE *conf_fp, loc_param_s_type* config_table,
+int loc_read_conf_r(FILE *conf_fp, const loc_param_s_type* config_table,
uint32_t table_length);
int loc_update_conf(const char* conf_data, int32_t length,
- loc_param_s_type* config_table, uint32_t table_length);
+ const loc_param_s_type* config_table, uint32_t table_length);
#ifdef __cplusplus
}
#endif