~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to include/mysql/plugin.h.pp

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
struct st_mysql_lex_string
 
2
{
 
3
  char *str;
 
4
  unsigned int length;
 
5
};
 
6
typedef struct st_mysql_lex_string MYSQL_LEX_STRING;
 
7
struct st_mysql_xid {
 
8
  long formatID;
 
9
  long gtrid_length;
 
10
  long bqual_length;
 
11
  char data[128];
 
12
};
 
13
typedef struct st_mysql_xid MYSQL_XID;
 
14
enum enum_mysql_show_type
 
15
{
 
16
  SHOW_UNDEF, SHOW_BOOL, SHOW_INT, SHOW_LONG,
 
17
  SHOW_LONGLONG, SHOW_CHAR, SHOW_CHAR_PTR,
 
18
  SHOW_ARRAY, SHOW_FUNC, SHOW_DOUBLE
 
19
};
 
20
struct st_mysql_show_var {
 
21
  const char *name;
 
22
  char *value;
 
23
  enum enum_mysql_show_type type;
 
24
};
 
25
typedef int (*mysql_show_var_func)(void*, struct st_mysql_show_var*, char *);
 
26
struct st_mysql_sys_var;
 
27
struct st_mysql_value;
 
28
typedef int (*mysql_var_check_func)(void* thd,
 
29
                                    struct st_mysql_sys_var *var,
 
30
                                    void *save, struct st_mysql_value *value);
 
31
typedef void (*mysql_var_update_func)(void* thd,
 
32
                                      struct st_mysql_sys_var *var,
 
33
                                      void *var_ptr, const void *save);
 
34
struct st_mysql_plugin
 
35
{
 
36
  int type;
 
37
  void *info;
 
38
  const char *name;
 
39
  const char *author;
 
40
  const char *descr;
 
41
  int license;
 
42
  int (*init)(void *);
 
43
  int (*deinit)(void *);
 
44
  unsigned int version;
 
45
  struct st_mysql_show_var *status_vars;
 
46
  struct st_mysql_sys_var **system_vars;
 
47
  void * __reserved1;
 
48
};
 
49
enum enum_ftparser_mode
 
50
{
 
51
  MYSQL_FTPARSER_SIMPLE_MODE= 0,
 
52
  MYSQL_FTPARSER_WITH_STOPWORDS= 1,
 
53
  MYSQL_FTPARSER_FULL_BOOLEAN_INFO= 2
 
54
};
 
55
enum enum_ft_token_type
 
56
{
 
57
  FT_TOKEN_EOF= 0,
 
58
  FT_TOKEN_WORD= 1,
 
59
  FT_TOKEN_LEFT_PAREN= 2,
 
60
  FT_TOKEN_RIGHT_PAREN= 3,
 
61
  FT_TOKEN_STOPWORD= 4
 
62
};
 
63
typedef struct st_mysql_ftparser_boolean_info
 
64
{
 
65
  enum enum_ft_token_type type;
 
66
  int yesno;
 
67
  int weight_adjust;
 
68
  char wasign;
 
69
  char trunc;
 
70
  char prev;
 
71
  char *quot;
 
72
} MYSQL_FTPARSER_BOOLEAN_INFO;
 
73
typedef struct st_mysql_ftparser_param
 
74
{
 
75
  int (*mysql_parse)(struct st_mysql_ftparser_param *,
 
76
                     char *doc, int doc_len);
 
77
  int (*mysql_add_word)(struct st_mysql_ftparser_param *,
 
78
                        char *word, int word_len,
 
79
                        MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info);
 
80
  void *ftparser_state;
 
81
  void *mysql_ftparam;
 
82
  struct charset_info_st *cs;
 
83
  char *doc;
 
84
  int length;
 
85
  int flags;
 
86
  enum enum_ftparser_mode mode;
 
87
} MYSQL_FTPARSER_PARAM;
 
88
struct st_mysql_ftparser
 
89
{
 
90
  int interface_version;
 
91
  int (*parse)(MYSQL_FTPARSER_PARAM *param);
 
92
  int (*init)(MYSQL_FTPARSER_PARAM *param);
 
93
  int (*deinit)(MYSQL_FTPARSER_PARAM *param);
 
94
};
 
95
struct st_mysql_storage_engine
 
96
{
 
97
  int interface_version;
 
98
};
 
99
struct handlerton;
 
100
struct st_mysql_daemon
 
101
{
 
102
  int interface_version;
 
103
};
 
104
struct st_mysql_information_schema
 
105
{
 
106
  int interface_version;
 
107
};
 
108
struct st_mysql_value
 
109
{
 
110
  int (*value_type)(struct st_mysql_value *);
 
111
  const char *(*val_str)(struct st_mysql_value *, char *buffer, int *length);
 
112
  int (*val_real)(struct st_mysql_value *, double *realbuf);
 
113
  int (*val_int)(struct st_mysql_value *, long long *intbuf);
 
114
};
 
115
int thd_in_lock_tables(const void* thd);
 
116
int thd_tablespace_op(const void* thd);
 
117
long long thd_test_options(const void* thd, long long test_options);
 
118
int thd_sql_command(const void* thd);
 
119
const char *thd_proc_info(void* thd, const char *info);
 
120
void **thd_ha_data(const void* thd, const struct handlerton *hton);
 
121
int thd_tx_isolation(const void* thd);
 
122
char *thd_security_context(void* thd, char *buffer, unsigned int length,
 
123
                           unsigned int max_query_len);
 
124
void thd_inc_row_count(void* thd);
 
125
int mysql_tmpfile(const char *prefix);
 
126
int thd_killed(const void* thd);
 
127
unsigned long thd_get_thread_id(const void* thd);
 
128
void *thd_alloc(void* thd, unsigned int size);
 
129
void *thd_calloc(void* thd, unsigned int size);
 
130
char *thd_strdup(void* thd, const char *str);
 
131
char *thd_strmake(void* thd, const char *str, unsigned int size);
 
132
void *thd_memdup(void* thd, const void* str, unsigned int size);
 
133
MYSQL_LEX_STRING *thd_make_lex_string(void* thd, MYSQL_LEX_STRING *lex_str,
 
134
                                      const char *str, unsigned int size,
 
135
                                      int allocate_lex_string);
 
136
void thd_get_xid(const void* thd, MYSQL_XID *xid);
 
137
void mysql_query_cache_invalidate4(void* thd,
 
138
                                   const char *key, unsigned int key_length,
 
139
                                   int using_trx);