Exception.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: Exception.h $
- *
- * Description: Exception mechanism.
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 6 $
- * Last Modified by $Author: Hamadk $ at $Modtime: 1/13/04 11:09 $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/Exception/Exception.h $
- *
- * 6 1/13/04 12:11 Hamadk
- * Merged with CES DB
- *
- * 5 03-09-05 19:42 Leslie
- * Add signature
- *
- * 4 9/01/03 8:24p Leslie
- * Improve teh DVD Watchdog
- * Improve the error handling for some special cases
- *
- * 3 7/10/03 6:40p Mikex
- * add a definition about EXCEPTION_POWER_DOWN_REQUEST, that be for
- * decreasing time into standby status when reading all files in disc.
- *
- * 2 03-05-22 11:42 Leslie
- * Add EXCEPTION_SECTOR_READ_FAIL
- * Remove useless definitions
- *
- * 4 24/05/02 16:53 Nirm
- * - Added EXCEPTION_FATALFAILURE.
- *
- * 3 23/04/02 9:29 Nirm
- * - Added dependency in "Config.h".
- *
- * 2 7/03/02 16:52 Nirm
- * Integrated Exceptioning mechanism.
- *
- * 1 7/03/02 9:09 Nirm
- ****************************************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef __EXCEPTION_H_
- #define __EXCEPTION_H_
- #include "IncludeSysDefs.h"
- /////////////////////////////////////////////////////////////////////////////
- // Constants and Enumerations
- #define EXCEPTION_NONE 0x00
- #define EXCEPTION_MEDIUM_EJECTED 0x01
- #define EXCEPTION_SECTOR_READ_FAIL 0x02
- #define EXCEPTION_POWER_DOWN_REQUEST 0x04
- #define EXCEPTION_INVALID_PSN 0x08
- #define EXCEPTION_STOP_REQUEST 0x10
- #define EXCEPTION_ANY 0xFF
- #define EXCEPTION_ALL 0xFF
- /////////////////////////////////////////////////////////////////////////////
- // Common Structures
- typedef UINT8 EXCEPTION;
- /////////////////////////////////////////////////////////////////////////////
- // Public Services
- //BOOL exception_init(void);
- void Exception_throw(EXCEPTION excThrow);
- EXCEPTION Exception_catch(EXCEPTION excCatch);
- EXCEPTION Exception_catchAndRethrow(EXCEPTION excCatch);
- void Exception_ignore(EXCEPTION excIgnore, BOOL bEnable);
- #endif // __EXCEPTION_H_