~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Brian Aker
  • Date: 2011-01-25 05:20:15 UTC
  • mto: (2109.1.6 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2112.
  • Revision ID: brian@tangent.org-20110125052015-nw5jhmiq0at1qt9u
Merge in reference from pointer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
 
48
48
class sys_var;
49
 
typedef drizzle_lex_string LEX_STRING;
50
49
struct option;
51
50
 
52
51
extern boost::filesystem::path plugin_dir;
105
104
 
106
105
/*
107
106
  SYNOPSIS
108
 
    (*mysql_var_check_func)()
 
107
    (*var_check_func)()
109
108
      session               thread handle
110
109
      var               dynamic variable being altered
111
110
      save              pointer to temporary storage
122
121
  automatically at the end of the statement.
123
122
*/
124
123
 
125
 
typedef int (*mysql_var_check_func)(Session *session,
 
124
typedef int (*var_check_func)(Session *session,
126
125
                                    drizzle_sys_var *var,
127
126
                                    void *save, drizzle_value *value);
128
127
 
129
128
/*
130
129
  SYNOPSIS
131
 
    (*mysql_var_update_func)()
 
130
    (*var_update_func)()
132
131
      session               thread handle
133
132
      var               dynamic variable being altered
134
133
      var_ptr           pointer to dynamic variable
140
139
   and persist it in the provided pointer to the dynamic variable.
141
140
   For example, strings may require memory to be allocated.
142
141
*/
143
 
typedef void (*mysql_var_update_func)(Session *session,
 
142
typedef void (*var_update_func)(Session *session,
144
143
                                      drizzle_sys_var *var,
145
144
                                      void *var_ptr, const void *save);
146
145
 
175
174
extern bool plugin_is_ready(const LEX_STRING *name, int type);
176
175
extern void plugin_sessionvar_init(Session *session);
177
176
extern void plugin_sessionvar_cleanup(Session *session);
178
 
extern sys_var *intern_find_sys_var(const char *str, uint32_t, bool no_error);
179
177
 
180
178
int session_in_lock_tables(const Session *session);
181
179
int session_tablespace_op(const Session *session);
202
200
  @retval -1    error
203
201
  @retval >= 0  a file handle that can be passed to dup or internal::my_close
204
202
*/
205
 
int mysql_tmpfile(const char *prefix);
 
203
int tmpfile(const char *prefix);
206
204
 
207
205
} /* namespace drizzled */
208
206