func (x *MQQueueManager) Cmit() error {
	var mqrc C.MQLONG
	var mqcc C.MQLONG
	C.MQCMIT(x.hConn, &mqcc, &mqrc)
	mqreturn := MQReturn{MQCC: int32(mqcc),
		MQRC: int32(mqrc),
		verb: "MQCMIT",
	}
	if mqcc != C.MQCC_OK {
		return &mqreturn
	}
	return nil
}
/*
Cmit is the function to commit an in-flight transaction
package ibmmq
import "C"
import (
	"encoding/binary"
	"unsafe"
)
type MQQueueManager struct {
	hConn C.MQHCONN
	Name  string
}
type MQObject struct {
	hObj C.MQHOBJ
	qMgr *MQQueueManager
	Name string
}
type MQReturn struct {
	MQCC int32
	MQRC int32
	verb string
}
func (e *MQReturn) Error() string {
	return mqstrerror(e.verb, C.MQLONG(e.MQCC), C.MQLONG(e.MQRC))
}
func setMQIString(a *C.char, v string, l int) {
	if len(v) > 0 {
		p := C.CString(v)
		C.strncpy(a, p, (C.size_t)(l))
		C.free(unsafe.Pointer(p))
	} else {
		*a = 0
	}
}
func Conn(goQMgrName string) (MQQueueManager, error) {
	return Connx(goQMgrName, nil)
}
func Connx(goQMgrName string, gocno *MQCNO) (MQQueueManager, error) {
	var mqrc C.MQLONG
	var mqcc C.MQLONG
	var mqcno C.MQCNO
	if (C.MQENC_NATIVE % 2) == 0 {  
		endian = binary.LittleEndian
	} else {
		endian = binary.BigEndian
	}
	qMgr := MQQueueManager{}
	mqQMgrName := unsafe.Pointer(C.CString(goQMgrName))
	defer C.free(mqQMgrName)
	if gocno == nil {
		gocno = NewMQCNO()
		gocno.Options = MQCNO_HANDLE_SHARE_NO_BLOCK
	} else {
		if (gocno.Options & (MQCNO_HANDLE_SHARE_NO_BLOCK |
			MQCNO_HANDLE_SHARE_BLOCK)) == 0 {
			gocno.Options |= MQCNO_HANDLE_SHARE_NO_BLOCK
		}
	}
	copyCNOtoC(&mqcno, gocno)
	C.MQCONNX((*C.MQCHAR)(mqQMgrName), &mqcno, &qMgr.hConn, &mqcc, &mqrc)
	if gocno != nil {
		copyCNOfromC(&mqcno, gocno)
	}
	mqreturn := &MQReturn{MQCC: int32(mqcc),
		MQRC: int32(mqrc),
		verb: "MQCONNX",
	}
	if mqcc != C.MQCC_OK {
		return qMgr, mqreturn
	}
	qMgr.Name = goQMgrName
	return qMgr, nil
}
func (x *MQQueueManager) Disc() error {
	var mqrc C.MQLONG
	var mqcc C.MQLONG
	C.MQDISC(&x.hConn, &mqcc, &mqrc)
	mqreturn := MQReturn{MQCC: int32(mqcc),
		MQRC: int32(mqrc),
		verb: "MQDISC",
	}
	if mqcc != C.MQCC_OK {
		return &mqreturn
	}
	return nil
}
func (x *MQQueueManager) Open(good *MQOD, goOpenOptions int32) (MQObject, error) {
	var mqrc C.MQLONG
	var mqcc C.MQLONG
	var mqod C.MQOD
	var mqOpenOptions C.MQLONG
	object := MQObject{
		Name: good.ObjectName,
		qMgr: x,
	}
	copyODtoC(&mqod, good)
	mqOpenOptions = C.MQLONG(goOpenOptions)
	C.MQOPEN(x.hConn,
		(C.PMQVOID)(unsafe.Pointer(&mqod)),
		mqOpenOptions,
		&object.hObj,
		&mqcc,
		&mqrc)
	copyODfromC(&mqod, good)
	mqreturn := MQReturn{MQCC: int32(mqcc),
		MQRC: int32(mqrc),
		verb: "MQOPEN",
	}
	if mqcc != C.MQCC_OK {
		return object, &mqreturn
	}
	object.Name = good.ObjectName
	return object, nil
}
func (object *MQObject) Close(goCloseOptions int32) error {
	var mqrc C.MQLONG
	var mqcc C.MQLONG
	var mqCloseOptions C.MQLONG
	mqCloseOptions = C.MQLONG(goCloseOptions)
	C.MQCLOSE(object.qMgr.hConn, &object.hObj, mqCloseOptions, &mqcc, &mqrc)
	mqreturn := MQReturn{MQCC: int32(mqcc),
		MQRC: int32(mqrc),
		verb: "MQCLOSE",
	}
	if mqcc != C.MQCC_OK {
		return &mqreturn
	}
	return nil
}
func (x *MQQueueManager) Sub(gosd *MQSD, qObject *MQObject) (MQObject, error) {
	var mqrc C.MQLONG
	var mqcc C.MQLONG
	var mqsd C.MQSD
	subObject := MQObject{
		Name: gosd.ObjectName,
		qMgr: x,
	}
	copySDtoC(&mqsd, gosd)
	C.MQSUB(x.hConn,
		(C.PMQVOID)(unsafe.Pointer(&mqsd)),
		&qObject.hObj,
		&subObject.hObj,
		&mqcc,
		&mqrc)
	copySDfromC(&mqsd, gosd)
	mqreturn := MQReturn{MQCC: int32(mqcc),
		MQRC: int32(mqrc),
		verb: "MQSUB",
	}
	if mqcc != C.MQCC_OK {
		return subObject, &mqreturn
	}
	qObject.qMgr = x  
	return subObject, nil
}