1 /* Copyright (c) 2003, 2005 MySQL AB
2 Use is subject to license terms
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 Street, Fifth Floor, Boston, MA 02110-1301, USA */
16
17 #include <signaldata/PrepDropTab.hpp>
18
19 bool
printPREP_DROP_TAB_REQ(FILE * output,const Uint32 * theData,Uint32 len,Uint16 receiverBlockNo)20 printPREP_DROP_TAB_REQ(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo)
21 {
22 const PrepDropTabReq * const sig = (PrepDropTabReq *) theData;
23
24 fprintf(output,
25 " senderRef: %x senderData: %d TableId: %d\n",
26 sig->senderRef, sig->senderData, sig->tableId);
27 return true;
28 }
29
printPREP_DROP_TAB_CONF(FILE * output,const Uint32 * theData,Uint32 len,Uint16 receiverBlockNo)30 bool printPREP_DROP_TAB_CONF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo)
31 {
32 const PrepDropTabConf * const sig = (PrepDropTabConf *) theData;
33
34 fprintf(output,
35 " senderRef: %x senderData: %d TableId: %d\n",
36 sig->senderRef, sig->senderData, sig->tableId);
37
38 return true;
39 }
40
printPREP_DROP_TAB_REF(FILE * output,const Uint32 * theData,Uint32 len,Uint16 receiverBlockNo)41 bool printPREP_DROP_TAB_REF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo)
42 {
43 const PrepDropTabRef * const sig = (PrepDropTabRef *) theData;
44
45 fprintf(output,
46 " senderRef: %x senderData: %d TableId: %d errorCode: %d\n",
47 sig->senderRef, sig->senderData, sig->tableId, sig->errorCode);
48
49 return true;
50 }
51