MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sync.hpp
1 /*
2  Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
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 St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef SYNC_HPP
19 #define SYNC_HPP
20 
21 struct SyncReq
22 {
23  Uint32 senderRef;
24  Uint32 senderData;
25  Uint32 prio;
26 
27  STATIC_CONST( SignalLength = 3 );
28 };
29 
30 struct SyncRef
31 {
32  Uint32 senderRef;
33  Uint32 senderData;
34  Uint32 errorCode;
35 
36  STATIC_CONST( SignalLength = 3 );
37 
38  enum ErrorCode
39  {
40  SR_OK = 0,
41  SR_OUT_OF_MEMORY = 1
42  };
43 };
44 
45 struct SyncConf
46 {
47  Uint32 senderRef;
48  Uint32 senderData;
49 
50  STATIC_CONST( SignalLength = 3 );
51 };
52 
54 {
55  Uint32 senderData;
56  Uint32 prio;
57  Uint32 count;
58  Uint32 pathlen;
59  Uint32 path[1];
60 
61  STATIC_CONST( SignalLength = 4 );
62 };
63 
65 {
66  Uint32 senderData;
67  Uint32 count;
68 
69  STATIC_CONST( SignalLength = 2 );
70 };
71 
72 #endif