~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.h

  • Committer: Monty Taylor
  • Date: 2008-10-20 08:48:34 UTC
  • mfrom: (520.1.22 drizzle)
  • Revision ID: monty@inaugust.com-20081020084834-xpb3w01vkcp55o02
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
#define my_plugin_lock_by_name_ci(A,B,C) plugin_lock_by_name(A,B,C ORIG_CALLER_INFO)
128
128
#define my_plugin_lock(A,B) plugin_lock(A,B CALLER_INFO)
129
129
#define my_plugin_lock_ci(A,B) plugin_lock(A,B ORIG_CALLER_INFO)
130
 
extern plugin_ref plugin_lock(THD *thd, plugin_ref *ptr CALLER_INFO_PROTO);
131
 
extern plugin_ref plugin_lock_by_name(THD *thd, const LEX_STRING *name,
 
130
extern plugin_ref plugin_lock(Session *session, plugin_ref *ptr CALLER_INFO_PROTO);
 
131
extern plugin_ref plugin_lock_by_name(Session *session, const LEX_STRING *name,
132
132
                                      int type CALLER_INFO_PROTO);
133
 
extern void plugin_unlock(THD *thd, plugin_ref plugin);
134
 
extern void plugin_unlock_list(THD *thd, plugin_ref *list, uint32_t count);
135
 
extern bool mysql_install_plugin(THD *thd, const LEX_STRING *name,
 
133
extern void plugin_unlock(Session *session, plugin_ref plugin);
 
134
extern void plugin_unlock_list(Session *session, plugin_ref *list, uint32_t count);
 
135
extern bool mysql_install_plugin(Session *session, const LEX_STRING *name,
136
136
                                 const LEX_STRING *dl);
137
 
extern bool mysql_uninstall_plugin(THD *thd, const LEX_STRING *name);
 
137
extern bool mysql_uninstall_plugin(Session *session, const LEX_STRING *name);
138
138
extern bool plugin_register_builtin(struct st_mysql_plugin *plugin);
139
 
extern void plugin_thdvar_init(THD *thd);
140
 
extern void plugin_thdvar_cleanup(THD *thd);
 
139
extern void plugin_sessionvar_init(Session *session);
 
140
extern void plugin_sessionvar_cleanup(Session *session);
141
141
 
142
 
typedef bool (plugin_foreach_func)(THD *thd,
 
142
typedef bool (plugin_foreach_func)(Session *session,
143
143
                                   plugin_ref plugin,
144
144
                                   void *arg);
145
145
#define plugin_foreach(A,B,C,D) plugin_foreach_with_mask(A,B,C,PLUGIN_IS_READY,D)
146
 
extern bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
 
146
extern bool plugin_foreach_with_mask(Session *session, plugin_foreach_func *func,
147
147
                                     int type, uint32_t state_mask, void *arg);
148
148
#endif /* DRIZZLE_SERVER_PLUGIN_H */