libmqm_sys/
link.rs

1/*!
2
3Compile time linking of the MQI library
4
5Example
6-------
7Use the compile time linked MQ library and issue an `MQCONN`
8
9```no_run
10use libmqm_sys::{self as mq, Mqi as _};
11
12// Use the compile time linked MQ library
13let mq = libmqm_sys::link::LinkedMq;
14
15// Connect to MQ
16let mut hconn = mq::MQHC_DEF_HCONN;
17let mut comp_code = mq::MQCC_UNKNOWN;
18let mut reason = mq::MQRC_NONE;
19let mut qmgr: mq::MQCHAR48 = [32; 48]; // All spaces
20unsafe {
21   mq.MQCONN(
22     &qmgr,
23     &mut hconn,
24     &mut comp_code,
25     &mut reason,
26   );
27}
28```
29
30*/
31
32pub use super::generated::link::*;