~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: lbieber
  • Date: 2009-07-28 15:08:13 UTC
  • mfrom: (1100 staging)
  • mto: (1093.1.34 captain)
  • mto: This revision was merged to the branch mainline in revision 1105.
  • Revision ID: lbieber@lbieber-laptop-20090728150813-vdmchh23gbrtbo4b
fix read_many_rows_innodb test to use InnoDB instead of MyISAM for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
*/
32
32
 
33
33
 
34
 
/* We use the following strings to define licenses for plugins */
35
 
enum plugin_license_type {
36
 
  PLUGIN_LICENSE_PROPRIETARY,
37
 
  PLUGIN_LICENSE_GPL,
38
 
  PLUGIN_LICENSE_BSD,
39
 
  PLUGIN_LICENSE_LGPL,
40
 
  PLUGIN_LICENSE_MAX=PLUGIN_LICENSE_LGPL
41
 
};
42
 
 
43
 
const char * const PLUGIN_LICENSE_PROPRIETARY_STRING="PROPRIETARY";
44
 
const char * const PLUGIN_LICENSE_GPL_STRING="GPL";
45
 
const char * const PLUGIN_LICENSE_BSD_STRING="BSD";
46
 
const char * const PLUGIN_LICENSE_LGPL_STRING="LGPL";
47
 
 
48
34
/*
49
35
  Macros for beginning and ending plugin declarations. Between
50
36
  drizzle_declare_plugin and drizzle_declare_plugin_end there should
51
 
  be a drizzled_plugin_manifest struct for each plugin to be declared.
 
37
  be a drizzled::plugin::Manifest for each plugin to be declared.
52
38
*/
53
39
 
54
40
 
55
41
#ifndef DRIZZLE_DYNAMIC_PLUGIN
56
42
#define __DRIZZLE_DECLARE_PLUGIN(NAME, DECLS) \
57
 
struct drizzled_plugin_manifest DECLS[]= {
 
43
drizzled::plugin::Manifest DECLS[]= {
58
44
#else
59
45
#define __DRIZZLE_DECLARE_PLUGIN(NAME, DECLS) \
60
 
struct drizzled_plugin_manifest _mysql_plugin_declarations_[]= {
 
46
drizzled::plugin::Manifest _drizzled_plugin_declaration_[]= {
61
47
#endif
62
48
 
63
49
#define drizzle_declare_plugin(NAME) \
64
50
__DRIZZLE_DECLARE_PLUGIN(NAME, \
65
51
                 builtin_ ## NAME ## _plugin)
66
52
 
67
 
#define drizzle_declare_plugin_end ,{0,0,0,0,0,0,0,0,0,0}}
 
53
#define drizzle_declare_plugin_end ,{0,0,0,0,PLUGIN_LICENSE_GPL,0,0,0,0,0}}
 
54
 
 
55
 
68
56
 
69
57
/*
70
58
  the following flags are valid for plugin_init()