diff options
author | unknown <brian@zim.(none)> | 2006-10-05 00:41:29 -0700 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2006-10-05 00:41:29 -0700 |
commit | 76cdfbbdfee7928dee2fbc0f8f07e1e0ca0cba33 (patch) | |
tree | b14998daff5232aed508cce3919ae3b222f894f1 /include/mysql | |
parent | c8b64ea17cf81dcab30f341160a1c07d5c6ccaae (diff) | |
download | mariadb-git-76cdfbbdfee7928dee2fbc0f8f07e1e0ca0cba33.tar.gz |
Added license information display to output of plugins schema, and tagged all plugins with GPL flag.
include/mysql/plugin.h:
Adding license information.
plugin/fulltext/plugin_example.c:
License
sql/ha_ndbcluster.cc:
License
sql/ha_partition.cc:
License
sql/handler.h:
License
sql/log.cc:
License
sql/sql_show.cc:
Additional PLUIN display information
storage/archive/ha_archive.cc:
License information added
storage/blackhole/ha_blackhole.cc:
License information added
storage/csv/ha_tina.cc:
License Information
storage/example/ha_example.cc:
License information
storage/federated/ha_federated.cc:
License Information
storage/heap/ha_heap.cc:
License Information
storage/innobase/handler/ha_innodb.cc:
License Information
storage/myisam/ha_myisam.cc:
License Information
storage/myisammrg/ha_myisammrg.cc:
License Information
Diffstat (limited to 'include/mysql')
-rw-r--r-- | include/mysql/plugin.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h index 174c2b85739..22cd64a52c4 100644 --- a/include/mysql/plugin.h +++ b/include/mysql/plugin.h @@ -31,6 +31,15 @@ #define MYSQL_FTPARSER_PLUGIN 2 /* Full-text parser plugin */ #define MYSQL_MAX_PLUGIN_TYPE_NUM 3 /* The number of plugin types */ +/* We use the following strings to define licenses for plugins */ +#define PLUGIN_LICENSE_PROPRIETARY 0 +#define PLUGIN_LICENSE_GPL 1 +#define PLUGIN_LICENSE_BSD 2 + +#define PLUGIN_LICENSE_PROPRIETARY_STRING "PROPRIETARY" +#define PLUGIN_LICENSE_GPL_STRING "GPL" +#define PLUGIN_LICENSE_BSD_STRING "BSD" + /* Macros for beginning and ending plugin declarations. Between mysql_declare_plugin and mysql_declare_plugin_end there should @@ -88,6 +97,7 @@ struct st_mysql_plugin const char *name; /* plugin name */ const char *author; /* plugin author (for SHOW PLUGINS) */ const char *descr; /* general descriptive text (for SHOW PLUGINS ) */ + int license; /* the plugin type (a MYSQL_XXX_PLUGIN value) */ int (*init)(void *); /* the function to invoke when plugin is loaded */ int (*deinit)(void *);/* the function to invoke when plugin is unloaded */ unsigned int version; /* plugin version (for SHOW PLUGINS) */ |