~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.h

  • Committer: Brian Aker
  • Date: 2008-08-07 16:29:49 UTC
  • mfrom: (264.1.20 codestyle)
  • Revision ID: brian@tangent.org-20080807162949-7o8eyjgdn8ms3n1a
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#ifndef _sql_plugin_h
17
 
#define _sql_plugin_h
 
16
/** 
 
17
 * @TODO There is plugin.h and also sql_plugin.h.  Ostensibly,  
 
18
 * it seems that the two files exist so that plugin.h can provide an
 
19
 * external API for plugin developers and sql_plugin.h will provide
 
20
 * and internal server API for dealing with those plugins.
 
21
 *
 
22
 * However, there are parts of plugin.h marked "INTERNAL USE ONLY" which
 
23
 * seems to contradict the above...
 
24
 *
 
25
 * Let's figure out a better way of dividing the public and internal API
 
26
 * and name the files more appropriately.
 
27
 *
 
28
 * Also, less #defines, more enums and bitmaps...
 
29
 *
 
30
 */
 
31
 
 
32
#ifndef DRIZZLE_SERVER_PLUGIN_H
 
33
#define DRIZZLE_SERVER_PLUGIN_H
18
34
 
19
35
class sys_var;
20
36
 
125
141
#define plugin_foreach(A,B,C,D) plugin_foreach_with_mask(A,B,C,PLUGIN_IS_READY,D)
126
142
extern bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
127
143
                                     int type, uint state_mask, void *arg);
128
 
#endif
 
144
#endif /* DRIZZLE_SERVER_PLUGIN_H */