1use ::dlopen2::wrapper::WrapperApi;
2#[derive(WrapperApi, Debug)]
3pub struct MqWrapper {
4 #[cfg(feature = "mqai")]
5 mqAddBag: unsafe extern "C" fn(
6 Bag: crate::mqai::MQHBAG,
7 Selector: crate::MQLONG,
8 ItemValue: crate::mqai::MQHBAG,
9 CompCode: &mut crate::MQLONG,
10 Reason: &mut crate::MQLONG,
11 ),
12 #[cfg(feature = "mqai")]
13 mqAddByteString: unsafe extern "C" fn(
14 Bag: crate::mqai::MQHBAG,
15 Selector: crate::MQLONG,
16 BufferLength: crate::MQLONG,
17 Buffer: crate::PMQBYTE,
18 CompCode: &mut crate::MQLONG,
19 Reason: &mut crate::MQLONG,
20 ),
21 #[cfg(feature = "mqai")]
22 mqAddByteStringFilter: unsafe extern "C" fn(
23 Bag: crate::mqai::MQHBAG,
24 Selector: crate::MQLONG,
25 BufferLength: crate::MQLONG,
26 Buffer: crate::PMQBYTE,
27 Operator: crate::MQLONG,
28 CompCode: &mut crate::MQLONG,
29 Reason: &mut crate::MQLONG,
30 ),
31 #[cfg(feature = "mqai")]
32 mqAddInquiry: unsafe extern "C" fn(
33 Bag: crate::mqai::MQHBAG,
34 Selector: crate::MQLONG,
35 CompCode: &mut crate::MQLONG,
36 Reason: &mut crate::MQLONG,
37 ),
38 #[cfg(feature = "mqai")]
39 mqAddInteger: unsafe extern "C" fn(
40 Bag: crate::mqai::MQHBAG,
41 Selector: crate::MQLONG,
42 ItemValue: crate::MQLONG,
43 CompCode: &mut crate::MQLONG,
44 Reason: &mut crate::MQLONG,
45 ),
46 #[cfg(feature = "mqai")]
47 mqAddInteger64: unsafe extern "C" fn(
48 Bag: crate::mqai::MQHBAG,
49 Selector: crate::MQLONG,
50 ItemValue: crate::MQINT64,
51 CompCode: &mut crate::MQLONG,
52 Reason: &mut crate::MQLONG,
53 ),
54 #[cfg(feature = "mqai")]
55 mqAddIntegerFilter: unsafe extern "C" fn(
56 Bag: crate::mqai::MQHBAG,
57 Selector: crate::MQLONG,
58 ItemValue: crate::MQLONG,
59 Operator: crate::MQLONG,
60 CompCode: &mut crate::MQLONG,
61 Reason: &mut crate::MQLONG,
62 ),
63 #[cfg(feature = "mqai")]
64 mqAddString: unsafe extern "C" fn(
65 Bag: crate::mqai::MQHBAG,
66 Selector: crate::MQLONG,
67 BufferLength: crate::MQLONG,
68 Buffer: crate::PMQCHAR,
69 CompCode: &mut crate::MQLONG,
70 Reason: &mut crate::MQLONG,
71 ),
72 #[cfg(feature = "mqai")]
73 mqAddStringFilter: unsafe extern "C" fn(
74 Bag: crate::mqai::MQHBAG,
75 Selector: crate::MQLONG,
76 BufferLength: crate::MQLONG,
77 Buffer: crate::PMQCHAR,
78 Operator: crate::MQLONG,
79 CompCode: &mut crate::MQLONG,
80 Reason: &mut crate::MQLONG,
81 ),
82 #[cfg(feature = "mqai")]
83 mqBagToBuffer: unsafe extern "C" fn(
84 OptionsBag: crate::mqai::MQHBAG,
85 DataBag: crate::mqai::MQHBAG,
86 BufferLength: crate::MQLONG,
87 Buffer: crate::PMQVOID,
88 DataLength: &mut crate::MQLONG,
89 CompCode: &mut crate::MQLONG,
90 Reason: &mut crate::MQLONG,
91 ),
92 #[cfg(feature = "mqai")]
93 mqBufferToBag: unsafe extern "C" fn(
94 OptionsBag: crate::mqai::MQHBAG,
95 BufferLength: crate::MQLONG,
96 Buffer: crate::PMQVOID,
97 DataBag: crate::mqai::MQHBAG,
98 CompCode: &mut crate::MQLONG,
99 Reason: &mut crate::MQLONG,
100 ),
101 #[cfg(feature = "mqai")]
102 mqClearBag: unsafe extern "C" fn(
103 Bag: crate::mqai::MQHBAG,
104 CompCode: &mut crate::MQLONG,
105 Reason: &mut crate::MQLONG,
106 ),
107 #[cfg(feature = "mqai")]
108 mqCountItems: unsafe extern "C" fn(
109 Bag: crate::mqai::MQHBAG,
110 Selector: crate::MQLONG,
111 ItemCount: &mut crate::MQLONG,
112 CompCode: &mut crate::MQLONG,
113 Reason: &mut crate::MQLONG,
114 ),
115 #[cfg(feature = "mqai")]
116 mqCreateBag: unsafe extern "C" fn(
117 Options: crate::MQLONG,
118 Bag: &mut crate::mqai::MQHBAG,
119 CompCode: &mut crate::MQLONG,
120 Reason: &mut crate::MQLONG,
121 ),
122 #[cfg(feature = "mqai")]
123 mqDeleteBag: unsafe extern "C" fn(
124 Bag: &mut crate::mqai::MQHBAG,
125 CompCode: &mut crate::MQLONG,
126 Reason: &mut crate::MQLONG,
127 ),
128 #[cfg(feature = "mqai")]
129 mqDeleteItem: unsafe extern "C" fn(
130 Bag: crate::mqai::MQHBAG,
131 Selector: crate::MQLONG,
132 ItemIndex: crate::MQLONG,
133 CompCode: &mut crate::MQLONG,
134 Reason: &mut crate::MQLONG,
135 ),
136 #[cfg(feature = "mqai")]
137 mqExecute: unsafe extern "C" fn(
138 Hconn: crate::MQHCONN,
139 Command: crate::MQLONG,
140 OptionsBag: crate::mqai::MQHBAG,
141 AdminBag: crate::mqai::MQHBAG,
142 ResponseBag: crate::mqai::MQHBAG,
143 AdminQ: crate::MQHOBJ,
144 ResponseQ: crate::MQHOBJ,
145 CompCode: &mut crate::MQLONG,
146 Reason: &mut crate::MQLONG,
147 ),
148 #[cfg(feature = "mqai")]
149 mqGetBag: unsafe extern "C" fn(
150 Hconn: crate::MQHCONN,
151 Hobj: crate::MQHOBJ,
152 MsgDesc: crate::PMQVOID,
153 GetMsgOpts: &mut crate::MQGMO,
154 Bag: crate::mqai::MQHBAG,
155 CompCode: &mut crate::MQLONG,
156 Reason: &mut crate::MQLONG,
157 ),
158 #[cfg(feature = "mqai")]
159 mqInquireBag: unsafe extern "C" fn(
160 Bag: crate::mqai::MQHBAG,
161 Selector: crate::MQLONG,
162 ItemIndex: crate::MQLONG,
163 ItemValue: &mut crate::mqai::MQHBAG,
164 CompCode: &mut crate::MQLONG,
165 Reason: &mut crate::MQLONG,
166 ),
167 #[cfg(feature = "mqai")]
168 mqInquireByteString: unsafe extern "C" fn(
169 Bag: crate::mqai::MQHBAG,
170 Selector: crate::MQLONG,
171 ItemIndex: crate::MQLONG,
172 BufferLength: crate::MQLONG,
173 Buffer: crate::PMQBYTE,
174 ByteStringLength: &mut crate::MQLONG,
175 CompCode: &mut crate::MQLONG,
176 Reason: &mut crate::MQLONG,
177 ),
178 #[cfg(feature = "mqai")]
179 mqInquireByteStringFilter: unsafe extern "C" fn(
180 Bag: crate::mqai::MQHBAG,
181 Selector: crate::MQLONG,
182 ItemIndex: crate::MQLONG,
183 BufferLength: crate::MQLONG,
184 Buffer: crate::PMQBYTE,
185 ByteStringLength: &mut crate::MQLONG,
186 Operator: &mut crate::MQLONG,
187 CompCode: &mut crate::MQLONG,
188 Reason: &mut crate::MQLONG,
189 ),
190 #[cfg(feature = "mqai")]
191 mqInquireInteger: unsafe extern "C" fn(
192 Bag: crate::mqai::MQHBAG,
193 Selector: crate::MQLONG,
194 ItemIndex: crate::MQLONG,
195 ItemValue: &mut crate::MQLONG,
196 CompCode: &mut crate::MQLONG,
197 Reason: &mut crate::MQLONG,
198 ),
199 #[cfg(feature = "mqai")]
200 mqInquireInteger64: unsafe extern "C" fn(
201 Bag: crate::mqai::MQHBAG,
202 Selector: crate::MQLONG,
203 ItemIndex: crate::MQLONG,
204 ItemValue: &mut crate::MQINT64,
205 CompCode: &mut crate::MQLONG,
206 Reason: &mut crate::MQLONG,
207 ),
208 #[cfg(feature = "mqai")]
209 mqInquireIntegerFilter: unsafe extern "C" fn(
210 Bag: crate::mqai::MQHBAG,
211 Selector: crate::MQLONG,
212 ItemIndex: crate::MQLONG,
213 ItemValue: &mut crate::MQLONG,
214 Operator: &mut crate::MQLONG,
215 CompCode: &mut crate::MQLONG,
216 Reason: &mut crate::MQLONG,
217 ),
218 #[cfg(feature = "mqai")]
219 mqInquireItemInfo: unsafe extern "C" fn(
220 Bag: crate::mqai::MQHBAG,
221 Selector: crate::MQLONG,
222 ItemIndex: crate::MQLONG,
223 OutSelector: &mut crate::MQLONG,
224 ItemType: &mut crate::MQLONG,
225 CompCode: &mut crate::MQLONG,
226 Reason: &mut crate::MQLONG,
227 ),
228 #[cfg(feature = "mqai")]
229 mqInquireString: unsafe extern "C" fn(
230 Bag: crate::mqai::MQHBAG,
231 Selector: crate::MQLONG,
232 ItemIndex: crate::MQLONG,
233 BufferLength: crate::MQLONG,
234 Buffer: crate::PMQCHAR,
235 StringLength: &mut crate::MQLONG,
236 CodedCharSetId: &mut crate::MQLONG,
237 CompCode: &mut crate::MQLONG,
238 Reason: &mut crate::MQLONG,
239 ),
240 #[cfg(feature = "mqai")]
241 mqInquireStringFilter: unsafe extern "C" fn(
242 Bag: crate::mqai::MQHBAG,
243 Selector: crate::MQLONG,
244 ItemIndex: crate::MQLONG,
245 BufferLength: crate::MQLONG,
246 Buffer: crate::PMQCHAR,
247 StringLength: &mut crate::MQLONG,
248 CodedCharSetId: &mut crate::MQLONG,
249 Operator: &mut crate::MQLONG,
250 CompCode: &mut crate::MQLONG,
251 Reason: &mut crate::MQLONG,
252 ),
253 #[cfg(feature = "mqai")]
254 mqPad: unsafe extern "C" fn(
255 String: crate::PMQCHAR,
256 BufferLength: crate::MQLONG,
257 Buffer: crate::PMQCHAR,
258 CompCode: &mut crate::MQLONG,
259 Reason: &mut crate::MQLONG,
260 ),
261 #[cfg(feature = "mqai")]
262 mqPutBag: unsafe extern "C" fn(
263 Hconn: crate::MQHCONN,
264 Hobj: crate::MQHOBJ,
265 MsgDesc: crate::PMQVOID,
266 PutMsgOpts: &mut crate::MQPMO,
267 Bag: crate::mqai::MQHBAG,
268 CompCode: &mut crate::MQLONG,
269 Reason: &mut crate::MQLONG,
270 ),
271 #[cfg(feature = "mqai")]
272 mqSetByteString: unsafe extern "C" fn(
273 Bag: crate::mqai::MQHBAG,
274 Selector: crate::MQLONG,
275 ItemIndex: crate::MQLONG,
276 BufferLength: crate::MQLONG,
277 Buffer: crate::PMQBYTE,
278 CompCode: &mut crate::MQLONG,
279 Reason: &mut crate::MQLONG,
280 ),
281 #[cfg(feature = "mqai")]
282 mqSetByteStringFilter: unsafe extern "C" fn(
283 Bag: crate::mqai::MQHBAG,
284 Selector: crate::MQLONG,
285 ItemIndex: crate::MQLONG,
286 BufferLength: crate::MQLONG,
287 Buffer: crate::PMQBYTE,
288 Operator: crate::MQLONG,
289 CompCode: &mut crate::MQLONG,
290 Reason: &mut crate::MQLONG,
291 ),
292 #[cfg(feature = "mqai")]
293 mqSetInteger: unsafe extern "C" fn(
294 Bag: crate::mqai::MQHBAG,
295 Selector: crate::MQLONG,
296 ItemIndex: crate::MQLONG,
297 ItemValue: crate::MQLONG,
298 CompCode: &mut crate::MQLONG,
299 Reason: &mut crate::MQLONG,
300 ),
301 #[cfg(feature = "mqai")]
302 mqSetInteger64: unsafe extern "C" fn(
303 Bag: crate::mqai::MQHBAG,
304 Selector: crate::MQLONG,
305 ItemIndex: crate::MQLONG,
306 ItemValue: crate::MQINT64,
307 CompCode: &mut crate::MQLONG,
308 Reason: &mut crate::MQLONG,
309 ),
310 #[cfg(feature = "mqai")]
311 mqSetIntegerFilter: unsafe extern "C" fn(
312 Bag: crate::mqai::MQHBAG,
313 Selector: crate::MQLONG,
314 ItemIndex: crate::MQLONG,
315 ItemValue: crate::MQLONG,
316 Operator: crate::MQLONG,
317 CompCode: &mut crate::MQLONG,
318 Reason: &mut crate::MQLONG,
319 ),
320 #[cfg(feature = "mqai")]
321 mqSetString: unsafe extern "C" fn(
322 Bag: crate::mqai::MQHBAG,
323 Selector: crate::MQLONG,
324 ItemIndex: crate::MQLONG,
325 BufferLength: crate::MQLONG,
326 Buffer: crate::PMQCHAR,
327 CompCode: &mut crate::MQLONG,
328 Reason: &mut crate::MQLONG,
329 ),
330 #[cfg(feature = "mqai")]
331 mqSetStringFilter: unsafe extern "C" fn(
332 Bag: crate::mqai::MQHBAG,
333 Selector: crate::MQLONG,
334 ItemIndex: crate::MQLONG,
335 BufferLength: crate::MQLONG,
336 Buffer: crate::PMQCHAR,
337 Operator: crate::MQLONG,
338 CompCode: &mut crate::MQLONG,
339 Reason: &mut crate::MQLONG,
340 ),
341 #[cfg(feature = "mqai")]
342 mqTrim: unsafe extern "C" fn(
343 BufferLength: crate::MQLONG,
344 Buffer: crate::PMQCHAR,
345 String: crate::PMQCHAR,
346 CompCode: &mut crate::MQLONG,
347 Reason: &mut crate::MQLONG,
348 ),
349 #[cfg(feature = "mqai")]
350 mqTruncateBag: unsafe extern "C" fn(
351 Bag: crate::mqai::MQHBAG,
352 ItemCount: crate::MQLONG,
353 CompCode: &mut crate::MQLONG,
354 Reason: &mut crate::MQLONG,
355 ),
356 MQBACK: unsafe extern "C" fn(
357 Hconn: crate::MQHCONN,
358 CompCode: &mut crate::MQLONG,
359 Reason: &mut crate::MQLONG,
360 ),
361 MQBEGIN: unsafe extern "C" fn(
362 Hconn: crate::MQHCONN,
363 BeginOptions: Option<&mut crate::MQBO>,
364 CompCode: &mut crate::MQLONG,
365 Reason: &mut crate::MQLONG,
366 ),
367 MQBUFMH: unsafe extern "C" fn(
368 Hconn: crate::MQHCONN,
369 Hmsg: crate::MQHMSG,
370 BufMsgHOpts: &crate::MQBMHO,
371 MsgDesc: crate::PMQVOID,
372 BufferLength: crate::MQLONG,
373 Buffer: crate::PMQVOID,
374 DataLength: &mut crate::MQLONG,
375 CompCode: &mut crate::MQLONG,
376 Reason: &mut crate::MQLONG,
377 ),
378 MQCB: unsafe extern "C" fn(
379 Hconn: crate::MQHCONN,
380 Operation: crate::MQLONG,
381 CallbackDesc: Option<&crate::MQCBD>,
382 Hobj: crate::MQHOBJ,
383 MsgDesc: crate::PMQVOID,
384 GetMsgOpts: Option<&crate::MQGMO>,
385 CompCode: &mut crate::MQLONG,
386 Reason: &mut crate::MQLONG,
387 ),
388 MQCLOSE: unsafe extern "C" fn(
389 Hconn: crate::MQHCONN,
390 Hobj: &mut crate::MQHOBJ,
391 Options: crate::MQLONG,
392 CompCode: &mut crate::MQLONG,
393 Reason: &mut crate::MQLONG,
394 ),
395 MQCMIT: unsafe extern "C" fn(
396 Hconn: crate::MQHCONN,
397 CompCode: &mut crate::MQLONG,
398 Reason: &mut crate::MQLONG,
399 ),
400 MQCONN: unsafe extern "C" fn(
401 QMgrName: &crate::MQCHAR48,
402 Hconn: &mut crate::MQHCONN,
403 CompCode: &mut crate::MQLONG,
404 Reason: &mut crate::MQLONG,
405 ),
406 MQCONNX: unsafe extern "C" fn(
407 QMgrName: &crate::MQCHAR48,
408 ConnectOpts: &mut crate::MQCNO,
409 Hconn: &mut crate::MQHCONN,
410 CompCode: &mut crate::MQLONG,
411 Reason: &mut crate::MQLONG,
412 ),
413 MQCRTMH: unsafe extern "C" fn(
414 Hconn: crate::MQHCONN,
415 CrtMsgHOpts: &crate::MQCMHO,
416 Hmsg: &mut crate::MQHMSG,
417 CompCode: &mut crate::MQLONG,
418 Reason: &mut crate::MQLONG,
419 ),
420 MQCTL: unsafe extern "C" fn(
421 Hconn: crate::MQHCONN,
422 Operation: crate::MQLONG,
423 ControlOpts: &crate::MQCTLO,
424 CompCode: &mut crate::MQLONG,
425 Reason: &mut crate::MQLONG,
426 ),
427 MQDISC: unsafe extern "C" fn(
428 Hconn: &mut crate::MQHCONN,
429 CompCode: &mut crate::MQLONG,
430 Reason: &mut crate::MQLONG,
431 ),
432 MQDLTMH: unsafe extern "C" fn(
433 Hconn: crate::MQHCONN,
434 Hmsg: &mut crate::MQHMSG,
435 DltMsgHOpts: &crate::MQDMHO,
436 CompCode: &mut crate::MQLONG,
437 Reason: &mut crate::MQLONG,
438 ),
439 MQDLTMP: unsafe extern "C" fn(
440 Hconn: crate::MQHCONN,
441 Hmsg: crate::MQHMSG,
442 DltPropOpts: &crate::MQDMPO,
443 Name: &crate::MQCHARV,
444 CompCode: &mut crate::MQLONG,
445 Reason: &mut crate::MQLONG,
446 ),
447 MQGET: unsafe extern "C" fn(
448 Hconn: crate::MQHCONN,
449 Hobj: crate::MQHOBJ,
450 MsgDesc: crate::PMQVOID,
451 GetMsgOpts: &mut crate::MQGMO,
452 BufferLength: crate::MQLONG,
453 Buffer: crate::PMQVOID,
454 DataLength: &mut crate::MQLONG,
455 CompCode: &mut crate::MQLONG,
456 Reason: &mut crate::MQLONG,
457 ),
458 MQINQ: unsafe extern "C" fn(
459 Hconn: crate::MQHCONN,
460 Hobj: crate::MQHOBJ,
461 SelectorCount: crate::MQLONG,
462 Selectors: crate::PMQLONG,
463 IntAttrCount: crate::MQLONG,
464 IntAttrs: crate::PMQLONG,
465 CharAttrLength: crate::MQLONG,
466 CharAttrs: crate::PMQCHAR,
467 CompCode: &mut crate::MQLONG,
468 Reason: &mut crate::MQLONG,
469 ),
470 MQINQMP: unsafe extern "C" fn(
471 Hconn: crate::MQHCONN,
472 Hmsg: crate::MQHMSG,
473 InqPropOpts: &mut crate::MQIMPO,
474 Name: &crate::MQCHARV,
475 PropDesc: &mut crate::MQPD,
476 Type: &mut crate::MQLONG,
477 ValueLength: crate::MQLONG,
478 Value: crate::PMQVOID,
479 DataLength: &mut crate::MQLONG,
480 CompCode: &mut crate::MQLONG,
481 Reason: &mut crate::MQLONG,
482 ),
483 MQMHBUF: unsafe extern "C" fn(
484 Hconn: crate::MQHCONN,
485 Hmsg: crate::MQHMSG,
486 MsgHBufOpts: &crate::MQMHBO,
487 Name: &crate::MQCHARV,
488 MsgDesc: crate::PMQVOID,
489 BufferLength: crate::MQLONG,
490 Buffer: crate::PMQVOID,
491 DataLength: &mut crate::MQLONG,
492 CompCode: &mut crate::MQLONG,
493 Reason: &mut crate::MQLONG,
494 ),
495 MQOPEN: unsafe extern "C" fn(
496 Hconn: crate::MQHCONN,
497 ObjDesc: &mut crate::MQOD,
498 Options: crate::MQLONG,
499 Hobj: &mut crate::MQHOBJ,
500 CompCode: &mut crate::MQLONG,
501 Reason: &mut crate::MQLONG,
502 ),
503 MQPUT: unsafe extern "C" fn(
504 Hconn: crate::MQHCONN,
505 Hobj: crate::MQHOBJ,
506 MsgDesc: crate::PMQVOID,
507 PutMsgOpts: &mut crate::MQPMO,
508 BufferLength: crate::MQLONG,
509 Buffer: crate::PMQVOID,
510 CompCode: &mut crate::MQLONG,
511 Reason: &mut crate::MQLONG,
512 ),
513 MQPUT1: unsafe extern "C" fn(
514 Hconn: crate::MQHCONN,
515 ObjDesc: &mut crate::MQOD,
516 MsgDesc: crate::PMQVOID,
517 PutMsgOpts: &mut crate::MQPMO,
518 BufferLength: crate::MQLONG,
519 Buffer: crate::PMQVOID,
520 CompCode: &mut crate::MQLONG,
521 Reason: &mut crate::MQLONG,
522 ),
523 MQSET: unsafe extern "C" fn(
524 Hconn: crate::MQHCONN,
525 Hobj: crate::MQHOBJ,
526 SelectorCount: crate::MQLONG,
527 Selectors: crate::PMQLONG,
528 IntAttrCount: crate::MQLONG,
529 IntAttrs: crate::PMQLONG,
530 CharAttrLength: crate::MQLONG,
531 CharAttrs: crate::PMQCHAR,
532 CompCode: &mut crate::MQLONG,
533 Reason: &mut crate::MQLONG,
534 ),
535 MQSETMP: unsafe extern "C" fn(
536 Hconn: crate::MQHCONN,
537 Hmsg: crate::MQHMSG,
538 SetPropOpts: &crate::MQSMPO,
539 Name: &crate::MQCHARV,
540 PropDesc: &mut crate::MQPD,
541 Type: crate::MQLONG,
542 ValueLength: crate::MQLONG,
543 Value: crate::PMQVOID,
544 CompCode: &mut crate::MQLONG,
545 Reason: &mut crate::MQLONG,
546 ),
547 MQSTAT: unsafe extern "C" fn(
548 Hconn: crate::MQHCONN,
549 Type: crate::MQLONG,
550 Status: &mut crate::MQSTS,
551 CompCode: &mut crate::MQLONG,
552 Reason: &mut crate::MQLONG,
553 ),
554 MQSUB: unsafe extern "C" fn(
555 Hconn: crate::MQHCONN,
556 SubDesc: &mut crate::MQSD,
557 Hobj: Option<&mut crate::MQHOBJ>,
558 Hsub: &mut crate::MQHOBJ,
559 CompCode: &mut crate::MQLONG,
560 Reason: &mut crate::MQLONG,
561 ),
562 MQSUBRQ: unsafe extern "C" fn(
563 Hconn: crate::MQHCONN,
564 Hsub: crate::MQHOBJ,
565 Action: crate::MQLONG,
566 SubRqOpts: Option<&mut crate::MQSRO>,
567 CompCode: &mut crate::MQLONG,
568 Reason: &mut crate::MQLONG,
569 ),
570 MQXCNVC: unsafe extern "C" fn(
571 Hconn: crate::MQHCONN,
572 Options: crate::MQLONG,
573 SourceCCSID: crate::MQLONG,
574 SourceLength: crate::MQLONG,
575 SourceBuffer: crate::PMQCHAR,
576 TargetCCSID: crate::MQLONG,
577 TargetLength: crate::MQLONG,
578 TargetBuffer: crate::PMQCHAR,
579 DataLength: &mut crate::MQLONG,
580 CompCode: &mut crate::MQLONG,
581 Reason: &mut crate::MQLONG,
582 ),
583}
584#[cfg(feature = "mqai")]
585impl crate::Mqai for ::dlopen2::wrapper::Container<MqWrapper> {
586 unsafe fn mqAddBag(
587 &self,
588 Bag: crate::mqai::MQHBAG,
589 Selector: crate::MQLONG,
590 ItemValue: crate::mqai::MQHBAG,
591 CompCode: &mut crate::MQLONG,
592 Reason: &mut crate::MQLONG,
593 ) {
594 unsafe {
595 MqWrapper::mqAddBag(self, Bag, Selector, ItemValue, CompCode, Reason);
596 }
597 }
598 unsafe fn mqAddByteString(
599 &self,
600 Bag: crate::mqai::MQHBAG,
601 Selector: crate::MQLONG,
602 BufferLength: crate::MQLONG,
603 Buffer: crate::PMQBYTE,
604 CompCode: &mut crate::MQLONG,
605 Reason: &mut crate::MQLONG,
606 ) {
607 unsafe {
608 MqWrapper::mqAddByteString(
609 self,
610 Bag,
611 Selector,
612 BufferLength,
613 Buffer,
614 CompCode,
615 Reason,
616 );
617 }
618 }
619 unsafe fn mqAddByteStringFilter(
620 &self,
621 Bag: crate::mqai::MQHBAG,
622 Selector: crate::MQLONG,
623 BufferLength: crate::MQLONG,
624 Buffer: crate::PMQBYTE,
625 Operator: crate::MQLONG,
626 CompCode: &mut crate::MQLONG,
627 Reason: &mut crate::MQLONG,
628 ) {
629 unsafe {
630 MqWrapper::mqAddByteStringFilter(
631 self,
632 Bag,
633 Selector,
634 BufferLength,
635 Buffer,
636 Operator,
637 CompCode,
638 Reason,
639 );
640 }
641 }
642 unsafe fn mqAddInquiry(
643 &self,
644 Bag: crate::mqai::MQHBAG,
645 Selector: crate::MQLONG,
646 CompCode: &mut crate::MQLONG,
647 Reason: &mut crate::MQLONG,
648 ) {
649 unsafe {
650 MqWrapper::mqAddInquiry(self, Bag, Selector, CompCode, Reason);
651 }
652 }
653 unsafe fn mqAddInteger(
654 &self,
655 Bag: crate::mqai::MQHBAG,
656 Selector: crate::MQLONG,
657 ItemValue: crate::MQLONG,
658 CompCode: &mut crate::MQLONG,
659 Reason: &mut crate::MQLONG,
660 ) {
661 unsafe {
662 MqWrapper::mqAddInteger(self, Bag, Selector, ItemValue, CompCode, Reason);
663 }
664 }
665 unsafe fn mqAddInteger64(
666 &self,
667 Bag: crate::mqai::MQHBAG,
668 Selector: crate::MQLONG,
669 ItemValue: crate::MQINT64,
670 CompCode: &mut crate::MQLONG,
671 Reason: &mut crate::MQLONG,
672 ) {
673 unsafe {
674 MqWrapper::mqAddInteger64(self, Bag, Selector, ItemValue, CompCode, Reason);
675 }
676 }
677 unsafe fn mqAddIntegerFilter(
678 &self,
679 Bag: crate::mqai::MQHBAG,
680 Selector: crate::MQLONG,
681 ItemValue: crate::MQLONG,
682 Operator: crate::MQLONG,
683 CompCode: &mut crate::MQLONG,
684 Reason: &mut crate::MQLONG,
685 ) {
686 unsafe {
687 MqWrapper::mqAddIntegerFilter(
688 self,
689 Bag,
690 Selector,
691 ItemValue,
692 Operator,
693 CompCode,
694 Reason,
695 );
696 }
697 }
698 unsafe fn mqAddString(
699 &self,
700 Bag: crate::mqai::MQHBAG,
701 Selector: crate::MQLONG,
702 BufferLength: crate::MQLONG,
703 Buffer: crate::PMQCHAR,
704 CompCode: &mut crate::MQLONG,
705 Reason: &mut crate::MQLONG,
706 ) {
707 unsafe {
708 MqWrapper::mqAddString(
709 self,
710 Bag,
711 Selector,
712 BufferLength,
713 Buffer,
714 CompCode,
715 Reason,
716 );
717 }
718 }
719 unsafe fn mqAddStringFilter(
720 &self,
721 Bag: crate::mqai::MQHBAG,
722 Selector: crate::MQLONG,
723 BufferLength: crate::MQLONG,
724 Buffer: crate::PMQCHAR,
725 Operator: crate::MQLONG,
726 CompCode: &mut crate::MQLONG,
727 Reason: &mut crate::MQLONG,
728 ) {
729 unsafe {
730 MqWrapper::mqAddStringFilter(
731 self,
732 Bag,
733 Selector,
734 BufferLength,
735 Buffer,
736 Operator,
737 CompCode,
738 Reason,
739 );
740 }
741 }
742 unsafe fn mqBagToBuffer(
743 &self,
744 OptionsBag: crate::mqai::MQHBAG,
745 DataBag: crate::mqai::MQHBAG,
746 BufferLength: crate::MQLONG,
747 Buffer: crate::PMQVOID,
748 DataLength: &mut crate::MQLONG,
749 CompCode: &mut crate::MQLONG,
750 Reason: &mut crate::MQLONG,
751 ) {
752 unsafe {
753 MqWrapper::mqBagToBuffer(
754 self,
755 OptionsBag,
756 DataBag,
757 BufferLength,
758 Buffer,
759 DataLength,
760 CompCode,
761 Reason,
762 );
763 }
764 }
765 unsafe fn mqBufferToBag(
766 &self,
767 OptionsBag: crate::mqai::MQHBAG,
768 BufferLength: crate::MQLONG,
769 Buffer: crate::PMQVOID,
770 DataBag: crate::mqai::MQHBAG,
771 CompCode: &mut crate::MQLONG,
772 Reason: &mut crate::MQLONG,
773 ) {
774 unsafe {
775 MqWrapper::mqBufferToBag(
776 self,
777 OptionsBag,
778 BufferLength,
779 Buffer,
780 DataBag,
781 CompCode,
782 Reason,
783 );
784 }
785 }
786 unsafe fn mqClearBag(
787 &self,
788 Bag: crate::mqai::MQHBAG,
789 CompCode: &mut crate::MQLONG,
790 Reason: &mut crate::MQLONG,
791 ) {
792 unsafe {
793 MqWrapper::mqClearBag(self, Bag, CompCode, Reason);
794 }
795 }
796 unsafe fn mqCountItems(
797 &self,
798 Bag: crate::mqai::MQHBAG,
799 Selector: crate::MQLONG,
800 ItemCount: &mut crate::MQLONG,
801 CompCode: &mut crate::MQLONG,
802 Reason: &mut crate::MQLONG,
803 ) {
804 unsafe {
805 MqWrapper::mqCountItems(self, Bag, Selector, ItemCount, CompCode, Reason);
806 }
807 }
808 unsafe fn mqCreateBag(
809 &self,
810 Options: crate::MQLONG,
811 Bag: &mut crate::mqai::MQHBAG,
812 CompCode: &mut crate::MQLONG,
813 Reason: &mut crate::MQLONG,
814 ) {
815 unsafe {
816 MqWrapper::mqCreateBag(self, Options, Bag, CompCode, Reason);
817 }
818 }
819 unsafe fn mqDeleteBag(
820 &self,
821 Bag: &mut crate::mqai::MQHBAG,
822 CompCode: &mut crate::MQLONG,
823 Reason: &mut crate::MQLONG,
824 ) {
825 unsafe {
826 MqWrapper::mqDeleteBag(self, Bag, CompCode, Reason);
827 }
828 }
829 unsafe fn mqDeleteItem(
830 &self,
831 Bag: crate::mqai::MQHBAG,
832 Selector: crate::MQLONG,
833 ItemIndex: crate::MQLONG,
834 CompCode: &mut crate::MQLONG,
835 Reason: &mut crate::MQLONG,
836 ) {
837 unsafe {
838 MqWrapper::mqDeleteItem(self, Bag, Selector, ItemIndex, CompCode, Reason);
839 }
840 }
841 unsafe fn mqExecute(
842 &self,
843 Hconn: crate::MQHCONN,
844 Command: crate::MQLONG,
845 OptionsBag: crate::mqai::MQHBAG,
846 AdminBag: crate::mqai::MQHBAG,
847 ResponseBag: crate::mqai::MQHBAG,
848 AdminQ: crate::MQHOBJ,
849 ResponseQ: crate::MQHOBJ,
850 CompCode: &mut crate::MQLONG,
851 Reason: &mut crate::MQLONG,
852 ) {
853 unsafe {
854 MqWrapper::mqExecute(
855 self,
856 Hconn,
857 Command,
858 OptionsBag,
859 AdminBag,
860 ResponseBag,
861 AdminQ,
862 ResponseQ,
863 CompCode,
864 Reason,
865 );
866 }
867 }
868 unsafe fn mqGetBag(
869 &self,
870 Hconn: crate::MQHCONN,
871 Hobj: crate::MQHOBJ,
872 MsgDesc: crate::PMQVOID,
873 GetMsgOpts: &mut crate::MQGMO,
874 Bag: crate::mqai::MQHBAG,
875 CompCode: &mut crate::MQLONG,
876 Reason: &mut crate::MQLONG,
877 ) {
878 unsafe {
879 MqWrapper::mqGetBag(
880 self,
881 Hconn,
882 Hobj,
883 MsgDesc,
884 GetMsgOpts,
885 Bag,
886 CompCode,
887 Reason,
888 );
889 }
890 }
891 unsafe fn mqInquireBag(
892 &self,
893 Bag: crate::mqai::MQHBAG,
894 Selector: crate::MQLONG,
895 ItemIndex: crate::MQLONG,
896 ItemValue: &mut crate::mqai::MQHBAG,
897 CompCode: &mut crate::MQLONG,
898 Reason: &mut crate::MQLONG,
899 ) {
900 unsafe {
901 MqWrapper::mqInquireBag(
902 self,
903 Bag,
904 Selector,
905 ItemIndex,
906 ItemValue,
907 CompCode,
908 Reason,
909 );
910 }
911 }
912 unsafe fn mqInquireByteString(
913 &self,
914 Bag: crate::mqai::MQHBAG,
915 Selector: crate::MQLONG,
916 ItemIndex: crate::MQLONG,
917 BufferLength: crate::MQLONG,
918 Buffer: crate::PMQBYTE,
919 ByteStringLength: &mut crate::MQLONG,
920 CompCode: &mut crate::MQLONG,
921 Reason: &mut crate::MQLONG,
922 ) {
923 unsafe {
924 MqWrapper::mqInquireByteString(
925 self,
926 Bag,
927 Selector,
928 ItemIndex,
929 BufferLength,
930 Buffer,
931 ByteStringLength,
932 CompCode,
933 Reason,
934 );
935 }
936 }
937 unsafe fn mqInquireByteStringFilter(
938 &self,
939 Bag: crate::mqai::MQHBAG,
940 Selector: crate::MQLONG,
941 ItemIndex: crate::MQLONG,
942 BufferLength: crate::MQLONG,
943 Buffer: crate::PMQBYTE,
944 ByteStringLength: &mut crate::MQLONG,
945 Operator: &mut crate::MQLONG,
946 CompCode: &mut crate::MQLONG,
947 Reason: &mut crate::MQLONG,
948 ) {
949 unsafe {
950 MqWrapper::mqInquireByteStringFilter(
951 self,
952 Bag,
953 Selector,
954 ItemIndex,
955 BufferLength,
956 Buffer,
957 ByteStringLength,
958 Operator,
959 CompCode,
960 Reason,
961 );
962 }
963 }
964 unsafe fn mqInquireInteger(
965 &self,
966 Bag: crate::mqai::MQHBAG,
967 Selector: crate::MQLONG,
968 ItemIndex: crate::MQLONG,
969 ItemValue: &mut crate::MQLONG,
970 CompCode: &mut crate::MQLONG,
971 Reason: &mut crate::MQLONG,
972 ) {
973 unsafe {
974 MqWrapper::mqInquireInteger(
975 self,
976 Bag,
977 Selector,
978 ItemIndex,
979 ItemValue,
980 CompCode,
981 Reason,
982 );
983 }
984 }
985 unsafe fn mqInquireInteger64(
986 &self,
987 Bag: crate::mqai::MQHBAG,
988 Selector: crate::MQLONG,
989 ItemIndex: crate::MQLONG,
990 ItemValue: &mut crate::MQINT64,
991 CompCode: &mut crate::MQLONG,
992 Reason: &mut crate::MQLONG,
993 ) {
994 unsafe {
995 MqWrapper::mqInquireInteger64(
996 self,
997 Bag,
998 Selector,
999 ItemIndex,
1000 ItemValue,
1001 CompCode,
1002 Reason,
1003 );
1004 }
1005 }
1006 unsafe fn mqInquireIntegerFilter(
1007 &self,
1008 Bag: crate::mqai::MQHBAG,
1009 Selector: crate::MQLONG,
1010 ItemIndex: crate::MQLONG,
1011 ItemValue: &mut crate::MQLONG,
1012 Operator: &mut crate::MQLONG,
1013 CompCode: &mut crate::MQLONG,
1014 Reason: &mut crate::MQLONG,
1015 ) {
1016 unsafe {
1017 MqWrapper::mqInquireIntegerFilter(
1018 self,
1019 Bag,
1020 Selector,
1021 ItemIndex,
1022 ItemValue,
1023 Operator,
1024 CompCode,
1025 Reason,
1026 );
1027 }
1028 }
1029 unsafe fn mqInquireItemInfo(
1030 &self,
1031 Bag: crate::mqai::MQHBAG,
1032 Selector: crate::MQLONG,
1033 ItemIndex: crate::MQLONG,
1034 OutSelector: &mut crate::MQLONG,
1035 ItemType: &mut crate::MQLONG,
1036 CompCode: &mut crate::MQLONG,
1037 Reason: &mut crate::MQLONG,
1038 ) {
1039 unsafe {
1040 MqWrapper::mqInquireItemInfo(
1041 self,
1042 Bag,
1043 Selector,
1044 ItemIndex,
1045 OutSelector,
1046 ItemType,
1047 CompCode,
1048 Reason,
1049 );
1050 }
1051 }
1052 unsafe fn mqInquireString(
1053 &self,
1054 Bag: crate::mqai::MQHBAG,
1055 Selector: crate::MQLONG,
1056 ItemIndex: crate::MQLONG,
1057 BufferLength: crate::MQLONG,
1058 Buffer: crate::PMQCHAR,
1059 StringLength: &mut crate::MQLONG,
1060 CodedCharSetId: &mut crate::MQLONG,
1061 CompCode: &mut crate::MQLONG,
1062 Reason: &mut crate::MQLONG,
1063 ) {
1064 unsafe {
1065 MqWrapper::mqInquireString(
1066 self,
1067 Bag,
1068 Selector,
1069 ItemIndex,
1070 BufferLength,
1071 Buffer,
1072 StringLength,
1073 CodedCharSetId,
1074 CompCode,
1075 Reason,
1076 );
1077 }
1078 }
1079 unsafe fn mqInquireStringFilter(
1080 &self,
1081 Bag: crate::mqai::MQHBAG,
1082 Selector: crate::MQLONG,
1083 ItemIndex: crate::MQLONG,
1084 BufferLength: crate::MQLONG,
1085 Buffer: crate::PMQCHAR,
1086 StringLength: &mut crate::MQLONG,
1087 CodedCharSetId: &mut crate::MQLONG,
1088 Operator: &mut crate::MQLONG,
1089 CompCode: &mut crate::MQLONG,
1090 Reason: &mut crate::MQLONG,
1091 ) {
1092 unsafe {
1093 MqWrapper::mqInquireStringFilter(
1094 self,
1095 Bag,
1096 Selector,
1097 ItemIndex,
1098 BufferLength,
1099 Buffer,
1100 StringLength,
1101 CodedCharSetId,
1102 Operator,
1103 CompCode,
1104 Reason,
1105 );
1106 }
1107 }
1108 unsafe fn mqPad(
1109 &self,
1110 String: crate::PMQCHAR,
1111 BufferLength: crate::MQLONG,
1112 Buffer: crate::PMQCHAR,
1113 CompCode: &mut crate::MQLONG,
1114 Reason: &mut crate::MQLONG,
1115 ) {
1116 unsafe {
1117 MqWrapper::mqPad(self, String, BufferLength, Buffer, CompCode, Reason);
1118 }
1119 }
1120 unsafe fn mqPutBag(
1121 &self,
1122 Hconn: crate::MQHCONN,
1123 Hobj: crate::MQHOBJ,
1124 MsgDesc: crate::PMQVOID,
1125 PutMsgOpts: &mut crate::MQPMO,
1126 Bag: crate::mqai::MQHBAG,
1127 CompCode: &mut crate::MQLONG,
1128 Reason: &mut crate::MQLONG,
1129 ) {
1130 unsafe {
1131 MqWrapper::mqPutBag(
1132 self,
1133 Hconn,
1134 Hobj,
1135 MsgDesc,
1136 PutMsgOpts,
1137 Bag,
1138 CompCode,
1139 Reason,
1140 );
1141 }
1142 }
1143 unsafe fn mqSetByteString(
1144 &self,
1145 Bag: crate::mqai::MQHBAG,
1146 Selector: crate::MQLONG,
1147 ItemIndex: crate::MQLONG,
1148 BufferLength: crate::MQLONG,
1149 Buffer: crate::PMQBYTE,
1150 CompCode: &mut crate::MQLONG,
1151 Reason: &mut crate::MQLONG,
1152 ) {
1153 unsafe {
1154 MqWrapper::mqSetByteString(
1155 self,
1156 Bag,
1157 Selector,
1158 ItemIndex,
1159 BufferLength,
1160 Buffer,
1161 CompCode,
1162 Reason,
1163 );
1164 }
1165 }
1166 unsafe fn mqSetByteStringFilter(
1167 &self,
1168 Bag: crate::mqai::MQHBAG,
1169 Selector: crate::MQLONG,
1170 ItemIndex: crate::MQLONG,
1171 BufferLength: crate::MQLONG,
1172 Buffer: crate::PMQBYTE,
1173 Operator: crate::MQLONG,
1174 CompCode: &mut crate::MQLONG,
1175 Reason: &mut crate::MQLONG,
1176 ) {
1177 unsafe {
1178 MqWrapper::mqSetByteStringFilter(
1179 self,
1180 Bag,
1181 Selector,
1182 ItemIndex,
1183 BufferLength,
1184 Buffer,
1185 Operator,
1186 CompCode,
1187 Reason,
1188 );
1189 }
1190 }
1191 unsafe fn mqSetInteger(
1192 &self,
1193 Bag: crate::mqai::MQHBAG,
1194 Selector: crate::MQLONG,
1195 ItemIndex: crate::MQLONG,
1196 ItemValue: crate::MQLONG,
1197 CompCode: &mut crate::MQLONG,
1198 Reason: &mut crate::MQLONG,
1199 ) {
1200 unsafe {
1201 MqWrapper::mqSetInteger(
1202 self,
1203 Bag,
1204 Selector,
1205 ItemIndex,
1206 ItemValue,
1207 CompCode,
1208 Reason,
1209 );
1210 }
1211 }
1212 unsafe fn mqSetInteger64(
1213 &self,
1214 Bag: crate::mqai::MQHBAG,
1215 Selector: crate::MQLONG,
1216 ItemIndex: crate::MQLONG,
1217 ItemValue: crate::MQINT64,
1218 CompCode: &mut crate::MQLONG,
1219 Reason: &mut crate::MQLONG,
1220 ) {
1221 unsafe {
1222 MqWrapper::mqSetInteger64(
1223 self,
1224 Bag,
1225 Selector,
1226 ItemIndex,
1227 ItemValue,
1228 CompCode,
1229 Reason,
1230 );
1231 }
1232 }
1233 unsafe fn mqSetIntegerFilter(
1234 &self,
1235 Bag: crate::mqai::MQHBAG,
1236 Selector: crate::MQLONG,
1237 ItemIndex: crate::MQLONG,
1238 ItemValue: crate::MQLONG,
1239 Operator: crate::MQLONG,
1240 CompCode: &mut crate::MQLONG,
1241 Reason: &mut crate::MQLONG,
1242 ) {
1243 unsafe {
1244 MqWrapper::mqSetIntegerFilter(
1245 self,
1246 Bag,
1247 Selector,
1248 ItemIndex,
1249 ItemValue,
1250 Operator,
1251 CompCode,
1252 Reason,
1253 );
1254 }
1255 }
1256 unsafe fn mqSetString(
1257 &self,
1258 Bag: crate::mqai::MQHBAG,
1259 Selector: crate::MQLONG,
1260 ItemIndex: crate::MQLONG,
1261 BufferLength: crate::MQLONG,
1262 Buffer: crate::PMQCHAR,
1263 CompCode: &mut crate::MQLONG,
1264 Reason: &mut crate::MQLONG,
1265 ) {
1266 unsafe {
1267 MqWrapper::mqSetString(
1268 self,
1269 Bag,
1270 Selector,
1271 ItemIndex,
1272 BufferLength,
1273 Buffer,
1274 CompCode,
1275 Reason,
1276 );
1277 }
1278 }
1279 unsafe fn mqSetStringFilter(
1280 &self,
1281 Bag: crate::mqai::MQHBAG,
1282 Selector: crate::MQLONG,
1283 ItemIndex: crate::MQLONG,
1284 BufferLength: crate::MQLONG,
1285 Buffer: crate::PMQCHAR,
1286 Operator: crate::MQLONG,
1287 CompCode: &mut crate::MQLONG,
1288 Reason: &mut crate::MQLONG,
1289 ) {
1290 unsafe {
1291 MqWrapper::mqSetStringFilter(
1292 self,
1293 Bag,
1294 Selector,
1295 ItemIndex,
1296 BufferLength,
1297 Buffer,
1298 Operator,
1299 CompCode,
1300 Reason,
1301 );
1302 }
1303 }
1304 unsafe fn mqTrim(
1305 &self,
1306 BufferLength: crate::MQLONG,
1307 Buffer: crate::PMQCHAR,
1308 String: crate::PMQCHAR,
1309 CompCode: &mut crate::MQLONG,
1310 Reason: &mut crate::MQLONG,
1311 ) {
1312 unsafe {
1313 MqWrapper::mqTrim(self, BufferLength, Buffer, String, CompCode, Reason);
1314 }
1315 }
1316 unsafe fn mqTruncateBag(
1317 &self,
1318 Bag: crate::mqai::MQHBAG,
1319 ItemCount: crate::MQLONG,
1320 CompCode: &mut crate::MQLONG,
1321 Reason: &mut crate::MQLONG,
1322 ) {
1323 unsafe {
1324 MqWrapper::mqTruncateBag(self, Bag, ItemCount, CompCode, Reason);
1325 }
1326 }
1327}
1328impl crate::Mqi for ::dlopen2::wrapper::Container<MqWrapper> {
1329 unsafe fn MQBACK(
1330 &self,
1331 Hconn: crate::MQHCONN,
1332 CompCode: &mut crate::MQLONG,
1333 Reason: &mut crate::MQLONG,
1334 ) {
1335 unsafe {
1336 MqWrapper::MQBACK(self, Hconn, CompCode, Reason);
1337 }
1338 }
1339 unsafe fn MQBEGIN(
1340 &self,
1341 Hconn: crate::MQHCONN,
1342 BeginOptions: Option<&mut crate::MQBO>,
1343 CompCode: &mut crate::MQLONG,
1344 Reason: &mut crate::MQLONG,
1345 ) {
1346 unsafe {
1347 MqWrapper::MQBEGIN(self, Hconn, BeginOptions, CompCode, Reason);
1348 }
1349 }
1350 unsafe fn MQBUFMH(
1351 &self,
1352 Hconn: crate::MQHCONN,
1353 Hmsg: crate::MQHMSG,
1354 BufMsgHOpts: &crate::MQBMHO,
1355 MsgDesc: crate::PMQVOID,
1356 BufferLength: crate::MQLONG,
1357 Buffer: crate::PMQVOID,
1358 DataLength: &mut crate::MQLONG,
1359 CompCode: &mut crate::MQLONG,
1360 Reason: &mut crate::MQLONG,
1361 ) {
1362 unsafe {
1363 MqWrapper::MQBUFMH(
1364 self,
1365 Hconn,
1366 Hmsg,
1367 BufMsgHOpts,
1368 MsgDesc,
1369 BufferLength,
1370 Buffer,
1371 DataLength,
1372 CompCode,
1373 Reason,
1374 );
1375 }
1376 }
1377 unsafe fn MQCB(
1378 &self,
1379 Hconn: crate::MQHCONN,
1380 Operation: crate::MQLONG,
1381 CallbackDesc: Option<&crate::MQCBD>,
1382 Hobj: crate::MQHOBJ,
1383 MsgDesc: crate::PMQVOID,
1384 GetMsgOpts: Option<&crate::MQGMO>,
1385 CompCode: &mut crate::MQLONG,
1386 Reason: &mut crate::MQLONG,
1387 ) {
1388 unsafe {
1389 MqWrapper::MQCB(
1390 self,
1391 Hconn,
1392 Operation,
1393 CallbackDesc,
1394 Hobj,
1395 MsgDesc,
1396 GetMsgOpts,
1397 CompCode,
1398 Reason,
1399 );
1400 }
1401 }
1402 unsafe fn MQCLOSE(
1403 &self,
1404 Hconn: crate::MQHCONN,
1405 Hobj: &mut crate::MQHOBJ,
1406 Options: crate::MQLONG,
1407 CompCode: &mut crate::MQLONG,
1408 Reason: &mut crate::MQLONG,
1409 ) {
1410 unsafe {
1411 MqWrapper::MQCLOSE(self, Hconn, Hobj, Options, CompCode, Reason);
1412 }
1413 }
1414 unsafe fn MQCMIT(
1415 &self,
1416 Hconn: crate::MQHCONN,
1417 CompCode: &mut crate::MQLONG,
1418 Reason: &mut crate::MQLONG,
1419 ) {
1420 unsafe {
1421 MqWrapper::MQCMIT(self, Hconn, CompCode, Reason);
1422 }
1423 }
1424 unsafe fn MQCONN(
1425 &self,
1426 QMgrName: &crate::MQCHAR48,
1427 Hconn: &mut crate::MQHCONN,
1428 CompCode: &mut crate::MQLONG,
1429 Reason: &mut crate::MQLONG,
1430 ) {
1431 unsafe {
1432 MqWrapper::MQCONN(self, QMgrName, Hconn, CompCode, Reason);
1433 }
1434 }
1435 unsafe fn MQCONNX(
1436 &self,
1437 QMgrName: &crate::MQCHAR48,
1438 ConnectOpts: &mut crate::MQCNO,
1439 Hconn: &mut crate::MQHCONN,
1440 CompCode: &mut crate::MQLONG,
1441 Reason: &mut crate::MQLONG,
1442 ) {
1443 unsafe {
1444 MqWrapper::MQCONNX(self, QMgrName, ConnectOpts, Hconn, CompCode, Reason);
1445 }
1446 }
1447 unsafe fn MQCRTMH(
1448 &self,
1449 Hconn: crate::MQHCONN,
1450 CrtMsgHOpts: &crate::MQCMHO,
1451 Hmsg: &mut crate::MQHMSG,
1452 CompCode: &mut crate::MQLONG,
1453 Reason: &mut crate::MQLONG,
1454 ) {
1455 unsafe {
1456 MqWrapper::MQCRTMH(self, Hconn, CrtMsgHOpts, Hmsg, CompCode, Reason);
1457 }
1458 }
1459 unsafe fn MQCTL(
1460 &self,
1461 Hconn: crate::MQHCONN,
1462 Operation: crate::MQLONG,
1463 ControlOpts: &crate::MQCTLO,
1464 CompCode: &mut crate::MQLONG,
1465 Reason: &mut crate::MQLONG,
1466 ) {
1467 unsafe {
1468 MqWrapper::MQCTL(self, Hconn, Operation, ControlOpts, CompCode, Reason);
1469 }
1470 }
1471 unsafe fn MQDISC(
1472 &self,
1473 Hconn: &mut crate::MQHCONN,
1474 CompCode: &mut crate::MQLONG,
1475 Reason: &mut crate::MQLONG,
1476 ) {
1477 unsafe {
1478 MqWrapper::MQDISC(self, Hconn, CompCode, Reason);
1479 }
1480 }
1481 unsafe fn MQDLTMH(
1482 &self,
1483 Hconn: crate::MQHCONN,
1484 Hmsg: &mut crate::MQHMSG,
1485 DltMsgHOpts: &crate::MQDMHO,
1486 CompCode: &mut crate::MQLONG,
1487 Reason: &mut crate::MQLONG,
1488 ) {
1489 unsafe {
1490 MqWrapper::MQDLTMH(self, Hconn, Hmsg, DltMsgHOpts, CompCode, Reason);
1491 }
1492 }
1493 unsafe fn MQDLTMP(
1494 &self,
1495 Hconn: crate::MQHCONN,
1496 Hmsg: crate::MQHMSG,
1497 DltPropOpts: &crate::MQDMPO,
1498 Name: &crate::MQCHARV,
1499 CompCode: &mut crate::MQLONG,
1500 Reason: &mut crate::MQLONG,
1501 ) {
1502 unsafe {
1503 MqWrapper::MQDLTMP(self, Hconn, Hmsg, DltPropOpts, Name, CompCode, Reason);
1504 }
1505 }
1506 unsafe fn MQGET(
1507 &self,
1508 Hconn: crate::MQHCONN,
1509 Hobj: crate::MQHOBJ,
1510 MsgDesc: crate::PMQVOID,
1511 GetMsgOpts: &mut crate::MQGMO,
1512 BufferLength: crate::MQLONG,
1513 Buffer: crate::PMQVOID,
1514 DataLength: &mut crate::MQLONG,
1515 CompCode: &mut crate::MQLONG,
1516 Reason: &mut crate::MQLONG,
1517 ) {
1518 unsafe {
1519 MqWrapper::MQGET(
1520 self,
1521 Hconn,
1522 Hobj,
1523 MsgDesc,
1524 GetMsgOpts,
1525 BufferLength,
1526 Buffer,
1527 DataLength,
1528 CompCode,
1529 Reason,
1530 );
1531 }
1532 }
1533 unsafe fn MQINQ(
1534 &self,
1535 Hconn: crate::MQHCONN,
1536 Hobj: crate::MQHOBJ,
1537 SelectorCount: crate::MQLONG,
1538 Selectors: crate::PMQLONG,
1539 IntAttrCount: crate::MQLONG,
1540 IntAttrs: crate::PMQLONG,
1541 CharAttrLength: crate::MQLONG,
1542 CharAttrs: crate::PMQCHAR,
1543 CompCode: &mut crate::MQLONG,
1544 Reason: &mut crate::MQLONG,
1545 ) {
1546 unsafe {
1547 MqWrapper::MQINQ(
1548 self,
1549 Hconn,
1550 Hobj,
1551 SelectorCount,
1552 Selectors,
1553 IntAttrCount,
1554 IntAttrs,
1555 CharAttrLength,
1556 CharAttrs,
1557 CompCode,
1558 Reason,
1559 );
1560 }
1561 }
1562 unsafe fn MQINQMP(
1563 &self,
1564 Hconn: crate::MQHCONN,
1565 Hmsg: crate::MQHMSG,
1566 InqPropOpts: &mut crate::MQIMPO,
1567 Name: &crate::MQCHARV,
1568 PropDesc: &mut crate::MQPD,
1569 Type: &mut crate::MQLONG,
1570 ValueLength: crate::MQLONG,
1571 Value: crate::PMQVOID,
1572 DataLength: &mut crate::MQLONG,
1573 CompCode: &mut crate::MQLONG,
1574 Reason: &mut crate::MQLONG,
1575 ) {
1576 unsafe {
1577 MqWrapper::MQINQMP(
1578 self,
1579 Hconn,
1580 Hmsg,
1581 InqPropOpts,
1582 Name,
1583 PropDesc,
1584 Type,
1585 ValueLength,
1586 Value,
1587 DataLength,
1588 CompCode,
1589 Reason,
1590 );
1591 }
1592 }
1593 unsafe fn MQMHBUF(
1594 &self,
1595 Hconn: crate::MQHCONN,
1596 Hmsg: crate::MQHMSG,
1597 MsgHBufOpts: &crate::MQMHBO,
1598 Name: &crate::MQCHARV,
1599 MsgDesc: crate::PMQVOID,
1600 BufferLength: crate::MQLONG,
1601 Buffer: crate::PMQVOID,
1602 DataLength: &mut crate::MQLONG,
1603 CompCode: &mut crate::MQLONG,
1604 Reason: &mut crate::MQLONG,
1605 ) {
1606 unsafe {
1607 MqWrapper::MQMHBUF(
1608 self,
1609 Hconn,
1610 Hmsg,
1611 MsgHBufOpts,
1612 Name,
1613 MsgDesc,
1614 BufferLength,
1615 Buffer,
1616 DataLength,
1617 CompCode,
1618 Reason,
1619 );
1620 }
1621 }
1622 unsafe fn MQOPEN(
1623 &self,
1624 Hconn: crate::MQHCONN,
1625 ObjDesc: &mut crate::MQOD,
1626 Options: crate::MQLONG,
1627 Hobj: &mut crate::MQHOBJ,
1628 CompCode: &mut crate::MQLONG,
1629 Reason: &mut crate::MQLONG,
1630 ) {
1631 unsafe {
1632 MqWrapper::MQOPEN(self, Hconn, ObjDesc, Options, Hobj, CompCode, Reason);
1633 }
1634 }
1635 unsafe fn MQPUT(
1636 &self,
1637 Hconn: crate::MQHCONN,
1638 Hobj: crate::MQHOBJ,
1639 MsgDesc: crate::PMQVOID,
1640 PutMsgOpts: &mut crate::MQPMO,
1641 BufferLength: crate::MQLONG,
1642 Buffer: crate::PMQVOID,
1643 CompCode: &mut crate::MQLONG,
1644 Reason: &mut crate::MQLONG,
1645 ) {
1646 unsafe {
1647 MqWrapper::MQPUT(
1648 self,
1649 Hconn,
1650 Hobj,
1651 MsgDesc,
1652 PutMsgOpts,
1653 BufferLength,
1654 Buffer,
1655 CompCode,
1656 Reason,
1657 );
1658 }
1659 }
1660 unsafe fn MQPUT1(
1661 &self,
1662 Hconn: crate::MQHCONN,
1663 ObjDesc: &mut crate::MQOD,
1664 MsgDesc: crate::PMQVOID,
1665 PutMsgOpts: &mut crate::MQPMO,
1666 BufferLength: crate::MQLONG,
1667 Buffer: crate::PMQVOID,
1668 CompCode: &mut crate::MQLONG,
1669 Reason: &mut crate::MQLONG,
1670 ) {
1671 unsafe {
1672 MqWrapper::MQPUT1(
1673 self,
1674 Hconn,
1675 ObjDesc,
1676 MsgDesc,
1677 PutMsgOpts,
1678 BufferLength,
1679 Buffer,
1680 CompCode,
1681 Reason,
1682 );
1683 }
1684 }
1685 unsafe fn MQSET(
1686 &self,
1687 Hconn: crate::MQHCONN,
1688 Hobj: crate::MQHOBJ,
1689 SelectorCount: crate::MQLONG,
1690 Selectors: crate::PMQLONG,
1691 IntAttrCount: crate::MQLONG,
1692 IntAttrs: crate::PMQLONG,
1693 CharAttrLength: crate::MQLONG,
1694 CharAttrs: crate::PMQCHAR,
1695 CompCode: &mut crate::MQLONG,
1696 Reason: &mut crate::MQLONG,
1697 ) {
1698 unsafe {
1699 MqWrapper::MQSET(
1700 self,
1701 Hconn,
1702 Hobj,
1703 SelectorCount,
1704 Selectors,
1705 IntAttrCount,
1706 IntAttrs,
1707 CharAttrLength,
1708 CharAttrs,
1709 CompCode,
1710 Reason,
1711 );
1712 }
1713 }
1714 unsafe fn MQSETMP(
1715 &self,
1716 Hconn: crate::MQHCONN,
1717 Hmsg: crate::MQHMSG,
1718 SetPropOpts: &crate::MQSMPO,
1719 Name: &crate::MQCHARV,
1720 PropDesc: &mut crate::MQPD,
1721 Type: crate::MQLONG,
1722 ValueLength: crate::MQLONG,
1723 Value: crate::PMQVOID,
1724 CompCode: &mut crate::MQLONG,
1725 Reason: &mut crate::MQLONG,
1726 ) {
1727 unsafe {
1728 MqWrapper::MQSETMP(
1729 self,
1730 Hconn,
1731 Hmsg,
1732 SetPropOpts,
1733 Name,
1734 PropDesc,
1735 Type,
1736 ValueLength,
1737 Value,
1738 CompCode,
1739 Reason,
1740 );
1741 }
1742 }
1743 unsafe fn MQSTAT(
1744 &self,
1745 Hconn: crate::MQHCONN,
1746 Type: crate::MQLONG,
1747 Status: &mut crate::MQSTS,
1748 CompCode: &mut crate::MQLONG,
1749 Reason: &mut crate::MQLONG,
1750 ) {
1751 unsafe {
1752 MqWrapper::MQSTAT(self, Hconn, Type, Status, CompCode, Reason);
1753 }
1754 }
1755 unsafe fn MQSUB(
1756 &self,
1757 Hconn: crate::MQHCONN,
1758 SubDesc: &mut crate::MQSD,
1759 Hobj: Option<&mut crate::MQHOBJ>,
1760 Hsub: &mut crate::MQHOBJ,
1761 CompCode: &mut crate::MQLONG,
1762 Reason: &mut crate::MQLONG,
1763 ) {
1764 unsafe {
1765 MqWrapper::MQSUB(self, Hconn, SubDesc, Hobj, Hsub, CompCode, Reason);
1766 }
1767 }
1768 unsafe fn MQSUBRQ(
1769 &self,
1770 Hconn: crate::MQHCONN,
1771 Hsub: crate::MQHOBJ,
1772 Action: crate::MQLONG,
1773 SubRqOpts: Option<&mut crate::MQSRO>,
1774 CompCode: &mut crate::MQLONG,
1775 Reason: &mut crate::MQLONG,
1776 ) {
1777 unsafe {
1778 MqWrapper::MQSUBRQ(self, Hconn, Hsub, Action, SubRqOpts, CompCode, Reason);
1779 }
1780 }
1781 unsafe fn MQXCNVC(
1782 &self,
1783 Hconn: crate::MQHCONN,
1784 Options: crate::MQLONG,
1785 SourceCCSID: crate::MQLONG,
1786 SourceLength: crate::MQLONG,
1787 SourceBuffer: crate::PMQCHAR,
1788 TargetCCSID: crate::MQLONG,
1789 TargetLength: crate::MQLONG,
1790 TargetBuffer: crate::PMQCHAR,
1791 DataLength: &mut crate::MQLONG,
1792 CompCode: &mut crate::MQLONG,
1793 Reason: &mut crate::MQLONG,
1794 ) {
1795 unsafe {
1796 MqWrapper::MQXCNVC(
1797 self,
1798 Hconn,
1799 Options,
1800 SourceCCSID,
1801 SourceLength,
1802 SourceBuffer,
1803 TargetCCSID,
1804 TargetLength,
1805 TargetBuffer,
1806 DataLength,
1807 CompCode,
1808 Reason,
1809 );
1810 }
1811 }
1812}