50
50
The allowable types of plugins
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
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;
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,
77
PLUGIN_LICENSE_MAX=PLUGIN_LICENSE_BSD
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";
78
85
Macros for beginning and ending plugin declarations. Between