MXS-1220: Create corrent relation links

When a resource has a relation to another resource, it should be expressed
as a working link to the resource. By passing the hostname of the server
to the functions, we are able to generate working relation links.
This commit is contained in:
Markus Mäkelä
2017-04-19 10:15:24 +03:00
committed by Markus Mäkelä
parent 978af12a91
commit 5b9c276123
10 changed files with 54 additions and 29 deletions

View File

@ -417,9 +417,10 @@ void session_clear_stmt(MXS_SESSION *session);
* @brief Convert a session to JSON
*
* @param session Session to convert
* @param host Hostname of this server
*
* @return New JSON object or NULL on error
*/
json_t* session_to_json(const MXS_SESSION *session);
json_t* session_to_json(const MXS_SESSION *session, const char* host);
MXS_END_DECLS