MXS-2304 Remove remaining uses of config_get_string() from module code

The function returns a pointer to an internal string and should not be
used.
This commit is contained in:
Esa Korhonen
2019-02-04 16:07:09 +02:00
parent 5ab7734e9d
commit 78d9ef2910
7 changed files with 22 additions and 40 deletions

View File

@ -231,15 +231,6 @@ public:
*/
std::string get_string(const std::string& key) const;
/**
* Get value of key as c-string. The pointer is valid as long as the underlying configuration
* is not changed.
*
* @param key Parameter name
* @return Parameter value. Empty string if key not found.
*/
const char* get_c_str(const std::string& key) const;
/**
* @brief Get copy of parameter value if it is defined
*
@ -431,16 +422,6 @@ bool config_param_is_valid(const MXS_MODULE_PARAM* params,
const char* value,
const CONFIG_CONTEXT* context);
/**
* @brief Get a string value
*
* @param params List of configuration parameters
* @param key Parameter name
*
* @return The raw string value or an empty string if no parameter was found
*/
const char* config_get_string(const MXS_CONFIG_PARAMETER* params, const char* key);
/**
* @brief Get an array of servers. The caller should free the produced array,
* but not the array elements.