![]() |
Statistics for MySQL
0.9
|
00001 /* sqlplugin.h (plugin) */ 00002 00003 /*********************************************************************** 00004 * This code is part of Statistics for MySQL. 00005 * 00006 * Copyright (C) 2011 Heinrich Schuchardt (xypron.glpk@gmx.de) 00007 * 00008 * Licensed under the Apache License, Version 2.0 (the "License"); 00009 * you may not use this file except in compliance with the License. 00010 * You may obtain a copy of the License at 00011 * 00012 * http://www.apache.org/licenses/LICENSE-2.0 00013 * 00014 * Unless required by applicable law or agreed to in writing, software 00015 * distributed under the License is distributed on an "AS IS" BASIS, 00016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00017 * See the License for the specific language governing permissions and 00018 * limitations under the License. 00019 ***********************************************************************/ 00020 00028 #ifndef SQLPLUGIN 00029 #define SQLPLUGIN 00030 00031 #if defined HAVE_CONFIG_H 00032 #include "config.h" 00033 #endif // HAVE_CONFIG_H 00034 00035 #ifdef __cplusplus 00036 extern "C" 00037 { 00038 #endif 00039 00043 struct udf_plugin_info { 00044 int interface_version; 00045 } plugin_info = 00046 { 0 }; 00047 00051 char *version_value; 00052 00053 MYSQL_SYSVAR_STR(version, version_value, PLUGIN_VAR_READONLY, 00054 "Statistics for MySQL release", NULL, NULL, VERSION); 00055 00059 struct st_mysql_sys_var* plugin_sys_var[] = { 00060 MYSQL_SYSVAR(version), 00061 NULL 00062 }; 00063 00064 mysql_declare_plugin(sqlstat_plugin) 00065 { 00066 MYSQL_UDF_PLUGIN, 00067 &plugin_info, 00068 "libsqlstat", 00069 "Heinrich Schuchardt (xypron.glpk@gmx.de)", 00070 "Statistics for MySQL (http://sqlstat.sourceforge.net)", 00071 PLUGIN_LICENSE_PROPRIETARY, 00072 sqlstat_plugin_init, 00073 sqlstat_plugin_deinit, 00074 0x0009, // 0.9 00075 NULL, 00076 plugin_sys_var, 00077 NULL 00078 } 00079 mysql_declare_plugin_end; 00080 00081 #ifdef __cplusplus 00082 } 00083 #endif 00084 00085 #endif // SQLPLUGIN