MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
mherrors.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2014 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _MHEG5_ERRORS_H
26 #define _MHEG5_ERRORS_H
27 
28 typedef enum
29 {
30  // 0. Requested operation completed successfully
31  MHERR_OK = 0,
32 
33  // 1. Indicate result is pending
34  MHERR_PENDING,
35  MHERR_RESULT_PENDING = MHERR_PENDING,
36 
37  // 2. Function call had no effect
38  MHERR_REQUEST_IGNORED,
39 
40  // 3. Pending request was aborted
41  MHERR_REQUEST_ABORTED,
42 
43  // 4. One or more of the parameters passed was invalid
44  MHERR_BAD_PARAMETER,
45 
46  // 5. When specified object (e.g. file) was not found
47  MHERR_OBJECT_NOT_FOUND,
48 
49  // 6. Memory allocation failure or mutex/semaphore failure
50  MHERR_ALLOCATING_MEMORY,
51 
52  // 7. The MHEG5 engine has not been opened
53  MHERR_COMP_NOT_OPEN,
54 
55  // 8. The MHEG5 engine has already been opened
56  MHERR_COMP_ALREADY_OPEN,
57 
58  // 9. The MHEG5 engine has not been started
59  MHERR_COMP_NOT_STARTED,
60 
61  //10. The MHEG5 engine has already been started
62  MHERR_COMP_ALREADY_STARTED,
63 
64  //11. The internal Queue is full
65  MHERR_QUEUE_FULL,
66 
67  //12. An error internal to the MHEG5 engine has occurred.
68  MHERR_INTERNAL,
69 
70  //13. A session with a CI module has not established.
71  MHERR_CI_SESSION_NOT_ESTABLISHED,
72 
73  //14. specific to MHEG5 PVR, to indicate a booking conflict
74  MHERR_CONFLICT,
75 
76  //15. specific to MHEG5 PVR, to indicate an alternative booking
77  MHERR_ALTERNATIVE_FOUND,
78 
79  //16. specific to MHEG5 PVR, to indicate out of space*/
80  MHERR_INSUFFICIENT_SPACE,
81 
82  //17. specific to MHEG5 PVR, to indicate too many bookings
83  MHERR_OVERBOOKED,
84 
85  //18+. An error due to failure to create system resource (e.g task, queue, semaphore or mutex)
86  MHERR_SYSTEM_RESOURCE_TASK,
87  MHERR_SYSTEM_RESOURCE_QUEUE,
88  MHERR_SYSTEM_RESOURCE_SEMAPHORE,
89  MHERR_SYSTEM_RESOURCE_MUTEX,
90 
91  //22+. An error occured while creating, resetting or destroying dsmcc instance
92  MHERR_DSMCC_INSTANCE_CREATE,
93  MHERR_DSMCC_INSTANCE_RESET,
94  MHERR_DSMCC_INSTANCE_DESTROY,
95 
96  //25+. An error occured while loading or unloading dsmcc carousel
97  MHERR_DSMCC_CAROUSEL_LOAD,
98  MHERR_DSMCC_CAROUSEL_UNLOAD,
99 
100  //27+. Errors specific to the MHEG5 engine Open function
101  MHERR_VERSION_MISMATCH,
102  MHERR_BAD_TASK_PRIORITY,
103  MHERR_ALLOCATING_MEMORY_REGION,
104  MHERR_BAD_SECTION_BUFFER_SIZE,
105  MHERR_BAD_NVM_SIZE,
106  MHERR_BAD_ICS_BUFFER,
107  MHERR_BAD_ICS_BUFFER_SIZE,
108  MHERR_UNSUPPORTED_EXTENSION,
109  MHERR_UNSUPPORTED_PROFILE,
110 
111  //36. An error that does not fit any other error code occurred
112  MHERR_OTHER,
113 } E_MhegErr, E_MHEG5_ERR;
114 
115 
116 #endif // _MHEG5_ERRORS_H