Move private type to implementation.

parsing_info_t is only used by the query_classifier implementation.
No need to keep it public.
This commit is contained in:
Johan Wikman 2016-01-11 12:53:19 +02:00
parent 23a7562d3a
commit 79fa226000
2 changed files with 13 additions and 14 deletions

View File

@ -61,6 +61,19 @@
#include <string.h>
#include <stdarg.h>
typedef struct parsing_info_st
{
#if defined(SS_DEBUG)
skygw_chk_t pi_chk_top;
#endif
void* pi_handle; /*< parsing info object pointer */
char* pi_query_plain_str; /*< query as plain string */
void (*pi_done_fp)(void *); /*< clean-up function for parsing info */
#if defined(SS_DEBUG)
skygw_chk_t pi_chk_tail;
#endif
} parsing_info_t;
#define QTYPE_LESS_RESTRICTIVE_THAN_WRITE(t) (t<QUERY_TYPE_WRITE ? true : false)
static THD* get_or_create_thd_for_parsing(MYSQL* mysql, char* query_str);

View File

@ -81,20 +81,6 @@ typedef enum
QUERY_OP_LOAD = (1 << 12)
} qc_query_op_t;
typedef struct parsing_info_st
{
#if defined(SS_DEBUG)
skygw_chk_t pi_chk_top;
#endif
void* pi_handle; /*< parsing info object pointer */
char* pi_query_plain_str; /*< query as plain string */
void (*pi_done_fp)(void *); /*< clean-up function for parsing info */
#if defined(SS_DEBUG)
skygw_chk_t pi_chk_tail;
#endif
} parsing_info_t;
#define QUERY_IS_TYPE(mask,type) ((mask & type) == type)
/**