libmqm_sys/pregen/x86_64-linux/mqai.rs
1/* Generated with MQ client version 9.4.3.0 */
2
3pub type MQHBAG = crate::MQLONG;
4pub type PMQHBAG = *mut MQHBAG;
5pub const MQCBO_NONE: crate::MQLONG = 0;
6pub const MQCBO_USER_BAG: crate::MQLONG = 0;
7pub const MQCBO_ADMIN_BAG: crate::MQLONG = 1;
8pub const MQCBO_COMMAND_BAG: crate::MQLONG = 16;
9pub const MQCBO_SYSTEM_BAG: crate::MQLONG = 32;
10pub const MQCBO_GROUP_BAG: crate::MQLONG = 64;
11pub const MQCBO_LIST_FORM_ALLOWED: crate::MQLONG = 2;
12pub const MQCBO_LIST_FORM_INHIBITED: crate::MQLONG = 0;
13pub const MQCBO_REORDER_AS_REQUIRED: crate::MQLONG = 4;
14pub const MQCBO_DO_NOT_REORDER: crate::MQLONG = 0;
15pub const MQCBO_CHECK_SELECTORS: crate::MQLONG = 8;
16pub const MQCBO_DO_NOT_CHECK_SELECTORS: crate::MQLONG = 0;
17pub const MQBL_NULL_TERMINATED: crate::MQLONG = -1;
18pub const MQITEM_INTEGER: crate::MQLONG = 1;
19pub const MQITEM_STRING: crate::MQLONG = 2;
20pub const MQITEM_BAG: crate::MQLONG = 3;
21pub const MQITEM_BYTE_STRING: crate::MQLONG = 4;
22pub const MQITEM_INTEGER_FILTER: crate::MQLONG = 5;
23pub const MQITEM_STRING_FILTER: crate::MQLONG = 6;
24pub const MQITEM_INTEGER64: crate::MQLONG = 7;
25pub const MQITEM_BYTE_STRING_FILTER: crate::MQLONG = 8;
26pub const MQIT_INTEGER: crate::MQLONG = 1;
27pub const MQIT_STRING: crate::MQLONG = 2;
28pub const MQIT_BAG: crate::MQLONG = 3;
29pub const MQHA_FIRST: crate::MQLONG = 4001;
30pub const MQHA_BAG_HANDLE: crate::MQLONG = 4001;
31pub const MQHA_LAST_USED: crate::MQLONG = 4001;
32pub const MQHA_LAST: crate::MQLONG = 6000;
33pub const MQOA_FIRST: crate::MQLONG = 1;
34pub const MQOA_LAST: crate::MQLONG = 9000;
35pub const MQIASY_FIRST: crate::MQLONG = -1;
36pub const MQIASY_CODED_CHAR_SET_ID: crate::MQLONG = -1;
37pub const MQIASY_TYPE: crate::MQLONG = -2;
38pub const MQIASY_COMMAND: crate::MQLONG = -3;
39pub const MQIASY_MSG_SEQ_NUMBER: crate::MQLONG = -4;
40pub const MQIASY_CONTROL: crate::MQLONG = -5;
41pub const MQIASY_COMP_CODE: crate::MQLONG = -6;
42pub const MQIASY_REASON: crate::MQLONG = -7;
43pub const MQIASY_BAG_OPTIONS: crate::MQLONG = -8;
44pub const MQIASY_VERSION: crate::MQLONG = -9;
45pub const MQIASY_LAST_USED: crate::MQLONG = -9;
46pub const MQIASY_LAST: crate::MQLONG = -2000;
47pub const MQSEL_ANY_SELECTOR: crate::MQLONG = -30001;
48pub const MQSEL_ANY_USER_SELECTOR: crate::MQLONG = -30002;
49pub const MQSEL_ANY_SYSTEM_SELECTOR: crate::MQLONG = -30003;
50pub const MQSEL_ALL_SELECTORS: crate::MQLONG = -30001;
51pub const MQSEL_ALL_USER_SELECTORS: crate::MQLONG = -30002;
52pub const MQSEL_ALL_SYSTEM_SELECTORS: crate::MQLONG = -30003;
53pub const MQIND_NONE: crate::MQLONG = -1;
54pub const MQIND_ALL: crate::MQLONG = -2;
55pub const MQHB_UNUSABLE_HBAG: crate::MQLONG = -1;
56pub const MQHB_NONE: crate::MQLONG = -2;
57unsafe extern "C" {
58 /// Add Nested Bag to Bag
59 ///
60 /// # Arguments
61 /// * `Bag`: Bag handle
62 /// * `Selector`: Item selector
63 /// * `ItemValue`: Item value
64 /// * `CompCode` (Output): Completion code
65 /// * `Reason` (Output): Reason code qualifying `CompCode`
66 ///
67 /// # References
68 /// * [IBM `mqAddBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089150_.html)
69 pub fn mqAddBag(
70 Bag: MQHBAG,
71 Selector: crate::MQLONG,
72 ItemValue: MQHBAG,
73 CompCode: &mut crate::MQLONG,
74 Reason: &mut crate::MQLONG,
75 );
76 /// Add Byte String to Bag
77 ///
78 /// # Arguments
79 /// * `Bag`: Bag handle
80 /// * `Selector`: Item selector
81 /// * `BufferLength`: Length of buffer
82 /// * `Buffer`: Buffer containing item value
83 /// * `CompCode` (Output): Completion code
84 /// * `Reason` (Output): Reason code qualifying `CompCode`
85 ///
86 /// # References
87 /// * [IBM `mqAddByteString` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089160_.html)
88 pub fn mqAddByteString(
89 Bag: MQHBAG,
90 Selector: crate::MQLONG,
91 BufferLength: crate::MQLONG,
92 Buffer: crate::PMQBYTE,
93 CompCode: &mut crate::MQLONG,
94 Reason: &mut crate::MQLONG,
95 );
96 /// Add Byte String Filter to Bag
97 ///
98 /// # Arguments
99 /// * `Bag`: Bag handle
100 /// * `Selector`: Item selector
101 /// * `BufferLength`: Length of buffer
102 /// * `Buffer`: Buffer containing item value
103 /// * `Operator`: Item operator
104 /// * `CompCode` (Output): Completion code
105 /// * `Reason` (Output): Reason code qualifying `CompCode`
106 ///
107 /// # References
108 /// * [IBM `mqAddByteStringFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089170_.html)
109 pub fn mqAddByteStringFilter(
110 Bag: MQHBAG,
111 Selector: crate::MQLONG,
112 BufferLength: crate::MQLONG,
113 Buffer: crate::PMQBYTE,
114 Operator: crate::MQLONG,
115 CompCode: &mut crate::MQLONG,
116 Reason: &mut crate::MQLONG,
117 );
118 /// Add an Inquiry Item to Bag
119 ///
120 /// # Arguments
121 /// * `Bag`: Bag handle
122 /// * `Selector`: Attribute selector
123 /// * `CompCode` (Output): Completion code
124 /// * `Reason` (Output): Reason code qualifying `CompCode`
125 ///
126 /// # References
127 /// * [IBM `mqAddInquiry` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089180_.html)
128 pub fn mqAddInquiry(
129 Bag: MQHBAG,
130 Selector: crate::MQLONG,
131 CompCode: &mut crate::MQLONG,
132 Reason: &mut crate::MQLONG,
133 );
134 /// Add Integer to Bag
135 ///
136 /// # Arguments
137 /// * `Bag`: Bag handle
138 /// * `Selector`: Item selector
139 /// * `ItemValue`: Item value
140 /// * `CompCode` (Output): Completion code
141 /// * `Reason` (Output): Reason code qualifying `CompCode`
142 ///
143 /// # References
144 /// * [IBM `mqAddInteger` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089190_.html)
145 pub fn mqAddInteger(
146 Bag: MQHBAG,
147 Selector: crate::MQLONG,
148 ItemValue: crate::MQLONG,
149 CompCode: &mut crate::MQLONG,
150 Reason: &mut crate::MQLONG,
151 );
152 /// Add 64-bit Integer to Bag
153 ///
154 /// # Arguments
155 /// * `Bag`: Bag handle
156 /// * `Selector`: Item selector
157 /// * `ItemValue`: Item value
158 /// * `CompCode` (Output): Completion code
159 /// * `Reason` (Output): Reason code qualifying `CompCode`
160 ///
161 /// # References
162 /// * [IBM `mqAddInteger64` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089200_.html)
163 pub fn mqAddInteger64(
164 Bag: MQHBAG,
165 Selector: crate::MQLONG,
166 ItemValue: crate::MQINT64,
167 CompCode: &mut crate::MQLONG,
168 Reason: &mut crate::MQLONG,
169 );
170 /// Add Integer Filter to Bag
171 ///
172 /// # Arguments
173 /// * `Bag`: Bag handle
174 /// * `Selector`: Item selector
175 /// * `ItemValue`: Item value
176 /// * `Operator`: Item operator
177 /// * `CompCode` (Output): Completion code
178 /// * `Reason` (Output): Reason code qualifying `CompCode`
179 ///
180 /// # References
181 /// * [IBM `mqAddIntegerFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089210_.html)
182 pub fn mqAddIntegerFilter(
183 Bag: MQHBAG,
184 Selector: crate::MQLONG,
185 ItemValue: crate::MQLONG,
186 Operator: crate::MQLONG,
187 CompCode: &mut crate::MQLONG,
188 Reason: &mut crate::MQLONG,
189 );
190 /// Add String to Bag
191 ///
192 /// # Arguments
193 /// * `Bag`: Bag handle
194 /// * `Selector`: Item selector
195 /// * `BufferLength`: Length of buffer
196 /// * `Buffer`: Buffer containing item value
197 /// * `CompCode` (Output): Completion code
198 /// * `Reason` (Output): Reason code qualifying `CompCode`
199 ///
200 /// # References
201 /// * [IBM `mqAddString` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089220_.html)
202 pub fn mqAddString(
203 Bag: MQHBAG,
204 Selector: crate::MQLONG,
205 BufferLength: crate::MQLONG,
206 Buffer: crate::PMQCHAR,
207 CompCode: &mut crate::MQLONG,
208 Reason: &mut crate::MQLONG,
209 );
210 /// Add String Filter to Bag
211 ///
212 /// # Arguments
213 /// * `Bag`: Bag handle
214 /// * `Selector`: Item selector
215 /// * `BufferLength`: Length of buffer
216 /// * `Buffer`: Buffer containing item value
217 /// * `Operator`: Item operator
218 /// * `CompCode` (Output): Completion code
219 /// * `Reason` (Output): Reason code qualifying `CompCode`
220 ///
221 /// # References
222 /// * [IBM `mqAddStringFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089230_.html)
223 pub fn mqAddStringFilter(
224 Bag: MQHBAG,
225 Selector: crate::MQLONG,
226 BufferLength: crate::MQLONG,
227 Buffer: crate::PMQCHAR,
228 Operator: crate::MQLONG,
229 CompCode: &mut crate::MQLONG,
230 Reason: &mut crate::MQLONG,
231 );
232 /// Convert Bag to PCF
233 ///
234 /// # Arguments
235 /// * `OptionsBag`: Handle of options bag
236 /// * `DataBag`: Handle of data bag
237 /// * `BufferLength`: Length of buffer
238 /// * `Buffer` (Output): Buffer to contain PCF
239 /// * `DataLength` (Output): Length of PCF returned in buffer
240 /// * `CompCode` (Output): Completion code
241 /// * `Reason` (Output): Reason code qualifying `CompCode`
242 ///
243 /// # References
244 /// * [IBM `mqBagToBuffer` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089240_.html)
245 pub fn mqBagToBuffer(
246 OptionsBag: MQHBAG,
247 DataBag: MQHBAG,
248 BufferLength: crate::MQLONG,
249 Buffer: crate::PMQVOID,
250 DataLength: &mut crate::MQLONG,
251 CompCode: &mut crate::MQLONG,
252 Reason: &mut crate::MQLONG,
253 );
254 /// Convert PCF to Bag
255 ///
256 /// # Arguments
257 /// * `OptionsBag`: Handle of options bag
258 /// * `BufferLength`: Length of buffer
259 /// * `Buffer`: Buffer containing PCF
260 /// * `DataBag` (Input/Output): Handle of bag to contain data
261 /// * `CompCode` (Output): Completion code
262 /// * `Reason` (Output): Reason code qualifying `CompCode`
263 ///
264 /// # References
265 /// * [IBM `mqBufferToBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089250_.html)
266 pub fn mqBufferToBag(
267 OptionsBag: MQHBAG,
268 BufferLength: crate::MQLONG,
269 Buffer: crate::PMQVOID,
270 DataBag: MQHBAG,
271 CompCode: &mut crate::MQLONG,
272 Reason: &mut crate::MQLONG,
273 );
274 /// Delete All Items in Bag
275 ///
276 /// # Arguments
277 /// * `Bag`: Bag handle
278 /// * `CompCode` (Output): Completion code
279 /// * `Reason` (Output): Reason code qualifying `CompCode`
280 ///
281 /// # References
282 /// * [IBM `mqClearBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089260_.html)
283 pub fn mqClearBag(
284 Bag: MQHBAG,
285 CompCode: &mut crate::MQLONG,
286 Reason: &mut crate::MQLONG,
287 );
288 /// Count Items in Bag
289 ///
290 /// # Arguments
291 /// * `Bag`: Bag handle
292 /// * `Selector`: Item selector
293 /// * `ItemCount` (Output): Number of items
294 /// * `CompCode` (Output): Completion code
295 /// * `Reason` (Output): Reason code qualifying `CompCode`
296 ///
297 /// # References
298 /// * [IBM `mqCountItems` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089270_.html)
299 pub fn mqCountItems(
300 Bag: MQHBAG,
301 Selector: crate::MQLONG,
302 ItemCount: &mut crate::MQLONG,
303 CompCode: &mut crate::MQLONG,
304 Reason: &mut crate::MQLONG,
305 );
306 /// Create Bag
307 ///
308 /// # Arguments
309 /// * `Options`: Bag options
310 /// * `Bag` (Output): Handle of bag created
311 /// * `CompCode` (Output): Completion code
312 /// * `Reason` (Output): Reason code qualifying `CompCode`
313 ///
314 /// # References
315 /// * [IBM `mqCreateBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089280_.html)
316 pub fn mqCreateBag(
317 Options: crate::MQLONG,
318 Bag: &mut MQHBAG,
319 CompCode: &mut crate::MQLONG,
320 Reason: &mut crate::MQLONG,
321 );
322 /// Delete Bag
323 ///
324 /// # Arguments
325 /// * `Bag` (Input/Output): Bag handle
326 /// * `CompCode` (Output): Completion code
327 /// * `Reason` (Output): Reason code qualifying `CompCode`
328 ///
329 /// # References
330 /// * [IBM `mqDeleteBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089290_.html)
331 pub fn mqDeleteBag(
332 Bag: &mut MQHBAG,
333 CompCode: &mut crate::MQLONG,
334 Reason: &mut crate::MQLONG,
335 );
336 /// Delete Item in Bag
337 ///
338 /// # Arguments
339 /// * `Bag`: Bag handle
340 /// * `Selector`: Item selector
341 /// * `ItemIndex`: Item index
342 /// * `CompCode` (Output): Completion code
343 /// * `Reason` (Output): Reason code qualifying `CompCode`
344 ///
345 /// # References
346 /// * [IBM `mqDeleteItem` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089300_.html)
347 pub fn mqDeleteItem(
348 Bag: MQHBAG,
349 Selector: crate::MQLONG,
350 ItemIndex: crate::MQLONG,
351 CompCode: &mut crate::MQLONG,
352 Reason: &mut crate::MQLONG,
353 );
354 /// Send Admin Command and Receive Reponse
355 ///
356 /// # Arguments
357 /// * `Hconn`: Connection handle
358 /// * `Command`: Command identifier
359 /// * `OptionsBag`: Handle of options bag
360 /// * `AdminBag`: Handle of admin bag
361 /// * `ResponseBag`: Handle of response bag
362 /// * `AdminQ`: Handle of admin queue
363 /// * `ResponseQ`: Handle of response queue
364 /// * `CompCode` (Output): Completion code
365 /// * `Reason` (Output): Reason code qualifying `CompCode`
366 ///
367 /// # References
368 /// * [IBM `mqExecute` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089310_.html)
369 pub fn mqExecute(
370 Hconn: crate::MQHCONN,
371 Command: crate::MQLONG,
372 OptionsBag: MQHBAG,
373 AdminBag: MQHBAG,
374 ResponseBag: MQHBAG,
375 AdminQ: crate::MQHOBJ,
376 ResponseQ: crate::MQHOBJ,
377 CompCode: &mut crate::MQLONG,
378 Reason: &mut crate::MQLONG,
379 );
380 /// Receive PCF Message into Bag
381 ///
382 /// # Arguments
383 /// * `Hconn`: Connection handle
384 /// * `Hobj`: Queue handle
385 /// * `MsgDesc` (Input/Output): Message descriptor
386 /// * `GetMsgOpts` (Input/Output): Get-message options
387 /// * `Bag` (Input/Output): Handle of bag to contain message
388 /// * `CompCode` (Output): Completion code
389 /// * `Reason` (Output): Reason code qualifying `CompCode`
390 ///
391 /// # References
392 /// * [IBM `mqGetBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089320_.html)
393 pub fn mqGetBag(
394 Hconn: crate::MQHCONN,
395 Hobj: crate::MQHOBJ,
396 MsgDesc: crate::PMQVOID,
397 GetMsgOpts: &mut crate::MQGMO,
398 Bag: MQHBAG,
399 CompCode: &mut crate::MQLONG,
400 Reason: &mut crate::MQLONG,
401 );
402 /// Inquire Handle in Bag
403 ///
404 /// # Arguments
405 /// * `Bag`: Bag handle
406 /// * `Selector`: Item selector
407 /// * `ItemIndex`: Item index
408 /// * `ItemValue` (Output): Item value
409 /// * `CompCode` (Output): Completion code
410 /// * `Reason` (Output): Reason code qualifying `CompCode`
411 ///
412 /// # References
413 /// * [IBM `mqInquireBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089330_.html)
414 pub fn mqInquireBag(
415 Bag: MQHBAG,
416 Selector: crate::MQLONG,
417 ItemIndex: crate::MQLONG,
418 ItemValue: &mut MQHBAG,
419 CompCode: &mut crate::MQLONG,
420 Reason: &mut crate::MQLONG,
421 );
422 /// Inquire Byte String in Bag
423 ///
424 /// # Arguments
425 /// * `Bag`: Bag handle
426 /// * `Selector`: Item selector
427 /// * `ItemIndex`: Item index
428 /// * `BufferLength`: Length of buffer
429 /// * `Buffer` (Output): Buffer to contain string
430 /// * `ByteStringLength` (Output): Length of byte string returned
431 /// * `CompCode` (Output): Completion code
432 /// * `Reason` (Output): Reason code qualifying `CompCode`
433 ///
434 /// # References
435 /// * [IBM `mqInquireByteString` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089340_.html)
436 pub fn mqInquireByteString(
437 Bag: MQHBAG,
438 Selector: crate::MQLONG,
439 ItemIndex: crate::MQLONG,
440 BufferLength: crate::MQLONG,
441 Buffer: crate::PMQBYTE,
442 ByteStringLength: &mut crate::MQLONG,
443 CompCode: &mut crate::MQLONG,
444 Reason: &mut crate::MQLONG,
445 );
446 /// Inquire Byte String Filter in Bag
447 ///
448 /// # Arguments
449 /// * `Bag`: Bag handle
450 /// * `Selector`: Item selector
451 /// * `ItemIndex`: Item index
452 /// * `BufferLength`: Length of buffer
453 /// * `Buffer` (Output): Buffer to contain string
454 /// * `ByteStringLength` (Output): Length of byte string returned
455 /// * `Operator` (Output): Item operator
456 /// * `CompCode` (Output): Completion code
457 /// * `Reason` (Output): Reason code qualifying `CompCode`
458 ///
459 /// # References
460 /// * [IBM `mqInquireByteStringFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089350_.html)
461 pub fn mqInquireByteStringFilter(
462 Bag: MQHBAG,
463 Selector: crate::MQLONG,
464 ItemIndex: crate::MQLONG,
465 BufferLength: crate::MQLONG,
466 Buffer: crate::PMQBYTE,
467 ByteStringLength: &mut crate::MQLONG,
468 Operator: &mut crate::MQLONG,
469 CompCode: &mut crate::MQLONG,
470 Reason: &mut crate::MQLONG,
471 );
472 /// Inquire Integer in Bag
473 ///
474 /// # Arguments
475 /// * `Bag`: Bag handle
476 /// * `Selector`: Item selector
477 /// * `ItemIndex`: Item index
478 /// * `ItemValue` (Output): Item value
479 /// * `CompCode` (Output): Completion code
480 /// * `Reason` (Output): Reason code qualifying `CompCode`
481 ///
482 /// # References
483 /// * [IBM `mqInquireInteger` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089360_.html)
484 pub fn mqInquireInteger(
485 Bag: MQHBAG,
486 Selector: crate::MQLONG,
487 ItemIndex: crate::MQLONG,
488 ItemValue: &mut crate::MQLONG,
489 CompCode: &mut crate::MQLONG,
490 Reason: &mut crate::MQLONG,
491 );
492 /// Inquire 64-bit Integer in Bag
493 ///
494 /// # Arguments
495 /// * `Bag`: Bag handle
496 /// * `Selector`: Item selector
497 /// * `ItemIndex`: Item index
498 /// * `ItemValue` (Output): Item value
499 /// * `CompCode` (Output): Completion code
500 /// * `Reason` (Output): Reason code qualifying `CompCode`
501 ///
502 /// # References
503 /// * [IBM `mqInquireInteger64` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089370_.html)
504 pub fn mqInquireInteger64(
505 Bag: MQHBAG,
506 Selector: crate::MQLONG,
507 ItemIndex: crate::MQLONG,
508 ItemValue: &mut crate::MQINT64,
509 CompCode: &mut crate::MQLONG,
510 Reason: &mut crate::MQLONG,
511 );
512 /// Inquire Integer Filter in Bag
513 ///
514 /// # Arguments
515 /// * `Bag`: Bag handle
516 /// * `Selector`: Item selector
517 /// * `ItemIndex`: Item index
518 /// * `ItemValue` (Output): Item value
519 /// * `Operator` (Output): Item operator
520 /// * `CompCode` (Output): Completion code
521 /// * `Reason` (Output): Reason code qualifying `CompCode`
522 ///
523 /// # References
524 /// * [IBM `mqInquireIntegerFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089380_.html)
525 pub fn mqInquireIntegerFilter(
526 Bag: MQHBAG,
527 Selector: crate::MQLONG,
528 ItemIndex: crate::MQLONG,
529 ItemValue: &mut crate::MQLONG,
530 Operator: &mut crate::MQLONG,
531 CompCode: &mut crate::MQLONG,
532 Reason: &mut crate::MQLONG,
533 );
534 /// Inquire Attributes of Item in Bag
535 ///
536 /// # Arguments
537 /// * `Bag`: Bag handle
538 /// * `Selector`: Item selector
539 /// * `ItemIndex`: Item index
540 /// * `OutSelector` (Output): Selector of item
541 /// * `ItemType` (Output): Data type of item
542 /// * `CompCode` (Output): Completion code
543 /// * `Reason` (Output): Reason code qualifying `CompCode`
544 ///
545 /// # References
546 /// * [IBM `mqInquireItemInfo` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089390_.html)
547 pub fn mqInquireItemInfo(
548 Bag: MQHBAG,
549 Selector: crate::MQLONG,
550 ItemIndex: crate::MQLONG,
551 OutSelector: &mut crate::MQLONG,
552 ItemType: &mut crate::MQLONG,
553 CompCode: &mut crate::MQLONG,
554 Reason: &mut crate::MQLONG,
555 );
556 /// Inquire String in Bag
557 ///
558 /// # Arguments
559 /// * `Bag`: Bag handle
560 /// * `Selector`: Item selector
561 /// * `ItemIndex`: Item index
562 /// * `BufferLength`: Length of buffer
563 /// * `Buffer` (Output): Buffer to contain string
564 /// * `StringLength` (Output): Length of string returned
565 /// * `CodedCharSetId` (Output): Character-set identifier of string
566 /// * `CompCode` (Output): Completion code
567 /// * `Reason` (Output): Reason code qualifying `CompCode`
568 ///
569 /// # References
570 /// * [IBM `mqInquireString` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089400_.html)
571 pub fn mqInquireString(
572 Bag: MQHBAG,
573 Selector: crate::MQLONG,
574 ItemIndex: crate::MQLONG,
575 BufferLength: crate::MQLONG,
576 Buffer: crate::PMQCHAR,
577 StringLength: &mut crate::MQLONG,
578 CodedCharSetId: &mut crate::MQLONG,
579 CompCode: &mut crate::MQLONG,
580 Reason: &mut crate::MQLONG,
581 );
582 /// Inquire String Filter in Bag
583 ///
584 /// # Arguments
585 /// * `Bag`: Bag handle
586 /// * `Selector`: Item selector
587 /// * `ItemIndex`: Item index
588 /// * `BufferLength`: Length of buffer
589 /// * `Buffer` (Output): Buffer to contain string
590 /// * `StringLength` (Output): Length of string returned
591 /// * `CodedCharSetId` (Output): Character-set identifier of string
592 /// * `Operator` (Output): Item operator
593 /// * `CompCode` (Output): Completion code
594 /// * `Reason` (Output): Reason code qualifying `CompCode`
595 ///
596 /// # References
597 /// * [IBM `mqInquireStringFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089410_.html)
598 pub fn mqInquireStringFilter(
599 Bag: MQHBAG,
600 Selector: crate::MQLONG,
601 ItemIndex: crate::MQLONG,
602 BufferLength: crate::MQLONG,
603 Buffer: crate::PMQCHAR,
604 StringLength: &mut crate::MQLONG,
605 CodedCharSetId: &mut crate::MQLONG,
606 Operator: &mut crate::MQLONG,
607 CompCode: &mut crate::MQLONG,
608 Reason: &mut crate::MQLONG,
609 );
610 /// Pad Null-terminated String with Blanks
611 ///
612 /// # Arguments
613 /// * `String`: Null-terminated string to be padded
614 /// * `BufferLength`: Length of buffer
615 /// * `Buffer` (Output): Buffer to contain padded string
616 /// * `CompCode` (Output): Completion code
617 /// * `Reason` (Output): Reason code qualifying `CompCode`
618 ///
619 /// # References
620 /// * [IBM `mqPad` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089420_.html)
621 pub fn mqPad(
622 String: crate::PMQCHAR,
623 BufferLength: crate::MQLONG,
624 Buffer: crate::PMQCHAR,
625 CompCode: &mut crate::MQLONG,
626 Reason: &mut crate::MQLONG,
627 );
628 /// Send Bag as PCF Message
629 ///
630 /// # Arguments
631 /// * `Hconn`: Connection handle
632 /// * `Hobj`: Queue handle
633 /// * `MsgDesc` (Input/Output): Message descriptor
634 /// * `PutMsgOpts` (Input/Output): Put-message options
635 /// * `Bag`: Handle of bag containing message data
636 /// * `CompCode` (Output): Completion code
637 /// * `Reason` (Output): Reason code qualifying `CompCode`
638 ///
639 /// # References
640 /// * [IBM `mqPutBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089430_.html)
641 pub fn mqPutBag(
642 Hconn: crate::MQHCONN,
643 Hobj: crate::MQHOBJ,
644 MsgDesc: crate::PMQVOID,
645 PutMsgOpts: &mut crate::MQPMO,
646 Bag: MQHBAG,
647 CompCode: &mut crate::MQLONG,
648 Reason: &mut crate::MQLONG,
649 );
650 /// Modify Byte String in Bag
651 ///
652 /// # Arguments
653 /// * `Bag`: Bag handle
654 /// * `Selector`: Item selector
655 /// * `ItemIndex`: Item index
656 /// * `BufferLength`: Length of buffer
657 /// * `Buffer`: Buffer containing item value
658 /// * `CompCode` (Output): Completion code
659 /// * `Reason` (Output): Reason code qualifying `CompCode`
660 ///
661 /// # References
662 /// * [IBM `mqSetByteString` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089440_.html)
663 pub fn mqSetByteString(
664 Bag: MQHBAG,
665 Selector: crate::MQLONG,
666 ItemIndex: crate::MQLONG,
667 BufferLength: crate::MQLONG,
668 Buffer: crate::PMQBYTE,
669 CompCode: &mut crate::MQLONG,
670 Reason: &mut crate::MQLONG,
671 );
672 /// Modify Byte String Filter in Bag
673 ///
674 /// # Arguments
675 /// * `Bag`: Bag handle
676 /// * `Selector`: Item selector
677 /// * `ItemIndex`: Item index
678 /// * `BufferLength`: Length of buffer
679 /// * `Buffer`: Buffer containing item value
680 /// * `Operator`: Item operator
681 /// * `CompCode` (Output): Completion code
682 /// * `Reason` (Output): Reason code qualifying `CompCode`
683 ///
684 /// # References
685 /// * [IBM `mqSetByteStringFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089450_.html)
686 pub fn mqSetByteStringFilter(
687 Bag: MQHBAG,
688 Selector: crate::MQLONG,
689 ItemIndex: crate::MQLONG,
690 BufferLength: crate::MQLONG,
691 Buffer: crate::PMQBYTE,
692 Operator: crate::MQLONG,
693 CompCode: &mut crate::MQLONG,
694 Reason: &mut crate::MQLONG,
695 );
696 /// Modify Integer in Bag
697 ///
698 /// # Arguments
699 /// * `Bag`: Bag handle
700 /// * `Selector`: Item selector
701 /// * `ItemIndex`: Item index
702 /// * `ItemValue`: Item value
703 /// * `CompCode` (Output): Completion code
704 /// * `Reason` (Output): Reason code qualifying `CompCode`
705 ///
706 /// # References
707 /// * [IBM `mqSetInteger` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089460_.html)
708 pub fn mqSetInteger(
709 Bag: MQHBAG,
710 Selector: crate::MQLONG,
711 ItemIndex: crate::MQLONG,
712 ItemValue: crate::MQLONG,
713 CompCode: &mut crate::MQLONG,
714 Reason: &mut crate::MQLONG,
715 );
716 /// Modify 64-bit Integer in Bag
717 ///
718 /// # Arguments
719 /// * `Bag`: Bag handle
720 /// * `Selector`: Item selector
721 /// * `ItemIndex`: Item index
722 /// * `ItemValue`: Item value
723 /// * `CompCode` (Output): Completion code
724 /// * `Reason` (Output): Reason code qualifying `CompCode`
725 ///
726 /// # References
727 /// * [IBM `mqSetInteger64` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089470_.html)
728 pub fn mqSetInteger64(
729 Bag: MQHBAG,
730 Selector: crate::MQLONG,
731 ItemIndex: crate::MQLONG,
732 ItemValue: crate::MQINT64,
733 CompCode: &mut crate::MQLONG,
734 Reason: &mut crate::MQLONG,
735 );
736 /// Modify Integer Filter in Bag
737 ///
738 /// # Arguments
739 /// * `Bag`: Bag handle
740 /// * `Selector`: Item selector
741 /// * `ItemIndex`: Item index
742 /// * `ItemValue`: Item value
743 /// * `Operator`: Item operator
744 /// * `CompCode` (Output): Completion code
745 /// * `Reason` (Output): Reason code qualifying `CompCode`
746 ///
747 /// # References
748 /// * [IBM `mqSetIntegerFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089480_.html)
749 pub fn mqSetIntegerFilter(
750 Bag: MQHBAG,
751 Selector: crate::MQLONG,
752 ItemIndex: crate::MQLONG,
753 ItemValue: crate::MQLONG,
754 Operator: crate::MQLONG,
755 CompCode: &mut crate::MQLONG,
756 Reason: &mut crate::MQLONG,
757 );
758 /// Modify String in Bag
759 ///
760 /// # Arguments
761 /// * `Bag`: Bag handle
762 /// * `Selector`: Item selector
763 /// * `ItemIndex`: Item index
764 /// * `BufferLength`: Length of buffer
765 /// * `Buffer`: Buffer containing item value
766 /// * `CompCode` (Output): Completion code
767 /// * `Reason` (Output): Reason code qualifying `CompCode`
768 ///
769 /// # References
770 /// * [IBM `mqSetString` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089490_.html)
771 pub fn mqSetString(
772 Bag: MQHBAG,
773 Selector: crate::MQLONG,
774 ItemIndex: crate::MQLONG,
775 BufferLength: crate::MQLONG,
776 Buffer: crate::PMQCHAR,
777 CompCode: &mut crate::MQLONG,
778 Reason: &mut crate::MQLONG,
779 );
780 /// Modify String Filter in Bag
781 ///
782 /// # Arguments
783 /// * `Bag`: Bag handle
784 /// * `Selector`: Item selector
785 /// * `ItemIndex`: Item index
786 /// * `BufferLength`: Length of buffer
787 /// * `Buffer`: Buffer containing item value
788 /// * `Operator`: Item operator
789 /// * `CompCode` (Output): Completion code
790 /// * `Reason` (Output): Reason code qualifying `CompCode`
791 ///
792 /// # References
793 /// * [IBM `mqSetStringFilter` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089500_.html)
794 pub fn mqSetStringFilter(
795 Bag: MQHBAG,
796 Selector: crate::MQLONG,
797 ItemIndex: crate::MQLONG,
798 BufferLength: crate::MQLONG,
799 Buffer: crate::PMQCHAR,
800 Operator: crate::MQLONG,
801 CompCode: &mut crate::MQLONG,
802 Reason: &mut crate::MQLONG,
803 );
804 /// Replace Trailing Blanks with Null Character
805 ///
806 /// # Arguments
807 /// * `BufferLength`: Length of buffer
808 /// * `Buffer`: Buffer containing blank-padded string
809 /// * `String` (Output): String with blanks discarded
810 /// * `CompCode` (Output): Completion code
811 /// * `Reason` (Output): Reason code qualifying `CompCode`
812 ///
813 /// # References
814 /// * [IBM `mqTrim` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089510_.html)
815 pub fn mqTrim(
816 BufferLength: crate::MQLONG,
817 Buffer: crate::PMQCHAR,
818 String: crate::PMQCHAR,
819 CompCode: &mut crate::MQLONG,
820 Reason: &mut crate::MQLONG,
821 );
822 /// Delete Trailing Items in Bag
823 ///
824 /// # Arguments
825 /// * `Bag`: Bag handle
826 /// * `ItemCount`: Number of items to remain in bag
827 /// * `CompCode` (Output): Completion code
828 /// * `Reason` (Output): Reason code qualifying `CompCode`
829 ///
830 /// # References
831 /// * [IBM `mqTruncateBag` Documentation](https://www.ibm.com/docs/en/SSFKSJ_latest/refadmin/q089520_.html)
832 pub fn mqTruncateBag(
833 Bag: MQHBAG,
834 ItemCount: crate::MQLONG,
835 CompCode: &mut crate::MQLONG,
836 Reason: &mut crate::MQLONG,
837 );
838}