Added MQCB/MQCTL implementation
Added MQBEGIN to complete the set
Modified sample programs for more appropriate coding.
How
Follow usual pattern for new structures. Wrap the user-supplied callback function with a Go function which in turn is wrapped by a C function. Go callbacks from C are not very well documented, but this works.
Sample programs updated to use "defer" instead of simply suggesting them, to encourage better design. FAIL_IF_QUIESCING no longer needed in user apps as it will get set automatically.
Testing
New sample amqscb demonstrates the callback mechanism
How to test your changes work, not required for documentation changes.
Issues
Links to the github issue(s) (if present) that this pull request is resolving.
Please ensure all items are complete before opening.
What
Added MQCB/MQCTL implementation Added MQBEGIN to complete the set Modified sample programs for more appropriate coding.
How
Follow usual pattern for new structures. Wrap the user-supplied callback function with a Go function which in turn is wrapped by a C function. Go callbacks from C are not very well documented, but this works.
Sample programs updated to use "defer" instead of simply suggesting them, to encourage better design. FAIL_IF_QUIESCING no longer needed in user apps as it will get set automatically.
Testing
New sample amqscb demonstrates the callback mechanism How to test your changes work, not required for documentation changes.
Issues
Links to the github issue(s) (if present) that this pull request is resolving.