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


/* $Date:   19 Sep 2001 16:44:08  $ */
/* $Modtime:   18 Sep 2001 16:38:18  $ */

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

/*
 * $Log:   /unikix/source2/SunMTP7.2.0/unikixsrc/test/mq/PVCS/kixmqerr.h_v  $
 * 
 *    Rev 1.0   19 Sep 2001 16:44:08   unikix
 * Initial 7.2
 * 
 *    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
