MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateTab.cpp
1 /* Copyright (C) 2007 MySQL AB
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 #include <signaldata/CreateTab.hpp>
17 #include <SignalLoggerManager.hpp>
18 
19 bool
20 printCREATE_TAB_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
21 {
22  const CreateTabReq* sig = (const CreateTabReq*)theData;
23  fprintf(output, " senderRef: 0x%x", sig->senderRef);
24  fprintf(output, " senderData: %u", sig->senderData);
25  fprintf(output, " requestType: %u", sig->requestType);
26  fprintf(output, "\n");
27  fprintf(output, " tableId: %u", sig->tableId);
28  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
29  fprintf(output, " gci: %u", sig->gci);
30  fprintf(output, "\n");
31  return true;
32 }
33 
34 bool
35 printCREATE_TAB_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
36 {
37  const CreateTabConf* sig = (const CreateTabConf*)theData;
38  fprintf(output, " senderRef: 0x%x", sig->senderRef);
39  fprintf(output, " senderData: %u", sig->senderData);
40  fprintf(output, "\n");
41  return true;
42 }
43 
44 bool
45 printCREATE_TAB_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
46 {
47  const CreateTabRef* sig = (const CreateTabRef*)theData;
48  fprintf(output, " senderRef: 0x%x", sig->senderRef);
49  fprintf(output, " senderData: %u", sig->senderData);
50  fprintf(output, "\n");
51  fprintf(output, " errorCode: %u", sig->errorCode);
52  fprintf(output, " errorLine: %u", sig->errorLine );
53  fprintf(output, " errorKey: %u", sig->errorKey);
54  fprintf(output, " errorStatus: %u", sig->errorStatus);
55  fprintf(output, "\n");
56  return true;
57 }