MXS-1220: Implement /maxscale/ resource

The resource exposes the various directories that MaxScale uses. Further
information, like uptime, could be added at a later point.
This commit is contained in:
Markus Mäkelä
2017-05-02 09:53:20 +03:00
parent bf44cd0d14
commit 73cf7999f2
3 changed files with 30 additions and 2 deletions

View File

@ -23,6 +23,7 @@
#include <sys/utsname.h>
#include <maxscale/modinfo.h>
#include <maxscale/jansson.h>
MXS_BEGIN_DECLS
@ -395,4 +396,12 @@ void config_disable_feedback_task(void);
*/
bool config_reload(void);
/**
* @brief List all path parameters as JSON
*
* @param host Hostname of this server
* @return JSON object representing the paths used by MaxScale
*/
json_t* config_paths_to_json(const char* host);
MXS_END_DECLS