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:

committed by
Markus Mäkelä

parent
b656f2b300
commit
d2e4d9cc64
@ -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
|
||||
|
Reference in New Issue
Block a user