home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / utils / sercli.shr / sercli / src / errors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-16  |  619 b   |  28 lines

  1. /*
  2. **  $Source: WB_2.1:homes/rkr/prog/sercli/src/RCS/errors.h,v $
  3. **  $Author: rkr $
  4. **  $Revision: 1.5 $
  5. **  $Locker: rkr $
  6. **  $State: Exp $
  7. **  $Date: 1993/06/16 23:33:42 $
  8. **
  9. **  sercli (an Amiga .device <-> FIFO interface tool)
  10. **  Copyright (C) 1993  Richard Rauch
  11. **
  12. **  See /doc/sercli.doc and /COPYING for use and distribution license.
  13. **
  14. */
  15.  
  16. typedef void (*error_handler) (void *error);
  17.  
  18. typedef enum
  19. {
  20.     error_type_serial = 0,
  21.  
  22.     num_error_types
  23. } error_type;
  24.  
  25.  
  26. extern error_handler set_error_handler (error_type type, error_handler new_handler);
  27. extern void handle_error (error_type type, void *error);
  28.