~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.h

  • Committer: Monty Taylor
  • Date: 2009-07-15 21:30:33 UTC
  • mto: (1093.1.18 captain)
  • mto: This revision was merged to the branch mainline in revision 1098.
  • Revision ID: mordred@inaugust.com-20090715213033-nlszmgb64vdhtu6s
Split drizzle::plugin::Manifest into its own file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#include <mysys/my_alloc.h>
41
41
#include <drizzled/plugin_registry.h>
42
42
#include <drizzled/plugin.h>
 
43
#include <drizzled/plugin/manifest.h>
43
44
 
44
45
class sys_var;
45
46
class Session;
48
49
namespace drizzled {
49
50
namespace plugin {
50
51
 
51
 
typedef int (*plugin_type_init)(PluginRegistry &);
52
 
 
53
 
/*
54
 
  Plugin description structure.
55
 
*/
56
 
 
57
 
struct Manifest
58
 
{
59
 
  /* Hide these - we will not use them */
60
 
/*  Manifest(const Manifest&);
61
 
  Manifest operator=(const Manifest&);
62
 
public:*/
63
 
  const char *name;          /* plugin name (for SHOW PLUGINS)               */
64
 
  const char *version;       /* plugin version (for SHOW PLUGINS)            */
65
 
  const char *author;        /* plugin author (for SHOW PLUGINS)             */
66
 
  const char *descr;         /* general descriptive text (for SHOW PLUGINS ) */
67
 
  plugin_license_type license; /* plugin license (PLUGIN_LICENSE_XXX)          */
68
 
  plugin_type_init init;     /* function to invoke when plugin is loaded     */
69
 
  plugin_type_init deinit;   /* function to invoke when plugin is unloaded   */
70
 
  st_mysql_show_var *status_vars;
71
 
  st_mysql_sys_var **system_vars;
72
 
  void* reserved1;
73
 
/*  Manifest(name)
74
 
    : name(NULL), version(NULL), author(NULL), descr(NULL),
75
 
      license(PLUGIN_LICENSE_GPL), init(NULL), deinit(NULL),
76
 
      status_vars(NULL), system_vars(NULL) {} */
77
 
};
78
52
 
79
53
/* A handle for the dynamic library containing a plugin or plugins. */
80
54
class Library