~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Monty Taylor
  • Date: 2009-07-15 21:00:16 UTC
  • mto: (1093.1.18 captain)
  • mto: This revision was merged to the branch mainline in revision 1098.
  • Revision ID: mordred@inaugust.com-20090715210016-r1p52ne1xs4jxu3g
Rename of plugin classes.

Show diffs side-by-side

added added

removed removed

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