libmqm_sys/pregen/
link.rs

1/// Provides access to compile time linked MQI and MQAI functions
2#[derive(Debug, Clone, Copy)]
3pub struct LinkedMq;
4#[cfg(feature = "exits")]
5impl crate::Exits for LinkedMq {
6    unsafe fn MQXEP(
7        &self,
8        Hconfig: crate::exits::MQHCONFIG,
9        ExitReason: crate::MQLONG,
10        Function: crate::MQLONG,
11        EntryPoint: crate::PMQFUNC,
12        ExitOpts: Option<&crate::exits::MQXEPO>,
13        CompCode: &mut crate::MQLONG,
14        Reason: &mut crate::MQLONG,
15    ) {
16        unsafe {
17            crate::exits::MQXEP(
18                Hconfig,
19                ExitReason,
20                Function,
21                EntryPoint,
22                ExitOpts,
23                CompCode,
24                Reason,
25            );
26        }
27    }
28    unsafe fn MQXCLWLN(
29        &self,
30        ExitParms: &mut crate::exits::MQWXP,
31        CurrentRecord: crate::MQPTR,
32        NextOffset: crate::MQLONG,
33        NextRecord: &mut crate::MQPTR,
34        CompCode: &mut crate::MQLONG,
35        Reason: &mut crate::MQLONG,
36    ) {
37        unsafe {
38            crate::exits::MQXCLWLN(
39                ExitParms,
40                CurrentRecord,
41                NextOffset,
42                NextRecord,
43                CompCode,
44                Reason,
45            );
46        }
47    }
48    unsafe fn MQXDX(
49        &self,
50        DataConvExitParms: &mut crate::exits::MQDXP,
51        MsgDesc: crate::PMQMD,
52        InBufferLength: crate::MQLONG,
53        InBuffer: crate::PMQVOID,
54        OutBufferLength: crate::MQLONG,
55        OutBuffer: crate::PMQVOID,
56    ) {
57        unsafe {
58            crate::exits::MQXDX(
59                DataConvExitParms,
60                MsgDesc,
61                InBufferLength,
62                InBuffer,
63                OutBufferLength,
64                OutBuffer,
65            );
66        }
67    }
68    unsafe fn MQZEP(
69        &self,
70        Hconfig: crate::exits::MQHCONFIG,
71        Function: crate::MQLONG,
72        EntryPoint: crate::PMQFUNC,
73        CompCode: &mut crate::MQLONG,
74        Reason: &mut crate::MQLONG,
75    ) {
76        unsafe {
77            crate::exits::MQZEP(Hconfig, Function, EntryPoint, CompCode, Reason);
78        }
79    }
80}
81#[cfg(feature = "mqai")]
82impl crate::Mqai for LinkedMq {
83    unsafe fn mqAddBag(
84        &self,
85        Bag: crate::mqai::MQHBAG,
86        Selector: crate::MQLONG,
87        ItemValue: crate::mqai::MQHBAG,
88        CompCode: &mut crate::MQLONG,
89        Reason: &mut crate::MQLONG,
90    ) {
91        unsafe {
92            crate::mqai::mqAddBag(Bag, Selector, ItemValue, CompCode, Reason);
93        }
94    }
95    unsafe fn mqAddByteString(
96        &self,
97        Bag: crate::mqai::MQHBAG,
98        Selector: crate::MQLONG,
99        BufferLength: crate::MQLONG,
100        Buffer: crate::PMQBYTE,
101        CompCode: &mut crate::MQLONG,
102        Reason: &mut crate::MQLONG,
103    ) {
104        unsafe {
105            crate::mqai::mqAddByteString(
106                Bag,
107                Selector,
108                BufferLength,
109                Buffer,
110                CompCode,
111                Reason,
112            );
113        }
114    }
115    unsafe fn mqAddByteStringFilter(
116        &self,
117        Bag: crate::mqai::MQHBAG,
118        Selector: crate::MQLONG,
119        BufferLength: crate::MQLONG,
120        Buffer: crate::PMQBYTE,
121        Operator: crate::MQLONG,
122        CompCode: &mut crate::MQLONG,
123        Reason: &mut crate::MQLONG,
124    ) {
125        unsafe {
126            crate::mqai::mqAddByteStringFilter(
127                Bag,
128                Selector,
129                BufferLength,
130                Buffer,
131                Operator,
132                CompCode,
133                Reason,
134            );
135        }
136    }
137    unsafe fn mqAddInquiry(
138        &self,
139        Bag: crate::mqai::MQHBAG,
140        Selector: crate::MQLONG,
141        CompCode: &mut crate::MQLONG,
142        Reason: &mut crate::MQLONG,
143    ) {
144        unsafe {
145            crate::mqai::mqAddInquiry(Bag, Selector, CompCode, Reason);
146        }
147    }
148    unsafe fn mqAddInteger(
149        &self,
150        Bag: crate::mqai::MQHBAG,
151        Selector: crate::MQLONG,
152        ItemValue: crate::MQLONG,
153        CompCode: &mut crate::MQLONG,
154        Reason: &mut crate::MQLONG,
155    ) {
156        unsafe {
157            crate::mqai::mqAddInteger(Bag, Selector, ItemValue, CompCode, Reason);
158        }
159    }
160    unsafe fn mqAddInteger64(
161        &self,
162        Bag: crate::mqai::MQHBAG,
163        Selector: crate::MQLONG,
164        ItemValue: crate::MQINT64,
165        CompCode: &mut crate::MQLONG,
166        Reason: &mut crate::MQLONG,
167    ) {
168        unsafe {
169            crate::mqai::mqAddInteger64(Bag, Selector, ItemValue, CompCode, Reason);
170        }
171    }
172    unsafe fn mqAddIntegerFilter(
173        &self,
174        Bag: crate::mqai::MQHBAG,
175        Selector: crate::MQLONG,
176        ItemValue: crate::MQLONG,
177        Operator: crate::MQLONG,
178        CompCode: &mut crate::MQLONG,
179        Reason: &mut crate::MQLONG,
180    ) {
181        unsafe {
182            crate::mqai::mqAddIntegerFilter(
183                Bag,
184                Selector,
185                ItemValue,
186                Operator,
187                CompCode,
188                Reason,
189            );
190        }
191    }
192    unsafe fn mqAddString(
193        &self,
194        Bag: crate::mqai::MQHBAG,
195        Selector: crate::MQLONG,
196        BufferLength: crate::MQLONG,
197        Buffer: crate::PMQCHAR,
198        CompCode: &mut crate::MQLONG,
199        Reason: &mut crate::MQLONG,
200    ) {
201        unsafe {
202            crate::mqai::mqAddString(
203                Bag,
204                Selector,
205                BufferLength,
206                Buffer,
207                CompCode,
208                Reason,
209            );
210        }
211    }
212    unsafe fn mqAddStringFilter(
213        &self,
214        Bag: crate::mqai::MQHBAG,
215        Selector: crate::MQLONG,
216        BufferLength: crate::MQLONG,
217        Buffer: crate::PMQCHAR,
218        Operator: crate::MQLONG,
219        CompCode: &mut crate::MQLONG,
220        Reason: &mut crate::MQLONG,
221    ) {
222        unsafe {
223            crate::mqai::mqAddStringFilter(
224                Bag,
225                Selector,
226                BufferLength,
227                Buffer,
228                Operator,
229                CompCode,
230                Reason,
231            );
232        }
233    }
234    unsafe fn mqBagToBuffer(
235        &self,
236        OptionsBag: crate::mqai::MQHBAG,
237        DataBag: crate::mqai::MQHBAG,
238        BufferLength: crate::MQLONG,
239        Buffer: crate::PMQVOID,
240        DataLength: &mut crate::MQLONG,
241        CompCode: &mut crate::MQLONG,
242        Reason: &mut crate::MQLONG,
243    ) {
244        unsafe {
245            crate::mqai::mqBagToBuffer(
246                OptionsBag,
247                DataBag,
248                BufferLength,
249                Buffer,
250                DataLength,
251                CompCode,
252                Reason,
253            );
254        }
255    }
256    unsafe fn mqBufferToBag(
257        &self,
258        OptionsBag: crate::mqai::MQHBAG,
259        BufferLength: crate::MQLONG,
260        Buffer: crate::PMQVOID,
261        DataBag: crate::mqai::MQHBAG,
262        CompCode: &mut crate::MQLONG,
263        Reason: &mut crate::MQLONG,
264    ) {
265        unsafe {
266            crate::mqai::mqBufferToBag(
267                OptionsBag,
268                BufferLength,
269                Buffer,
270                DataBag,
271                CompCode,
272                Reason,
273            );
274        }
275    }
276    unsafe fn mqClearBag(
277        &self,
278        Bag: crate::mqai::MQHBAG,
279        CompCode: &mut crate::MQLONG,
280        Reason: &mut crate::MQLONG,
281    ) {
282        unsafe {
283            crate::mqai::mqClearBag(Bag, CompCode, Reason);
284        }
285    }
286    unsafe fn mqCountItems(
287        &self,
288        Bag: crate::mqai::MQHBAG,
289        Selector: crate::MQLONG,
290        ItemCount: &mut crate::MQLONG,
291        CompCode: &mut crate::MQLONG,
292        Reason: &mut crate::MQLONG,
293    ) {
294        unsafe {
295            crate::mqai::mqCountItems(Bag, Selector, ItemCount, CompCode, Reason);
296        }
297    }
298    unsafe fn mqCreateBag(
299        &self,
300        Options: crate::MQLONG,
301        Bag: &mut crate::mqai::MQHBAG,
302        CompCode: &mut crate::MQLONG,
303        Reason: &mut crate::MQLONG,
304    ) {
305        unsafe {
306            crate::mqai::mqCreateBag(Options, Bag, CompCode, Reason);
307        }
308    }
309    unsafe fn mqDeleteBag(
310        &self,
311        Bag: &mut crate::mqai::MQHBAG,
312        CompCode: &mut crate::MQLONG,
313        Reason: &mut crate::MQLONG,
314    ) {
315        unsafe {
316            crate::mqai::mqDeleteBag(Bag, CompCode, Reason);
317        }
318    }
319    unsafe fn mqDeleteItem(
320        &self,
321        Bag: crate::mqai::MQHBAG,
322        Selector: crate::MQLONG,
323        ItemIndex: crate::MQLONG,
324        CompCode: &mut crate::MQLONG,
325        Reason: &mut crate::MQLONG,
326    ) {
327        unsafe {
328            crate::mqai::mqDeleteItem(Bag, Selector, ItemIndex, CompCode, Reason);
329        }
330    }
331    unsafe fn mqExecute(
332        &self,
333        Hconn: crate::MQHCONN,
334        Command: crate::MQLONG,
335        OptionsBag: crate::mqai::MQHBAG,
336        AdminBag: crate::mqai::MQHBAG,
337        ResponseBag: crate::mqai::MQHBAG,
338        AdminQ: crate::MQHOBJ,
339        ResponseQ: crate::MQHOBJ,
340        CompCode: &mut crate::MQLONG,
341        Reason: &mut crate::MQLONG,
342    ) {
343        unsafe {
344            crate::mqai::mqExecute(
345                Hconn,
346                Command,
347                OptionsBag,
348                AdminBag,
349                ResponseBag,
350                AdminQ,
351                ResponseQ,
352                CompCode,
353                Reason,
354            );
355        }
356    }
357    unsafe fn mqGetBag(
358        &self,
359        Hconn: crate::MQHCONN,
360        Hobj: crate::MQHOBJ,
361        MsgDesc: crate::PMQVOID,
362        GetMsgOpts: &mut crate::MQGMO,
363        Bag: crate::mqai::MQHBAG,
364        CompCode: &mut crate::MQLONG,
365        Reason: &mut crate::MQLONG,
366    ) {
367        unsafe {
368            crate::mqai::mqGetBag(
369                Hconn,
370                Hobj,
371                MsgDesc,
372                GetMsgOpts,
373                Bag,
374                CompCode,
375                Reason,
376            );
377        }
378    }
379    unsafe fn mqInquireBag(
380        &self,
381        Bag: crate::mqai::MQHBAG,
382        Selector: crate::MQLONG,
383        ItemIndex: crate::MQLONG,
384        ItemValue: &mut crate::mqai::MQHBAG,
385        CompCode: &mut crate::MQLONG,
386        Reason: &mut crate::MQLONG,
387    ) {
388        unsafe {
389            crate::mqai::mqInquireBag(
390                Bag,
391                Selector,
392                ItemIndex,
393                ItemValue,
394                CompCode,
395                Reason,
396            );
397        }
398    }
399    unsafe fn mqInquireByteString(
400        &self,
401        Bag: crate::mqai::MQHBAG,
402        Selector: crate::MQLONG,
403        ItemIndex: crate::MQLONG,
404        BufferLength: crate::MQLONG,
405        Buffer: crate::PMQBYTE,
406        ByteStringLength: &mut crate::MQLONG,
407        CompCode: &mut crate::MQLONG,
408        Reason: &mut crate::MQLONG,
409    ) {
410        unsafe {
411            crate::mqai::mqInquireByteString(
412                Bag,
413                Selector,
414                ItemIndex,
415                BufferLength,
416                Buffer,
417                ByteStringLength,
418                CompCode,
419                Reason,
420            );
421        }
422    }
423    unsafe fn mqInquireByteStringFilter(
424        &self,
425        Bag: crate::mqai::MQHBAG,
426        Selector: crate::MQLONG,
427        ItemIndex: crate::MQLONG,
428        BufferLength: crate::MQLONG,
429        Buffer: crate::PMQBYTE,
430        ByteStringLength: &mut crate::MQLONG,
431        Operator: &mut crate::MQLONG,
432        CompCode: &mut crate::MQLONG,
433        Reason: &mut crate::MQLONG,
434    ) {
435        unsafe {
436            crate::mqai::mqInquireByteStringFilter(
437                Bag,
438                Selector,
439                ItemIndex,
440                BufferLength,
441                Buffer,
442                ByteStringLength,
443                Operator,
444                CompCode,
445                Reason,
446            );
447        }
448    }
449    unsafe fn mqInquireInteger(
450        &self,
451        Bag: crate::mqai::MQHBAG,
452        Selector: crate::MQLONG,
453        ItemIndex: crate::MQLONG,
454        ItemValue: &mut crate::MQLONG,
455        CompCode: &mut crate::MQLONG,
456        Reason: &mut crate::MQLONG,
457    ) {
458        unsafe {
459            crate::mqai::mqInquireInteger(
460                Bag,
461                Selector,
462                ItemIndex,
463                ItemValue,
464                CompCode,
465                Reason,
466            );
467        }
468    }
469    unsafe fn mqInquireInteger64(
470        &self,
471        Bag: crate::mqai::MQHBAG,
472        Selector: crate::MQLONG,
473        ItemIndex: crate::MQLONG,
474        ItemValue: &mut crate::MQINT64,
475        CompCode: &mut crate::MQLONG,
476        Reason: &mut crate::MQLONG,
477    ) {
478        unsafe {
479            crate::mqai::mqInquireInteger64(
480                Bag,
481                Selector,
482                ItemIndex,
483                ItemValue,
484                CompCode,
485                Reason,
486            );
487        }
488    }
489    unsafe fn mqInquireIntegerFilter(
490        &self,
491        Bag: crate::mqai::MQHBAG,
492        Selector: crate::MQLONG,
493        ItemIndex: crate::MQLONG,
494        ItemValue: &mut crate::MQLONG,
495        Operator: &mut crate::MQLONG,
496        CompCode: &mut crate::MQLONG,
497        Reason: &mut crate::MQLONG,
498    ) {
499        unsafe {
500            crate::mqai::mqInquireIntegerFilter(
501                Bag,
502                Selector,
503                ItemIndex,
504                ItemValue,
505                Operator,
506                CompCode,
507                Reason,
508            );
509        }
510    }
511    unsafe fn mqInquireItemInfo(
512        &self,
513        Bag: crate::mqai::MQHBAG,
514        Selector: crate::MQLONG,
515        ItemIndex: crate::MQLONG,
516        OutSelector: &mut crate::MQLONG,
517        ItemType: &mut crate::MQLONG,
518        CompCode: &mut crate::MQLONG,
519        Reason: &mut crate::MQLONG,
520    ) {
521        unsafe {
522            crate::mqai::mqInquireItemInfo(
523                Bag,
524                Selector,
525                ItemIndex,
526                OutSelector,
527                ItemType,
528                CompCode,
529                Reason,
530            );
531        }
532    }
533    unsafe fn mqInquireString(
534        &self,
535        Bag: crate::mqai::MQHBAG,
536        Selector: crate::MQLONG,
537        ItemIndex: crate::MQLONG,
538        BufferLength: crate::MQLONG,
539        Buffer: crate::PMQCHAR,
540        StringLength: &mut crate::MQLONG,
541        CodedCharSetId: &mut crate::MQLONG,
542        CompCode: &mut crate::MQLONG,
543        Reason: &mut crate::MQLONG,
544    ) {
545        unsafe {
546            crate::mqai::mqInquireString(
547                Bag,
548                Selector,
549                ItemIndex,
550                BufferLength,
551                Buffer,
552                StringLength,
553                CodedCharSetId,
554                CompCode,
555                Reason,
556            );
557        }
558    }
559    unsafe fn mqInquireStringFilter(
560        &self,
561        Bag: crate::mqai::MQHBAG,
562        Selector: crate::MQLONG,
563        ItemIndex: crate::MQLONG,
564        BufferLength: crate::MQLONG,
565        Buffer: crate::PMQCHAR,
566        StringLength: &mut crate::MQLONG,
567        CodedCharSetId: &mut crate::MQLONG,
568        Operator: &mut crate::MQLONG,
569        CompCode: &mut crate::MQLONG,
570        Reason: &mut crate::MQLONG,
571    ) {
572        unsafe {
573            crate::mqai::mqInquireStringFilter(
574                Bag,
575                Selector,
576                ItemIndex,
577                BufferLength,
578                Buffer,
579                StringLength,
580                CodedCharSetId,
581                Operator,
582                CompCode,
583                Reason,
584            );
585        }
586    }
587    unsafe fn mqPad(
588        &self,
589        String: crate::PMQCHAR,
590        BufferLength: crate::MQLONG,
591        Buffer: crate::PMQCHAR,
592        CompCode: &mut crate::MQLONG,
593        Reason: &mut crate::MQLONG,
594    ) {
595        unsafe {
596            crate::mqai::mqPad(String, BufferLength, Buffer, CompCode, Reason);
597        }
598    }
599    unsafe fn mqPutBag(
600        &self,
601        Hconn: crate::MQHCONN,
602        Hobj: crate::MQHOBJ,
603        MsgDesc: crate::PMQVOID,
604        PutMsgOpts: &mut crate::MQPMO,
605        Bag: crate::mqai::MQHBAG,
606        CompCode: &mut crate::MQLONG,
607        Reason: &mut crate::MQLONG,
608    ) {
609        unsafe {
610            crate::mqai::mqPutBag(
611                Hconn,
612                Hobj,
613                MsgDesc,
614                PutMsgOpts,
615                Bag,
616                CompCode,
617                Reason,
618            );
619        }
620    }
621    unsafe fn mqSetByteString(
622        &self,
623        Bag: crate::mqai::MQHBAG,
624        Selector: crate::MQLONG,
625        ItemIndex: crate::MQLONG,
626        BufferLength: crate::MQLONG,
627        Buffer: crate::PMQBYTE,
628        CompCode: &mut crate::MQLONG,
629        Reason: &mut crate::MQLONG,
630    ) {
631        unsafe {
632            crate::mqai::mqSetByteString(
633                Bag,
634                Selector,
635                ItemIndex,
636                BufferLength,
637                Buffer,
638                CompCode,
639                Reason,
640            );
641        }
642    }
643    unsafe fn mqSetByteStringFilter(
644        &self,
645        Bag: crate::mqai::MQHBAG,
646        Selector: crate::MQLONG,
647        ItemIndex: crate::MQLONG,
648        BufferLength: crate::MQLONG,
649        Buffer: crate::PMQBYTE,
650        Operator: crate::MQLONG,
651        CompCode: &mut crate::MQLONG,
652        Reason: &mut crate::MQLONG,
653    ) {
654        unsafe {
655            crate::mqai::mqSetByteStringFilter(
656                Bag,
657                Selector,
658                ItemIndex,
659                BufferLength,
660                Buffer,
661                Operator,
662                CompCode,
663                Reason,
664            );
665        }
666    }
667    unsafe fn mqSetInteger(
668        &self,
669        Bag: crate::mqai::MQHBAG,
670        Selector: crate::MQLONG,
671        ItemIndex: crate::MQLONG,
672        ItemValue: crate::MQLONG,
673        CompCode: &mut crate::MQLONG,
674        Reason: &mut crate::MQLONG,
675    ) {
676        unsafe {
677            crate::mqai::mqSetInteger(
678                Bag,
679                Selector,
680                ItemIndex,
681                ItemValue,
682                CompCode,
683                Reason,
684            );
685        }
686    }
687    unsafe fn mqSetInteger64(
688        &self,
689        Bag: crate::mqai::MQHBAG,
690        Selector: crate::MQLONG,
691        ItemIndex: crate::MQLONG,
692        ItemValue: crate::MQINT64,
693        CompCode: &mut crate::MQLONG,
694        Reason: &mut crate::MQLONG,
695    ) {
696        unsafe {
697            crate::mqai::mqSetInteger64(
698                Bag,
699                Selector,
700                ItemIndex,
701                ItemValue,
702                CompCode,
703                Reason,
704            );
705        }
706    }
707    unsafe fn mqSetIntegerFilter(
708        &self,
709        Bag: crate::mqai::MQHBAG,
710        Selector: crate::MQLONG,
711        ItemIndex: crate::MQLONG,
712        ItemValue: crate::MQLONG,
713        Operator: crate::MQLONG,
714        CompCode: &mut crate::MQLONG,
715        Reason: &mut crate::MQLONG,
716    ) {
717        unsafe {
718            crate::mqai::mqSetIntegerFilter(
719                Bag,
720                Selector,
721                ItemIndex,
722                ItemValue,
723                Operator,
724                CompCode,
725                Reason,
726            );
727        }
728    }
729    unsafe fn mqSetString(
730        &self,
731        Bag: crate::mqai::MQHBAG,
732        Selector: crate::MQLONG,
733        ItemIndex: crate::MQLONG,
734        BufferLength: crate::MQLONG,
735        Buffer: crate::PMQCHAR,
736        CompCode: &mut crate::MQLONG,
737        Reason: &mut crate::MQLONG,
738    ) {
739        unsafe {
740            crate::mqai::mqSetString(
741                Bag,
742                Selector,
743                ItemIndex,
744                BufferLength,
745                Buffer,
746                CompCode,
747                Reason,
748            );
749        }
750    }
751    unsafe fn mqSetStringFilter(
752        &self,
753        Bag: crate::mqai::MQHBAG,
754        Selector: crate::MQLONG,
755        ItemIndex: crate::MQLONG,
756        BufferLength: crate::MQLONG,
757        Buffer: crate::PMQCHAR,
758        Operator: crate::MQLONG,
759        CompCode: &mut crate::MQLONG,
760        Reason: &mut crate::MQLONG,
761    ) {
762        unsafe {
763            crate::mqai::mqSetStringFilter(
764                Bag,
765                Selector,
766                ItemIndex,
767                BufferLength,
768                Buffer,
769                Operator,
770                CompCode,
771                Reason,
772            );
773        }
774    }
775    unsafe fn mqTrim(
776        &self,
777        BufferLength: crate::MQLONG,
778        Buffer: crate::PMQCHAR,
779        String: crate::PMQCHAR,
780        CompCode: &mut crate::MQLONG,
781        Reason: &mut crate::MQLONG,
782    ) {
783        unsafe {
784            crate::mqai::mqTrim(BufferLength, Buffer, String, CompCode, Reason);
785        }
786    }
787    unsafe fn mqTruncateBag(
788        &self,
789        Bag: crate::mqai::MQHBAG,
790        ItemCount: crate::MQLONG,
791        CompCode: &mut crate::MQLONG,
792        Reason: &mut crate::MQLONG,
793    ) {
794        unsafe {
795            crate::mqai::mqTruncateBag(Bag, ItemCount, CompCode, Reason);
796        }
797    }
798}
799impl crate::Mqi for LinkedMq {
800    unsafe fn MQBACK(
801        &self,
802        Hconn: crate::MQHCONN,
803        CompCode: &mut crate::MQLONG,
804        Reason: &mut crate::MQLONG,
805    ) {
806        unsafe {
807            crate::MQBACK(Hconn, CompCode, Reason);
808        }
809    }
810    unsafe fn MQBEGIN(
811        &self,
812        Hconn: crate::MQHCONN,
813        BeginOptions: Option<&mut crate::MQBO>,
814        CompCode: &mut crate::MQLONG,
815        Reason: &mut crate::MQLONG,
816    ) {
817        unsafe {
818            crate::MQBEGIN(Hconn, BeginOptions, CompCode, Reason);
819        }
820    }
821    unsafe fn MQBUFMH(
822        &self,
823        Hconn: crate::MQHCONN,
824        Hmsg: crate::MQHMSG,
825        BufMsgHOpts: &crate::MQBMHO,
826        MsgDesc: crate::PMQVOID,
827        BufferLength: crate::MQLONG,
828        Buffer: crate::PMQVOID,
829        DataLength: &mut crate::MQLONG,
830        CompCode: &mut crate::MQLONG,
831        Reason: &mut crate::MQLONG,
832    ) {
833        unsafe {
834            crate::MQBUFMH(
835                Hconn,
836                Hmsg,
837                BufMsgHOpts,
838                MsgDesc,
839                BufferLength,
840                Buffer,
841                DataLength,
842                CompCode,
843                Reason,
844            );
845        }
846    }
847    unsafe fn MQCB(
848        &self,
849        Hconn: crate::MQHCONN,
850        Operation: crate::MQLONG,
851        CallbackDesc: Option<&crate::MQCBD>,
852        Hobj: crate::MQHOBJ,
853        MsgDesc: crate::PMQVOID,
854        GetMsgOpts: Option<&crate::MQGMO>,
855        CompCode: &mut crate::MQLONG,
856        Reason: &mut crate::MQLONG,
857    ) {
858        unsafe {
859            crate::MQCB(
860                Hconn,
861                Operation,
862                CallbackDesc,
863                Hobj,
864                MsgDesc,
865                GetMsgOpts,
866                CompCode,
867                Reason,
868            );
869        }
870    }
871    unsafe fn MQCLOSE(
872        &self,
873        Hconn: crate::MQHCONN,
874        Hobj: &mut crate::MQHOBJ,
875        Options: crate::MQLONG,
876        CompCode: &mut crate::MQLONG,
877        Reason: &mut crate::MQLONG,
878    ) {
879        unsafe {
880            crate::MQCLOSE(Hconn, Hobj, Options, CompCode, Reason);
881        }
882    }
883    unsafe fn MQCMIT(
884        &self,
885        Hconn: crate::MQHCONN,
886        CompCode: &mut crate::MQLONG,
887        Reason: &mut crate::MQLONG,
888    ) {
889        unsafe {
890            crate::MQCMIT(Hconn, CompCode, Reason);
891        }
892    }
893    unsafe fn MQCONN(
894        &self,
895        QMgrName: &crate::MQCHAR48,
896        Hconn: &mut crate::MQHCONN,
897        CompCode: &mut crate::MQLONG,
898        Reason: &mut crate::MQLONG,
899    ) {
900        unsafe {
901            crate::MQCONN(QMgrName, Hconn, CompCode, Reason);
902        }
903    }
904    unsafe fn MQCONNX(
905        &self,
906        QMgrName: &crate::MQCHAR48,
907        ConnectOpts: &mut crate::MQCNO,
908        Hconn: &mut crate::MQHCONN,
909        CompCode: &mut crate::MQLONG,
910        Reason: &mut crate::MQLONG,
911    ) {
912        unsafe {
913            crate::MQCONNX(QMgrName, ConnectOpts, Hconn, CompCode, Reason);
914        }
915    }
916    unsafe fn MQCRTMH(
917        &self,
918        Hconn: crate::MQHCONN,
919        CrtMsgHOpts: &crate::MQCMHO,
920        Hmsg: &mut crate::MQHMSG,
921        CompCode: &mut crate::MQLONG,
922        Reason: &mut crate::MQLONG,
923    ) {
924        unsafe {
925            crate::MQCRTMH(Hconn, CrtMsgHOpts, Hmsg, CompCode, Reason);
926        }
927    }
928    unsafe fn MQCTL(
929        &self,
930        Hconn: crate::MQHCONN,
931        Operation: crate::MQLONG,
932        ControlOpts: &crate::MQCTLO,
933        CompCode: &mut crate::MQLONG,
934        Reason: &mut crate::MQLONG,
935    ) {
936        unsafe {
937            crate::MQCTL(Hconn, Operation, ControlOpts, CompCode, Reason);
938        }
939    }
940    unsafe fn MQDISC(
941        &self,
942        Hconn: &mut crate::MQHCONN,
943        CompCode: &mut crate::MQLONG,
944        Reason: &mut crate::MQLONG,
945    ) {
946        unsafe {
947            crate::MQDISC(Hconn, CompCode, Reason);
948        }
949    }
950    unsafe fn MQDLTMH(
951        &self,
952        Hconn: crate::MQHCONN,
953        Hmsg: &mut crate::MQHMSG,
954        DltMsgHOpts: &crate::MQDMHO,
955        CompCode: &mut crate::MQLONG,
956        Reason: &mut crate::MQLONG,
957    ) {
958        unsafe {
959            crate::MQDLTMH(Hconn, Hmsg, DltMsgHOpts, CompCode, Reason);
960        }
961    }
962    unsafe fn MQDLTMP(
963        &self,
964        Hconn: crate::MQHCONN,
965        Hmsg: crate::MQHMSG,
966        DltPropOpts: &crate::MQDMPO,
967        Name: &crate::MQCHARV,
968        CompCode: &mut crate::MQLONG,
969        Reason: &mut crate::MQLONG,
970    ) {
971        unsafe {
972            crate::MQDLTMP(Hconn, Hmsg, DltPropOpts, Name, CompCode, Reason);
973        }
974    }
975    unsafe fn MQGET(
976        &self,
977        Hconn: crate::MQHCONN,
978        Hobj: crate::MQHOBJ,
979        MsgDesc: crate::PMQVOID,
980        GetMsgOpts: &mut crate::MQGMO,
981        BufferLength: crate::MQLONG,
982        Buffer: crate::PMQVOID,
983        DataLength: &mut crate::MQLONG,
984        CompCode: &mut crate::MQLONG,
985        Reason: &mut crate::MQLONG,
986    ) {
987        unsafe {
988            crate::MQGET(
989                Hconn,
990                Hobj,
991                MsgDesc,
992                GetMsgOpts,
993                BufferLength,
994                Buffer,
995                DataLength,
996                CompCode,
997                Reason,
998            );
999        }
1000    }
1001    unsafe fn MQINQ(
1002        &self,
1003        Hconn: crate::MQHCONN,
1004        Hobj: crate::MQHOBJ,
1005        SelectorCount: crate::MQLONG,
1006        Selectors: crate::PMQLONG,
1007        IntAttrCount: crate::MQLONG,
1008        IntAttrs: crate::PMQLONG,
1009        CharAttrLength: crate::MQLONG,
1010        CharAttrs: crate::PMQCHAR,
1011        CompCode: &mut crate::MQLONG,
1012        Reason: &mut crate::MQLONG,
1013    ) {
1014        unsafe {
1015            crate::MQINQ(
1016                Hconn,
1017                Hobj,
1018                SelectorCount,
1019                Selectors,
1020                IntAttrCount,
1021                IntAttrs,
1022                CharAttrLength,
1023                CharAttrs,
1024                CompCode,
1025                Reason,
1026            );
1027        }
1028    }
1029    unsafe fn MQINQMP(
1030        &self,
1031        Hconn: crate::MQHCONN,
1032        Hmsg: crate::MQHMSG,
1033        InqPropOpts: &mut crate::MQIMPO,
1034        Name: &crate::MQCHARV,
1035        PropDesc: &mut crate::MQPD,
1036        Type: &mut crate::MQLONG,
1037        ValueLength: crate::MQLONG,
1038        Value: crate::PMQVOID,
1039        DataLength: &mut crate::MQLONG,
1040        CompCode: &mut crate::MQLONG,
1041        Reason: &mut crate::MQLONG,
1042    ) {
1043        unsafe {
1044            crate::MQINQMP(
1045                Hconn,
1046                Hmsg,
1047                InqPropOpts,
1048                Name,
1049                PropDesc,
1050                Type,
1051                ValueLength,
1052                Value,
1053                DataLength,
1054                CompCode,
1055                Reason,
1056            );
1057        }
1058    }
1059    unsafe fn MQMHBUF(
1060        &self,
1061        Hconn: crate::MQHCONN,
1062        Hmsg: crate::MQHMSG,
1063        MsgHBufOpts: &crate::MQMHBO,
1064        Name: &crate::MQCHARV,
1065        MsgDesc: crate::PMQVOID,
1066        BufferLength: crate::MQLONG,
1067        Buffer: crate::PMQVOID,
1068        DataLength: &mut crate::MQLONG,
1069        CompCode: &mut crate::MQLONG,
1070        Reason: &mut crate::MQLONG,
1071    ) {
1072        unsafe {
1073            crate::MQMHBUF(
1074                Hconn,
1075                Hmsg,
1076                MsgHBufOpts,
1077                Name,
1078                MsgDesc,
1079                BufferLength,
1080                Buffer,
1081                DataLength,
1082                CompCode,
1083                Reason,
1084            );
1085        }
1086    }
1087    unsafe fn MQOPEN(
1088        &self,
1089        Hconn: crate::MQHCONN,
1090        ObjDesc: &mut crate::MQOD,
1091        Options: crate::MQLONG,
1092        Hobj: &mut crate::MQHOBJ,
1093        CompCode: &mut crate::MQLONG,
1094        Reason: &mut crate::MQLONG,
1095    ) {
1096        unsafe {
1097            crate::MQOPEN(Hconn, ObjDesc, Options, Hobj, CompCode, Reason);
1098        }
1099    }
1100    unsafe fn MQPUT(
1101        &self,
1102        Hconn: crate::MQHCONN,
1103        Hobj: crate::MQHOBJ,
1104        MsgDesc: crate::PMQVOID,
1105        PutMsgOpts: &mut crate::MQPMO,
1106        BufferLength: crate::MQLONG,
1107        Buffer: crate::PMQVOID,
1108        CompCode: &mut crate::MQLONG,
1109        Reason: &mut crate::MQLONG,
1110    ) {
1111        unsafe {
1112            crate::MQPUT(
1113                Hconn,
1114                Hobj,
1115                MsgDesc,
1116                PutMsgOpts,
1117                BufferLength,
1118                Buffer,
1119                CompCode,
1120                Reason,
1121            );
1122        }
1123    }
1124    unsafe fn MQPUT1(
1125        &self,
1126        Hconn: crate::MQHCONN,
1127        ObjDesc: &mut crate::MQOD,
1128        MsgDesc: crate::PMQVOID,
1129        PutMsgOpts: &mut crate::MQPMO,
1130        BufferLength: crate::MQLONG,
1131        Buffer: crate::PMQVOID,
1132        CompCode: &mut crate::MQLONG,
1133        Reason: &mut crate::MQLONG,
1134    ) {
1135        unsafe {
1136            crate::MQPUT1(
1137                Hconn,
1138                ObjDesc,
1139                MsgDesc,
1140                PutMsgOpts,
1141                BufferLength,
1142                Buffer,
1143                CompCode,
1144                Reason,
1145            );
1146        }
1147    }
1148    unsafe fn MQSET(
1149        &self,
1150        Hconn: crate::MQHCONN,
1151        Hobj: crate::MQHOBJ,
1152        SelectorCount: crate::MQLONG,
1153        Selectors: crate::PMQLONG,
1154        IntAttrCount: crate::MQLONG,
1155        IntAttrs: crate::PMQLONG,
1156        CharAttrLength: crate::MQLONG,
1157        CharAttrs: crate::PMQCHAR,
1158        CompCode: &mut crate::MQLONG,
1159        Reason: &mut crate::MQLONG,
1160    ) {
1161        unsafe {
1162            crate::MQSET(
1163                Hconn,
1164                Hobj,
1165                SelectorCount,
1166                Selectors,
1167                IntAttrCount,
1168                IntAttrs,
1169                CharAttrLength,
1170                CharAttrs,
1171                CompCode,
1172                Reason,
1173            );
1174        }
1175    }
1176    unsafe fn MQSETMP(
1177        &self,
1178        Hconn: crate::MQHCONN,
1179        Hmsg: crate::MQHMSG,
1180        SetPropOpts: &crate::MQSMPO,
1181        Name: &crate::MQCHARV,
1182        PropDesc: &mut crate::MQPD,
1183        Type: crate::MQLONG,
1184        ValueLength: crate::MQLONG,
1185        Value: crate::PMQVOID,
1186        CompCode: &mut crate::MQLONG,
1187        Reason: &mut crate::MQLONG,
1188    ) {
1189        unsafe {
1190            crate::MQSETMP(
1191                Hconn,
1192                Hmsg,
1193                SetPropOpts,
1194                Name,
1195                PropDesc,
1196                Type,
1197                ValueLength,
1198                Value,
1199                CompCode,
1200                Reason,
1201            );
1202        }
1203    }
1204    unsafe fn MQSTAT(
1205        &self,
1206        Hconn: crate::MQHCONN,
1207        Type: crate::MQLONG,
1208        Status: &mut crate::MQSTS,
1209        CompCode: &mut crate::MQLONG,
1210        Reason: &mut crate::MQLONG,
1211    ) {
1212        unsafe {
1213            crate::MQSTAT(Hconn, Type, Status, CompCode, Reason);
1214        }
1215    }
1216    unsafe fn MQSUB(
1217        &self,
1218        Hconn: crate::MQHCONN,
1219        SubDesc: &mut crate::MQSD,
1220        Hobj: Option<&mut crate::MQHOBJ>,
1221        Hsub: &mut crate::MQHOBJ,
1222        CompCode: &mut crate::MQLONG,
1223        Reason: &mut crate::MQLONG,
1224    ) {
1225        unsafe {
1226            crate::MQSUB(Hconn, SubDesc, Hobj, Hsub, CompCode, Reason);
1227        }
1228    }
1229    unsafe fn MQSUBRQ(
1230        &self,
1231        Hconn: crate::MQHCONN,
1232        Hsub: crate::MQHOBJ,
1233        Action: crate::MQLONG,
1234        SubRqOpts: Option<&mut crate::MQSRO>,
1235        CompCode: &mut crate::MQLONG,
1236        Reason: &mut crate::MQLONG,
1237    ) {
1238        unsafe {
1239            crate::MQSUBRQ(Hconn, Hsub, Action, SubRqOpts, CompCode, Reason);
1240        }
1241    }
1242    unsafe fn MQXCNVC(
1243        &self,
1244        Hconn: crate::MQHCONN,
1245        Options: crate::MQLONG,
1246        SourceCCSID: crate::MQLONG,
1247        SourceLength: crate::MQLONG,
1248        SourceBuffer: crate::PMQCHAR,
1249        TargetCCSID: crate::MQLONG,
1250        TargetLength: crate::MQLONG,
1251        TargetBuffer: crate::PMQCHAR,
1252        DataLength: &mut crate::MQLONG,
1253        CompCode: &mut crate::MQLONG,
1254        Reason: &mut crate::MQLONG,
1255    ) {
1256        unsafe {
1257            crate::MQXCNVC(
1258                Hconn,
1259                Options,
1260                SourceCCSID,
1261                SourceLength,
1262                SourceBuffer,
1263                TargetCCSID,
1264                TargetLength,
1265                TargetBuffer,
1266                DataLength,
1267                CompCode,
1268                Reason,
1269            );
1270        }
1271    }
1272}