00001 /* Copyright (C) 2003 MySQL AB 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; either version 2 of the License, or 00006 (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00016 00017 #ifndef NDB_VERSION_H 00018 #define NDB_VERSION_H 00019 00020 #include <ndb_global.h> 00021 #include <version.h> 00022 00023 /* NDB build version */ 00024 #define NDB_VERSION_BUILD 12 00025 00026 /* NDB major version */ 00027 #define NDB_VERSION_MAJOR 5 00028 00029 /* NDB minor version */ 00030 #define NDB_VERSION_MINOR 1 00031 00032 /* NDB status version */ 00033 #define NDB_VERSION_STATUS "beta" 00034 00035 00036 #define MAKE_VERSION(A,B,C) (((A) << 16) | ((B) << 8) | ((C) << 0)) 00037 00038 #define NDB_VERSION_D MAKE_VERSION(NDB_VERSION_MAJOR, NDB_VERSION_MINOR, NDB_VERSION_BUILD) 00039 #define NDB_VERSION_STRING_BUF_SZ 100 00040 #ifdef __cplusplus 00041 extern "C" 00042 #else 00043 extern 00044 #endif 00045 char ndb_version_string_buf[NDB_VERSION_STRING_BUF_SZ]; 00046 #define NDB_VERSION_STRING (getVersionString(NDB_VERSION, NDB_VERSION_STATUS, \ 00047 ndb_version_string_buf, \ 00048 sizeof(ndb_version_string_buf))) 00049 00050 #define NDB_VERSION ndbGetOwnVersion() 00051 00058 /*#define NDB_VERSION_ID 0*/ 00059 00063 #define NDBD_ROWID_VERSION (MAKE_VERSION(5,1,6)) 00064 #define NDBD_INCL_NODECONF_VERSION_4 MAKE_VERSION(4,1,17) 00065 #define NDBD_INCL_NODECONF_VERSION_5 MAKE_VERSION(5,0,18) 00066 #define NDBD_FRAGID_VERSION (MAKE_VERSION(5,1,6)) 00067 #define NDBD_DICT_LOCK_VERSION_5 MAKE_VERSION(5,0,23) 00068 #define NDBD_DICT_LOCK_VERSION_5_1 MAKE_VERSION(5,1,12) 00069 00070 #endif 00071
1.4.7

