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


/* $Date:   21 Sep 2001 19:02:48  $ */
/* $Modtime:   21 Sep 2001 17:11:14  $ */

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

/*
 * $Log:   /unikix/source2/NEW80/unikixsrc/test/mq/jms/PVCS/kixmqerr.h_v  $
 * 
 *    Rev 1.0   21 Sep 2001 19:02:48   unikix
 * Initial 8.0
 * 
 *    Rev 1.0   08 Aug 2001 16:36:24   randyh
 * Initial revision.
 * 
 *    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
