MXS-1220: Make filter to JSON functions const correct

The functions don't modify the filters when the JSON is generated. This
means that the parameters can be const.

Minor formatting fixes to service sources.
This commit is contained in:
Markus Mäkelä
2017-04-17 19:17:11 +03:00
committed by Markus Mäkelä
parent b656f2b300
commit d2e4d9cc64
3 changed files with 13 additions and 13 deletions

View File

@ -253,7 +253,7 @@ MXS_FILTER* filter_def_get_instance(const MXS_FILTER_DEF* filter_def);
*
* @return Filter converted to JSON format
*/
json_t* filter_to_json(MXS_FILTER_DEF* filter);
json_t* filter_to_json(const MXS_FILTER_DEF* filter);
/**
* @brief Convert all filters into JSON