1 /* Copyright (c) 2003, 2005 MySQL AB 2 Use is subject to license terms 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; version 2 of the License. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program; if not, write to the Free Software 15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ 16 17 #ifndef TESTDEFINITIONS_H 18 #define TESTDEFINITIONS_H 19 20 /***************************************************************/ 21 /* I N C L U D E D F I L E S */ 22 /***************************************************************/ 23 24 #include <ndb_types.h> 25 26 /***************************************************************/ 27 /* C O N S T A N T S */ 28 /***************************************************************/ 29 30 #define OP_PER_TRANS 200 31 #define NO_OF_SUBSCRIBERS 500000 32 #define NO_OF_GROUPS 100 33 #define NO_OF_SERVERS 20 34 35 #define SUBSCRIBER_NUMBER_LENGTH 12 36 #define SUBSCRIBER_NUMBER_SUFFIX_LENGTH 2 37 38 #define SUBSCRIBER_NAME_LENGTH 32 39 #define CHANGED_BY_LENGTH 32 40 #define CHANGED_TIME_LENGTH 32 41 #define SESSION_DETAILS_LENGTH 2000 42 #define SERVER_NAME_LENGTH 32 43 #define GROUP_NAME_LENGTH 32 44 45 /*************************************************************** 46 * D A T A S T R U C T U R E S * 47 ***************************************************************/ 48 49 #define PADDING 4 50 51 typedef char SubscriberNumber[SUBSCRIBER_NUMBER_LENGTH]; 52 typedef char SubscriberSuffix[SUBSCRIBER_NUMBER_SUFFIX_LENGTH + 2]; 53 typedef char SubscriberName[SUBSCRIBER_NAME_LENGTH]; 54 typedef char ServerName[SERVER_NAME_LENGTH]; 55 typedef char GroupName[GROUP_NAME_LENGTH]; 56 typedef char ChangedBy[CHANGED_BY_LENGTH]; 57 typedef char ChangedTime[CHANGED_TIME_LENGTH]; 58 typedef char SessionDetails[SESSION_DETAILS_LENGTH]; 59 typedef Uint32 ServerId; 60 typedef Uint32 ServerBit; 61 typedef Uint32 GroupId; 62 typedef Uint32 Location; 63 typedef Uint32 Permission; 64 65 typedef Uint32 Counter; 66 typedef Uint32 ActiveSessions; 67 typedef unsigned int BranchExecuted; 68 typedef unsigned int DoRollback; 69 70 /*************************************************************** 71 * P U B L I C F U N C T I O N S * 72 ***************************************************************/ 73 74 #ifdef __cplusplus 75 extern "C" { 76 #endif 77 78 79 #ifdef __cplusplus 80 } 81 #endif 82 83 /*************************************************************** 84 * E X T E R N A L D A T A * 85 ***************************************************************/ 86 87 88 89 #endif /* TESTDEFINITIONS_H */ 90 91