Rename FILTER_OBJECT to MXS_FILTER_OBJECT
Other clarifications to follow.
This commit is contained in:
@ -61,7 +61,7 @@ typedef void *FILTER;
|
||||
*
|
||||
* @see load_module
|
||||
*/
|
||||
typedef struct filter_object
|
||||
typedef struct mxs_filter_object
|
||||
{
|
||||
FILTER *(*createInstance)(const char *name,
|
||||
char **options,
|
||||
@ -76,10 +76,10 @@ typedef struct filter_object
|
||||
void (*diagnostics)(FILTER *instance, void *fsession, DCB *dcb);
|
||||
uint64_t (*getCapabilities)(void);
|
||||
void (*destroyInstance)(FILTER *instance);
|
||||
} FILTER_OBJECT;
|
||||
} MXS_FILTER_OBJECT;
|
||||
|
||||
/**
|
||||
* The filter API version. If the FILTER_OBJECT structure or the filter API
|
||||
* The filter API version. If the MXS_FILTER_OBJECT structure or the filter API
|
||||
* is changed these values must be updated in line with the rules in the
|
||||
* file modinfo.h.
|
||||
*/
|
||||
@ -96,7 +96,7 @@ typedef struct filter_def
|
||||
char **options; /**< The options set for this filter */
|
||||
CONFIG_PARAMETER *parameters; /**< The filter parameters */
|
||||
FILTER filter; /**< The runtime filter */
|
||||
FILTER_OBJECT *obj; /**< The "MODULE_OBJECT" for the filter */
|
||||
MXS_FILTER_OBJECT *obj; /**< The "MODULE_OBJECT" for the filter */
|
||||
SPINLOCK spin; /**< Spinlock to protect the filter definition */
|
||||
struct filter_def *next; /**< Next filter in the chain of all filters */
|
||||
} FILTER_DEF;
|
||||
|
@ -306,12 +306,12 @@ public:
|
||||
MXS_EXCEPTION_GUARD(delete pFilter);
|
||||
}
|
||||
|
||||
static FILTER_OBJECT s_object;
|
||||
static MXS_FILTER_OBJECT s_object;
|
||||
};
|
||||
|
||||
|
||||
template<class FilterType, class FilterSessionType>
|
||||
FILTER_OBJECT Filter<FilterType, FilterSessionType>::s_object =
|
||||
MXS_FILTER_OBJECT Filter<FilterType, FilterSessionType>::s_object =
|
||||
{
|
||||
&Filter<FilterType, FilterSessionType>::createInstance,
|
||||
&Filter<FilterType, FilterSessionType>::newSession,
|
||||
|
@ -184,7 +184,7 @@ typedef struct mxs_module
|
||||
* MXS_MODULE* MXS_CREATE_MODULE()
|
||||
* {
|
||||
* // Module specific API implementation
|
||||
* static FILTER_OBJECT my_object = { ... };
|
||||
* static MXS_FILTER_OBJECT my_object = { ... };
|
||||
*
|
||||
* // An implementation of the MXS_MODULE structure
|
||||
* static MXS_MODULE info = { ... };
|
||||
|
Reference in New Issue
Block a user