/**********************************************************************/
/*                                                                    */
/* Copyright (c) 2001 by Sun Microsystems, Inc.                       */
/* All rights reserved.                                               */
/*                                                                    */
/**********************************************************************/


/* $Date:   17 Nov 2003 13:43:04  $ */
/* $Modtime:   17 Nov 2003 13:18:08  $ */

/* $Workfile:   kixmqerr.h  $ $Revision:   1.0  $ */

/*
 * $Log:   /builds/source/tmp/MTP8.0.0p7a/unikixsrc/test/mq/cobol/PVCS/kixmqerr.h_v  $
 * 
 *    Rev 1.0   17 Nov 2003 13:43:04   unikix
 * New 8.0 archive
 * 
 *    Rev 1.0   21 Sep 2001 19:02:42   unikix
 * Initial 8.0
 * 
 *    Rev 1.0   30 Jan 2000 11:45:20   unikix
 * Initial 7.0
 * 
 *    Rev 1.0   15 Mar 1999 19:57:52   unikix
 * Initial 6.0
 * 
 *    Rev 1.0   05/22/97 17:10:54   unikix
 * Initial 5.1
 * 
 *    Rev 1.0   08/26/96 16:32:16   rick
 * Initial revision.
*/

#ifndef _KIXMQERR_H
#define _KIXMQERR_H
#include <cmqc.h>

#ifdef __STDC__
void Inquire_Q( MQHCONN hConn, MQHOBJ hObj, char *Title, char *Prefix );
#endif
#ifdef __STDC__
void Inquire_QM( MQHCONN hConn, MQHOBJ hObj, char *Title, char *Prefix );
#endif

#ifdef __STDC__
char *ReasonToString( MQLONG Reason );
#endif

#define CHECK_RC(a,b,c)							\
	if ( b != MQCC_OK )						\
	{								\
	    fprintf(stderr,"\nkixmqtst: <%s> CompCode=%ld Reason=%ld [%s]\n", \
			a,b,c,ReasonToString(c));	\
	    exit(b);							\
	}

#endif
