#ifndef _DMERRNO_H
#define _DMERRNO_H
static char DmErrno_h_id[] = "$Header: /u/oreilly/rov/datamgr/RCS/DmErrno.h,v 1.7 1998/06/10 21:01:14 oreilly Exp $";

/*
$Log: DmErrno.h,v $
Revision 1.7  1998/06/10 21:01:14  oreilly
C-style comment around sprintDmError() description

Revision 1.6  1998/03/13 19:46:44  oreilly
Added Cocoon documentation

Revision 1.5  1998/02/23 16:33:45  oreilly
*** empty log message ***

Revision 1.4  1998/01/27 17:03:18  oreilly
Don't include hashLib.h

Revision 1.3  1997/03/20 12:25:06  oreilly
*** empty log message ***

 * Revision 1.2  96/07/22  08:49:34  08:49:34  oreilly (Thomas C. O'Reilly)
 * Added RCS stuff
 * 
*/

#include <mbari/types.h>

#ifdef UNIX
#  include <dmUnix.h>
#  include <time.h>
#  include <sys/param.h>
#else
#  include <sys/times.h>
#  include <mbari/param.h>
#endif

#include <stdio.h>
#include <string.h>


#ifdef __cplusplus
extern "C" {
#endif

#include <semLib.h>
#include <lstLib.h>
#include "datamgr.h"
#include "dm_errno.h"
#include <signal.h>
#include <taskLib.h>

#ifdef __cplusplus
};
#endif

typedef struct {
  Errno err;
  const char *msg;
  
} DmErrorMsg;

#define UNKNOWN_DM_ERRNO_MSG "Unknown DataManager error" 

/* Function prototypes */
#ifdef __cplusplus
extern "C" {
#endif
/*
///////////////////////////////////////////////////////////////////
// Generate error message based on Datamanager Errno code
// [input] err: DataManager error code
// [input] prefix: User-defined prefix for error message
// [output] buf: Error message string                              */
void sprintDmError(
		   Errno err,
		   char *prefix, 
		   char *buf
		   );

#ifdef __cplusplus
};
#endif


#endif
