MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UtilLock.cpp
1 /*
2  Copyright (C) 2003, 2005-2007 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/UtilLock.hpp>
20 
21 bool
22 printUTIL_LOCK_REQ (FILE * output, const Uint32 * theData,
23  Uint32 len, Uint16 receiverBlockNo)
24 {
25  const UtilLockReq *const sig = (UtilLockReq *) theData;
26  fprintf (output, " senderData: %x\n", sig->senderData);
27  fprintf (output, " senderRef: %x\n", sig->senderRef);
28  fprintf (output, " lockId: %x\n", sig->lockId);
29  fprintf (output, " requestInfo: %x\n", sig->requestInfo);
30  fprintf (output, " extra: %x\n", sig->extra);
31  return true;
32 }
33 
34 bool
35 printUTIL_LOCK_CONF (FILE * output, const Uint32 * theData,
36  Uint32 len, Uint16 receiverBlockNo)
37 {
38  const UtilLockConf *const sig = (UtilLockConf *) theData;
39  fprintf (output, " senderData: %x\n", sig->senderData);
40  fprintf (output, " senderRef: %x\n", sig->senderRef);
41  fprintf (output, " lockId: %x\n", sig->lockId);
42  fprintf (output, " extra: %x\n", sig->extra);
43  return true;
44 }
45 
46 bool
47 printUTIL_LOCK_REF (FILE * output, const Uint32 * theData,
48  Uint32 len, Uint16 receiverBlockNo)
49 {
50  const UtilLockRef *const sig = (UtilLockRef *) theData;
51  fprintf (output, " senderData: %x\n", sig->senderData);
52  fprintf (output, " senderRef: %x\n", sig->senderRef);
53  fprintf (output, " lockId: %x\n", sig->lockId);
54  fprintf (output, " errorCode: %x\n", sig->errorCode);
55  fprintf (output, " extra: %x\n", sig->extra);
56  return true;
57 }
58 
59 bool
60 printUTIL_UNLOCK_REQ (FILE * output, const Uint32 * theData,
61  Uint32 len, Uint16 receiverBlockNo)
62 {
63  const UtilUnlockReq *const sig = (UtilUnlockReq *) theData;
64  fprintf (output, " senderData: %x\n", sig->senderData);
65  fprintf (output, " senderRef: %x\n", sig->senderRef);
66  fprintf (output, " lockId: %x\n", sig->lockId);
67  return true;
68 }
69 
70 bool
71 printUTIL_UNLOCK_CONF (FILE * output, const Uint32 * theData,
72  Uint32 len, Uint16 receiverBlockNo)
73 {
74  const UtilUnlockConf *const sig = (UtilUnlockConf *) theData;
75  fprintf (output, " senderData: %x\n", sig->senderData);
76  fprintf (output, " senderRef: %x\n", sig->senderRef);
77  fprintf (output, " lockId: %x\n", sig->lockId);
78  return true;
79 }
80 
81 bool
82 printUTIL_UNLOCK_REF (FILE * output, const Uint32 * theData,
83  Uint32 len, Uint16 receiverBlockNo)
84 {
85  const UtilUnlockRef *const sig = (UtilUnlockRef *) theData;
86  fprintf (output, " senderData: %x\n", sig->senderData);
87  fprintf (output, " senderRef: %x\n", sig->senderRef);
88  fprintf (output, " lockId: %x\n", sig->lockId);
89  fprintf (output, " errorCode: %x\n", sig->errorCode);
90  return true;
91 }
92 
93 bool
94 printUTIL_CREATE_LOCK_REQ (FILE * output, const Uint32 * theData,
95  Uint32 len, Uint16 receiverBlockNo)
96 {
97  const UtilCreateLockReq *const sig = (UtilCreateLockReq *) theData;
98  fprintf (output, " senderData: %x\n", sig->senderData);
99  fprintf (output, " senderRef: %x\n", sig->senderRef);
100  fprintf (output, " lockId: %x\n", sig->lockId);
101  fprintf (output, " lockType: %x\n", sig->lockType);
102  return true;
103 }
104 
105 bool
106 printUTIL_CREATE_LOCK_REF (FILE * output, const Uint32 * theData,
107  Uint32 len, Uint16 receiverBlockNo)
108 {
109  const UtilCreateLockRef *const sig = (UtilCreateLockRef *) theData;
110  fprintf (output, " senderData: %x\n", sig->senderData);
111  fprintf (output, " senderRef: %x\n", sig->senderRef);
112  fprintf (output, " lockId: %x\n", sig->lockId);
113  fprintf (output, " errorCode: %x\n", sig->errorCode);
114  return true;
115 }
116 
117 bool
118 printUTIL_CREATE_LOCK_CONF (FILE * output, const Uint32 * theData,
119  Uint32 len, Uint16 receiverBlockNo)
120 {
121  const UtilCreateLockConf *const sig = (UtilCreateLockConf *) theData;
122  fprintf (output, " senderData: %x\n", sig->senderData);
123  fprintf (output, " senderRef: %x\n", sig->senderRef);
124  fprintf (output, " lockId: %x\n", sig->lockId);
125  return true;
126 }
127 
128 bool
129 printUTIL_DESTROY_LOCK_REQ (FILE * output, const Uint32 * theData,
130  Uint32 len, Uint16 receiverBlockNo)
131 {
132  const UtilDestroyLockReq *const sig = (UtilDestroyLockReq *) theData;
133  fprintf (output, " senderData: %x\n", sig->senderData);
134  fprintf (output, " senderRef: %x\n", sig->senderRef);
135  fprintf (output, " lockId: %x\n", sig->lockId);
136  return true;
137 }
138 
139 bool
140 printUTIL_DESTROY_LOCK_REF (FILE * output, const Uint32 * theData,
141  Uint32 len, Uint16 receiverBlockNo)
142 {
143  const UtilDestroyLockRef *const sig = (UtilDestroyLockRef *) theData;
144  fprintf (output, " senderData: %x\n", sig->senderData);
145  fprintf (output, " senderRef: %x\n", sig->senderRef);
146  fprintf (output, " lockId: %x\n", sig->lockId);
147  fprintf (output, " errorCode: %x\n", sig->errorCode);
148  return true;
149 }
150 
151 bool
152 printUTIL_DESTROY_LOCK_CONF (FILE * output, const Uint32 * theData,
153  Uint32 len, Uint16 receiverBlockNo)
154 {
155  const UtilDestroyLockConf *const sig = (UtilDestroyLockConf *) theData;
156  fprintf (output, " senderData: %x\n", sig->senderData);
157  fprintf (output, " senderRef: %x\n", sig->senderRef);
158  fprintf (output, " lockId: %x\n", sig->lockId);
159  return true;
160 }