MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateObj.hpp
1 /*
2  Copyright (C) 2005, 2006 MySQL AB
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 as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef CREATE_OBJ_HPP
20 #define CREATE_OBJ_HPP
21 
22 #include "DictObjOp.hpp"
23 #include "SignalData.hpp"
24 
30 struct CreateObjReq {
34  friend class Dbdict;
35 
39  friend bool printCREATE_OBJ_REQ(FILE*, const Uint32*, Uint32, Uint16);
40 
41 public:
42  STATIC_CONST( SignalLength = 10 );
43  STATIC_CONST( GSN = GSN_CREATE_OBJ_REQ );
44 
45 private:
46  Uint32 op_key;
47  Uint32 senderRef;
48  Uint32 senderData;
49  Uint32 requestInfo;
50 
51  Uint32 clientRef;
52  Uint32 clientData;
53 
54  Uint32 objId;
55  Uint32 objType;
56  Uint32 objVersion;
57  Uint32 gci;
58 
59  SECTION( DICT_OBJ_INFO = 0 );
60 };
61 
62 struct CreateObjRef {
66  friend class Dbdict;
67  friend class SafeCounter;
68 
72  friend bool printCREATE_OBJ_REF(FILE *, const Uint32 *, Uint32, Uint16);
73 
74  STATIC_CONST( SignalLength = 6 );
75  STATIC_CONST( GSN = GSN_CREATE_OBJ_REF );
76 
77  enum ErrorCode {
78  NF_FakeErrorREF = 255
79  };
80 
81 
82  Uint32 senderRef;
83  Uint32 senderData;
84  Uint32 errorCode;
85  Uint32 errorLine;
86  Uint32 errorKey;
87  Uint32 errorStatus;
88 };
89 
90 struct CreateObjConf {
94  friend class Dbdict;
95 
99  friend bool printCREATE_OBJ_CONF(FILE *, const Uint32 *, Uint32, Uint16);
100 
101 public:
102  STATIC_CONST( SignalLength = 2 );
103 
104 private:
105  Uint32 senderRef;
106  Uint32 senderData;
107 };
108 
109 #endif