~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.h

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
  LEX_STRING dl;
83
83
  void *handle;
84
84
  struct st_mysql_plugin *plugins;
85
 
  uint ref_count;            /* number of plugins loaded from the library */
 
85
  uint32_t ref_count;            /* number of plugins loaded from the library */
86
86
};
87
87
 
88
88
/* A handle of a plugin */
92
92
  LEX_STRING name;
93
93
  struct st_mysql_plugin *plugin;
94
94
  struct st_plugin_dl *plugin_dl;
95
 
  uint state;
96
 
  uint ref_count;               /* number of threads using the plugin */
 
95
  uint32_t state;
 
96
  uint32_t ref_count;               /* number of threads using the plugin */
97
97
  void *data;                   /* plugin type specific, e.g. handlerton */
98
98
  MEM_ROOT mem_root;            /* memory for dynamic plugin structures */
99
99
  sys_var *system_vars;         /* server variables for this plugin */
121
121
 
122
122
extern int plugin_init(int *argc, char **argv, int init_flags);
123
123
extern void plugin_shutdown(void);
124
 
extern void my_print_help_inc_plugins(struct my_option *options, uint size);
 
124
extern void my_print_help_inc_plugins(struct my_option *options, uint32_t size);
125
125
extern bool plugin_is_ready(const LEX_STRING *name, int type);
126
126
#define my_plugin_lock_by_name(A,B,C) plugin_lock_by_name(A,B,C CALLER_INFO)
127
127
#define my_plugin_lock_by_name_ci(A,B,C) plugin_lock_by_name(A,B,C ORIG_CALLER_INFO)
131
131
extern plugin_ref plugin_lock_by_name(THD *thd, const LEX_STRING *name,
132
132
                                      int type CALLER_INFO_PROTO);
133
133
extern void plugin_unlock(THD *thd, plugin_ref plugin);
134
 
extern void plugin_unlock_list(THD *thd, plugin_ref *list, uint count);
 
134
extern void plugin_unlock_list(THD *thd, plugin_ref *list, uint32_t count);
135
135
extern bool mysql_install_plugin(THD *thd, const LEX_STRING *name,
136
136
                                 const LEX_STRING *dl);
137
137
extern bool mysql_uninstall_plugin(THD *thd, const LEX_STRING *name);
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
146
extern bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
147
 
                                     int type, uint state_mask, void *arg);
 
147
                                     int type, uint32_t state_mask, void *arg);
148
148
#endif /* DRIZZLE_SERVER_PLUGIN_H */