~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Monty Taylor
  • Date: 2008-10-22 01:18:53 UTC
  • Revision ID: monty@inaugust.com-20081022011853-s7yqpxbii26rvcjw
Cleaned up plugin.h just a tiny bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
/*
50
50
  The allowable types of plugins
51
51
*/
52
 
#define DRIZZLE_DAEMON_PLUGIN          0  /* Daemon / Raw */
53
 
#define DRIZZLE_STORAGE_ENGINE_PLUGIN  1  /* Storage Engine */
54
 
#define DRIZZLE_INFORMATION_SCHEMA_PLUGIN  2  /* Information Schema */
55
 
#define DRIZZLE_UDF_PLUGIN             3  /* User-Defined Function */
56
 
#define DRIZZLE_UDA_PLUGIN             4  /* User-Defined Aggregate Function */
57
 
#define DRIZZLE_AUDIT_PLUGIN           5  /* Audit */
58
 
#define DRIZZLE_LOGGER_PLUGIN          6  /* Query Logging */
59
 
#define DRIZZLE_ERRMSG_PLUGIN          7  /* Error Messages */
60
 
#define DRIZZLE_AUTH_PLUGIN            8  /* Authorization */
61
 
#define DRIZZLE_CONFIGVAR_PLUGIN       9  /* Configuration Variables */
62
 
#define DRIZZLE_QCACHE_PLUGIN         10  /* Query Cache */
63
 
#define DRIZZLE_PARSER_PLUGIN         11  /* Language Parser */
64
 
#define DRIZZLE_SCHEDULING_PLUGIN     12  /* Thread and Session Scheduling */
 
52
enum drizzle_plugin_type {
 
53
  DRIZZLE_DAEMON_PLUGIN,                /* Daemon / Raw */
 
54
  DRIZZLE_STORAGE_ENGINE_PLUGIN,        /* Storage Engine */
 
55
  DRIZZLE_INFORMATION_SCHEMA_PLUGIN,    /* Information Schema */
 
56
  DRIZZLE_UDF_PLUGIN,                   /* User-Defined Function */
 
57
  DRIZZLE_UDA_PLUGIN,                   /* User-Defined Aggregate Function */
 
58
  DRIZZLE_AUDIT_PLUGIN,                 /* Audit */
 
59
  DRIZZLE_LOGGER_PLUGIN,                /* Query Logging */
 
60
  DRIZZLE_ERRMSG_PLUGIN,                /* Error Messages */
 
61
  DRIZZLE_AUTH_PLUGIN,                  /* Authorization */
 
62
  DRIZZLE_CONFIGVAR_PLUGIN,             /* Configuration Variables */
 
63
  DRIZZLE_QCACHE_PLUGIN,                /* Query Cache */
 
64
  DRIZZLE_PARSER_PLUGIN,                /* Language Parser */
 
65
  DRIZZLE_SCHEDULING_PLUGIN,            /* Thread and Session Scheduling */
 
66
  DRIZZLE_PLUGIN_MAX=DRIZZLE_SCHEDULING_PLUGIN
 
67
};
65
68
 
66
 
#define DRIZZLE_MAX_PLUGIN_TYPE_NUM   13  /* The number of plugin types */
 
69
/* The number of plugin types */
 
70
const uint32_t DRIZZLE_MAX_PLUGIN_TYPE_NUM=DRIZZLE_PLUGIN_MAX+1;
67
71
 
68
72
/* We use the following strings to define licenses for plugins */
69
 
#define PLUGIN_LICENSE_PROPRIETARY 0
70
 
#define PLUGIN_LICENSE_GPL 1
71
 
#define PLUGIN_LICENSE_BSD 2
 
73
enum plugin_license_type {
 
74
  PLUGIN_LICENSE_PROPRIETARY,
 
75
  PLUGIN_LICENSE_GPL,
 
76
  PLUGIN_LICENSE_BSD,
 
77
  PLUGIN_LICENSE_MAX=PLUGIN_LICENSE_BSD
 
78
};
72
79
 
73
 
#define PLUGIN_LICENSE_PROPRIETARY_STRING "PROPRIETARY"
74
 
#define PLUGIN_LICENSE_GPL_STRING "GPL"
75
 
#define PLUGIN_LICENSE_BSD_STRING "BSD"
 
80
const char * const PLUGIN_LICENSE_PROPRIETARY_STRING="PROPRIETARY";
 
81
const char * const PLUGIN_LICENSE_GPL_STRING="GPL";
 
82
const char * const PLUGIN_LICENSE_BSD_STRING="BSD";
76
83
 
77
84
/*
78
85
  Macros for beginning and ending plugin declarations.  Between
378
385
 
379
386
struct st_mysql_plugin
380
387
{
381
 
  int type;             /* the plugin type (a DRIZZLE_XXX_PLUGIN value)   */
 
388
  uint32_t type;        /* the plugin type (a DRIZZLE_XXX_PLUGIN value)   */
382
389
  const char *name;     /* plugin name (for SHOW PLUGINS)               */
383
390
  const char *version;  /* plugin version (for SHOW PLUGINS)            */
384
391
  const char *author;   /* plugin author (for SHOW PLUGINS)             */