1 #ifndef MARIADB_PLUGIN_DATA_TYPE_INCLUDED 2 #define MARIADB_PLUGIN_DATA_TYPE_INCLUDED 3 /* Copyright (C) 2019, Alexander Barkov and MariaDB 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; version 2 of the License. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ 17 18 /** 19 @file 20 21 Data Type Plugin API. 22 23 This file defines the API for server plugins that manage data types. 24 */ 25 26 #ifdef __cplusplus 27 28 #include <mysql/plugin.h> 29 30 /* 31 API for data type plugins. (MariaDB_DATA_TYPE_PLUGIN) 32 */ 33 #define MariaDB_DATA_TYPE_INTERFACE_VERSION (MYSQL_VERSION_ID << 8) 34 35 36 struct st_mariadb_data_type 37 { 38 int interface_version; 39 class Type_handler *type_handler; 40 }; 41 42 43 /** 44 Data type plugin descriptor 45 */ 46 47 #endif /* __cplusplus */ 48 49 #endif /* MARIADB_PLUGIN_DATA_TYPE_INCLUDED */ 50