MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GetConfig.hpp
1 /*
2  Copyright (c) 2011, 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 GET_CONFIG_HPP
19 #define GET_CONFIG_HPP
20 
21 #include "SignalData.hpp"
22 
28 class GetConfigReq {
32  // Blocks
33  friend class Cmvmi;
34  friend class MgmtSrvr;
35  friend bool printGET_CONFIG_REQ(FILE *, const Uint32 *, Uint32, Uint16);
36 
37  STATIC_CONST( SignalLength = 2 );
38 
39  Uint32 nodeId; // Node id of the receiver node
40  Uint32 senderRef;
41 };
42 
43 class GetConfigRef {
47  friend class Cmvmi;
48  friend class MgmtSrvr;
49  friend bool printGET_CONFIG_REF(FILE *, const Uint32 *, Uint32, Uint16);
50 
51  STATIC_CONST( SignalLength = 1 );
52 
53  Uint32 error;
54 
55  enum ErrorCode {
56  WrongSender = 1,
57  WrongNodeId = 2,
58  NoConfig = 3
59  };
60 };
61 
66  // Blocks
67  friend class Cmvmi;
68  friend class MgmtSrvr;
69  friend bool printGET_CONFIG_CONF(FILE *, const Uint32 *, Uint32, Uint16);
70 
71  STATIC_CONST( SignalLength = 1 );
72 
73  Uint32 configLength; // config blob size
74 };
75 #endif