Remove skygw_types.h
Some stuff moved to maxscale/utils.h. Further cleanup still needed.
This commit is contained in:
@ -67,6 +67,7 @@
|
||||
#include <maxscale/version.h>
|
||||
#include <maxscale/queuemanager.h>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/utils.h>
|
||||
|
||||
/** To be used with configuration type checks */
|
||||
typedef struct typelib_st
|
||||
@ -78,13 +79,13 @@ typedef struct typelib_st
|
||||
|
||||
/** Set of subsequent false,true pairs */
|
||||
static const char* bool_strings[11] = {"FALSE", "TRUE", "OFF", "ON", "N", "Y", "0", "1", "NO", "YES", 0};
|
||||
typelib_t bool_type = {array_nelems(bool_strings) - 1, "bool_type", bool_strings};
|
||||
typelib_t bool_type = {MXS_ARRAY_NELEMS(bool_strings) - 1, "bool_type", bool_strings};
|
||||
|
||||
/** List of valid values */
|
||||
static const char* sqlvar_target_strings[4] = {"MASTER", "ALL", 0};
|
||||
typelib_t sqlvar_target_type =
|
||||
{
|
||||
array_nelems(sqlvar_target_strings) - 1,
|
||||
MXS_ARRAY_NELEMS(sqlvar_target_strings) - 1,
|
||||
"sqlvar_target_type",
|
||||
sqlvar_target_strings
|
||||
};
|
||||
|
Reference in New Issue
Block a user