Initial Revision
[ohcount] / test / expected_dir / c1.c / cncpp / code
1 #include <cmqc.h>      /* MQ API header file       */
2 #define NUMBEROFSELECTORS  2
3 const MQHCONN Hconn = MQHC_DEF_HCONN;
4 static void InquireGetAndPut(char   *Message,
5 PMQHOBJ pHobj,
6 char   *Object)
7 {
8 MQLONG  SelectorCount = NUMBEROFSELECTORS;
9 MQLONG  IntAttrCount  = NUMBEROFSELECTORS;
10 MQLONG  CharAttrLength = 0;
11 MQCHAR *CharAttrs ;
12 MQLONG  SelectorsTable[NUMBEROFSELECTORS];
13 MQLONG  IntAttrsTable[NUMBEROFSELECTORS];
14 MQLONG  CompCode;             /* Completion code      */
15 MQLONG  Reason;               /* Qualifying reason    */
16 SelectorsTable[0] = MQIA_INHIBIT_GET;
17 SelectorsTable[1] = MQIA_INHIBIT_PUT;
18 MQINQ(Hconn,
19 *pHobj,
20 SelectorCount,
21 SelectorsTable,
22 IntAttrCount,
23 IntAttrsTable,
24 CharAttrLength,
25 CharAttrs,
26 &CompCode,
27 &Reason);
28 if (CompCode != MQCC_OK)
29 {
30 sprintf(Message, MESSAGE_4_E,
31 ERROR_IN_MQINQ, CompCode, Reason);
32 SetMsg(Message);
33 }
34 else
35 {
36 } /* end if CompCode */