Initial values and language declarations for MQCBD

Callback descriptor structure - Initial values

Table 1. Initial values of fields in MQCBD
Field name Name of constant Value of constant
StrucId MQCBD_STRUC_ID 'CBD¬'
Version MQCBD_VERSION_1 1
CallBackType MQCBT_MESSAGE_CONSUMER 1
Options MQCBDO_NONE 0
CallbackArea None Null pointer or null blanks
CallbackFunction None Null pointer or null blanks
CallbackName None Null string or blanks
MaxMsgLength MQCBD_FULL_MSG_LENGTH -1
Notes:
  1. The symbol ¬ represents a single blank character.
  2. The value Null string or blanks denotes the null sting in the C programming language, and blank characters in other programming languages.
  3. In the C programming language, the macro variable MQCBD_DEFAULT contains the values that are listed in the table. Use it in the following way to provide initial values for the fields in the structure:
    
    MQCBD MyCBD = {MQCBD_DEFAULT};