MHEG5  15.3.0
include/mherrors.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
00003  * Copyright © 2014 Ocean Blue Software Ltd
00004  *
00005  * This file is part of a DTVKit Software Component
00006  * You are permitted to copy, modify or distribute this file subject to the terms
00007  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
00008  *
00009  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
00010  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
00011  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
00012  *
00013  * If you or your organisation is not a member of DTVKit then you have access
00014  * to this source code outside of the terms of the licence agreement
00015  * and you are expected to delete this and any associated files immediately.
00016  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
00017  *******************************************************************************/
00025 #ifndef _MHEG5_ERRORS_H
00026 #define _MHEG5_ERRORS_H
00027 
00028 typedef enum
00029 {
00030    // 0. Requested operation completed successfully
00031    MHERR_OK = 0,
00032 
00033    // 1. Indicate result is pending
00034    MHERR_PENDING,
00035    MHERR_RESULT_PENDING = MHERR_PENDING,
00036 
00037    // 2. Function call had no effect
00038    MHERR_REQUEST_IGNORED,
00039 
00040    // 3. Pending request was aborted
00041    MHERR_REQUEST_ABORTED,
00042 
00043    // 4. One or more of the parameters passed was invalid
00044    MHERR_BAD_PARAMETER,
00045 
00046    // 5. When specified object (e.g. file) was not found
00047    MHERR_OBJECT_NOT_FOUND,
00048 
00049    // 6. Memory allocation failure or mutex/semaphore failure
00050    MHERR_ALLOCATING_MEMORY,
00051 
00052    // 7. The MHEG5 engine has not been opened
00053    MHERR_COMP_NOT_OPEN,
00054 
00055    // 8. The MHEG5 engine has already been opened
00056    MHERR_COMP_ALREADY_OPEN,
00057 
00058    // 9. The MHEG5 engine has not been started
00059    MHERR_COMP_NOT_STARTED,
00060 
00061    //10. The MHEG5 engine has already been started
00062    MHERR_COMP_ALREADY_STARTED,
00063 
00064    //11. The internal Queue is full
00065    MHERR_QUEUE_FULL,
00066 
00067    //12. An error internal to the MHEG5 engine has occurred.
00068    MHERR_INTERNAL,
00069 
00070    //13. A session with a CI module has not established.
00071    MHERR_CI_SESSION_NOT_ESTABLISHED,
00072 
00073    //14. specific to MHEG5 PVR, to indicate a booking conflict
00074    MHERR_CONFLICT,
00075 
00076    //15. specific to MHEG5 PVR, to indicate an alternative booking
00077    MHERR_ALTERNATIVE_FOUND,
00078 
00079    //16. specific to MHEG5 PVR, to indicate out of space*/
00080    MHERR_INSUFFICIENT_SPACE,
00081 
00082    //17. specific to MHEG5 PVR, to indicate too many bookings
00083    MHERR_OVERBOOKED,
00084 
00085    //18+. An error due to failure to create system resource (e.g task, queue, semaphore or mutex)
00086    MHERR_SYSTEM_RESOURCE_TASK,
00087    MHERR_SYSTEM_RESOURCE_QUEUE,
00088    MHERR_SYSTEM_RESOURCE_SEMAPHORE,
00089    MHERR_SYSTEM_RESOURCE_MUTEX,
00090 
00091    //22+. An error occured while creating, resetting or destroying dsmcc instance
00092    MHERR_DSMCC_INSTANCE_CREATE,
00093    MHERR_DSMCC_INSTANCE_RESET,
00094    MHERR_DSMCC_INSTANCE_DESTROY,
00095 
00096    //25+. An error occured while loading or unloading dsmcc carousel
00097    MHERR_DSMCC_CAROUSEL_LOAD,
00098    MHERR_DSMCC_CAROUSEL_UNLOAD,
00099 
00100    //27+. Errors specific to the MHEG5 engine Open function
00101    MHERR_VERSION_MISMATCH,
00102    MHERR_BAD_TASK_PRIORITY,
00103    MHERR_ALLOCATING_MEMORY_REGION,
00104    MHERR_BAD_SECTION_BUFFER_SIZE,
00105    MHERR_BAD_NVM_SIZE,
00106    MHERR_BAD_ICS_BUFFER,
00107    MHERR_BAD_ICS_BUFFER_SIZE,
00108    MHERR_UNSUPPORTED_EXTENSION,
00109    MHERR_UNSUPPORTED_PROFILE,
00110 
00111    //36. An error that does not fit any other error code occurred
00112    MHERR_OTHER,
00113 } E_MhegErr, E_MHEG5_ERR;
00114 
00115 
00116 #endif // _MHEG5_ERRORS_H
 All Data Structures Files Functions Variables Typedefs Defines