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:
committed by
Markus Mäkelä
parent
978af12a91
commit
5b9c276123
@ -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
|
||||
|
||||
Reference in New Issue
Block a user