1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 #ifndef PVMF_FILEFORMAT_EVENTS_H_INCLUDED 19 #define PVMF_FILEFORMAT_EVENTS_H_INCLUDED 20 21 /** 22 UUID for file format error and information event type codes 23 **/ 24 #define PVMFFileFormatEventTypesUUID PVUuid(0x1ccf06b0,0xb6ea,0x4c29,0x9d,0xbe,0xca,0x0a,0x8c,0xc5,0x80,0x1a) 25 26 /** 27 * An enumeration of error types from file format libraries and nodes 28 **/ 29 typedef enum 30 { 31 /** 32 File open error 33 **/ 34 PVMFFFErrFileOpen = 1024, 35 36 /** 37 File read error 38 **/ 39 PVMFFFErrFileRead, 40 41 /** 42 File seek error 43 **/ 44 PVMFFFErrFileSeek, 45 46 /** 47 Parsed data is invalid 48 **/ 49 PVMFFFErrInvalidData, 50 51 /** 52 Insufficient buffer to read in the data 53 **/ 54 PVMFFFErrInsufficientBuffer, 55 56 /** 57 Insufficient data available for the specified type 58 **/ 59 PVMFFFErrInsufficientData, 60 61 /** 62 Specified type of data is not supported 63 **/ 64 PVMFFFErrNotSupported, 65 66 /** 67 Unknown data type 68 **/ 69 PVMFFFErrUnknownData, 70 71 /** 72 Miscellaneous error 73 **/ 74 PVMFFFErrMisc, 75 76 /** 77 Placeholder for the last PVMF FF error event 78 **/ 79 PVMFFFErrLast = 8191 80 } PVMFFileFormatErrorEventType; 81 82 /** 83 * An enumeration of informational event types from file format libraries and nodes 84 **/ 85 typedef enum 86 { 87 /** 88 End of file detected 89 **/ 90 PVMFFFInfoEndOfFile = 8192, 91 92 /** 93 Not supported so skipped 94 **/ 95 PVMFFFInfoNotSupported, 96 97 /** 98 Placeholder for the last PVMF FF informational event 99 **/ 100 PVMFFFInfoLast = 10000 101 102 } PVMFFileFormatInformationalEventType; 103 104 #endif // PVMF_FILEFORMAT_EVENTS_H_INCLUDED 105 106 107