RSP_newParseMySQL -- Sets up internal structures for parsing MySQL data.
Synopsis
RSP_parseData* RSP_newParseMySQL(char *pszHost, int iPort, char *pszLogin, char *pszPassword, char *pszDatabase, int timeout);
Description
This function will setup a new RSP_parseData structure
which may be passed to any of the other parse functions.
If szHost is not an IP address then a DNS lookup will be
performed.
There are three functions which will collect data.
At that time a connection will be made to the database
specified by the parameters given to this function.
The three functions are:
RSP_getHostsAndModules
RSP_getKeys
RSP_parseBegin
See these functions for more details.
Returns
This function will return a new RSP_parseData structure. Be
sure to call RSP_parseDelete to free this structure when you
are done with it.
Error Conditions
If an error occurs with this function, NULL is returned and
rsp_error is set appropriately. Possible error values are: