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