MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UtilDelete.cpp
1 /*
2  Copyright (C) 2003, 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 #include <signaldata/UtilDelete.hpp>
20 
21 bool
22 printUTIL_DELETE_REQ(FILE * out, const Uint32 * data, Uint32 l, Uint16 b){
23  (void)l; // Don't want compiler warning
24  (void)b; // Don't want compiler warning
25 
26  UtilDeleteReq* sig = (UtilDeleteReq*)data;
27  fprintf(out, " senderData: %d prepareId: %d totalDataLen: %d\n",
28  sig->senderData,
29  sig->prepareId,
30  sig->totalDataLen);
31  fprintf(out,
32  " H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x\n"
33  " H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x\n"
34  " H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x H\'%.8x\n",
35  sig->attrData[0], sig->attrData[1], sig->attrData[2],
36  sig->attrData[3], sig->attrData[4], sig->attrData[5],
37  sig->attrData[6], sig->attrData[7], sig->attrData[8],
38  sig->attrData[9], sig->attrData[10], sig->attrData[11],
39  sig->attrData[12], sig->attrData[13], sig->attrData[14],
40  sig->attrData[15], sig->attrData[16], sig->attrData[17],
41  sig->attrData[18], sig->attrData[19], sig->attrData[20],
42  sig->attrData[21]
43  );
44 
45  return true;
46 }
47 
48 bool
49 printUTIL_DELETE_CONF(FILE * out, const Uint32 * data, Uint32 l, Uint16 b){
50  (void)l; // Don't want compiler warning
51  (void)b; // Don't want compiler warning
52 
53  UtilDeleteConf* sig = (UtilDeleteConf*)data;
54  fprintf(out, " senderData: %d\n", sig->senderData);
55  return true;
56 }
57 
58 bool
59 printUTIL_DELETE_REF(FILE * out, const Uint32 * data, Uint32 l, Uint16 b){
60  (void)l; // Don't want compiler warning
61  (void)b; // Don't want compiler warning
62 
63  UtilDeleteRef* sig = (UtilDeleteRef*)data;
64  fprintf(out, " senderData: %d\n", sig->senderData);
65  fprintf(out, " errorCode: %d\n", sig->errorCode);
66  return true;
67 }