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:
@ -3172,8 +3172,6 @@ void qc_sqlite_get_field_info(GWBUF* query, const QC_FIELD_INFO** infos, size_t*
|
||||
* EXPORTS
|
||||
*/
|
||||
|
||||
static char version_string[] = "V1.0.0";
|
||||
|
||||
static QUERY_CLASSIFIER qc =
|
||||
{
|
||||
qc_sqlite_init,
|
||||
@ -3202,13 +3200,9 @@ MODULE_INFO info =
|
||||
MODULE_BETA_RELEASE,
|
||||
QUERY_CLASSIFIER_VERSION,
|
||||
"Query classifier using sqlite.",
|
||||
"V1.0.0"
|
||||
};
|
||||
|
||||
char* version()
|
||||
{
|
||||
return version_string;
|
||||
}
|
||||
|
||||
void ModuleInit()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user