Move version entry point into MODULE_INFO
The MODULE_INFO can easily hold the version information of the module. This removes the need for a explicit version entry point.
This commit is contained in:
@ -22,15 +22,14 @@
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/debug.h>
|
||||
|
||||
static char *version_str = (char*)"V1.0.0";
|
||||
|
||||
/*lint -e14 */
|
||||
MODULE_INFO info =
|
||||
{
|
||||
MODULE_API_MONITOR,
|
||||
MODULE_BETA_RELEASE,
|
||||
MONITOR_VERSION,
|
||||
"Aurora monitor"
|
||||
"Aurora monitor",
|
||||
"V1.0.0"
|
||||
};
|
||||
/*lint +e14 */
|
||||
|
||||
@ -42,18 +41,6 @@ typedef struct aurora_monitor
|
||||
bool events[MAX_MONITOR_EVENT]; /**< Enabled monitor events */
|
||||
} AURORA_MONITOR;
|
||||
|
||||
/**
|
||||
* Implementation of the mandatory version entry point
|
||||
*
|
||||
* @return version string of the module
|
||||
*/
|
||||
/*lint -e14 */
|
||||
char *
|
||||
version()
|
||||
{
|
||||
return version_str;
|
||||
}
|
||||
|
||||
/**
|
||||
* The module initialisation routine, called when the module is first loaded.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user