New error reply code ISO_DISPLACE_ROLLOVER for external data sources with

address displacement.
This commit is contained in:
Thomas Schmitt 2010-11-30 09:47:22 +01:00
parent f4b2bfc0d6
commit 27e69c38ab
2 changed files with 7 additions and 1 deletions

View File

@ -322,7 +322,7 @@ struct iso_data_source
* automatically called by iso_data_source_unref() when refcount reach * automatically called by iso_data_source_unref() when refcount reach
* 0. * 0.
*/ */
void (*free_data)(IsoDataSource *); void (*free_data)(IsoDataSource *src);
/** Source specific data */ /** Source specific data */
void *data; void *data;
@ -6417,6 +6417,10 @@ int iso_md5_match(char first_md5[16], char second_md5[16]);
(FAILURE, HIGH, -371) */ (FAILURE, HIGH, -371) */
#define ISO_NON_MBR_SYS_AREA 0xE830FE8D #define ISO_NON_MBR_SYS_AREA 0xE830FE8D
/** Displacement offset leads outside 32 bit range (FAILURE, HIGH, -372) */
#define ISO_DISPLACE_ROLLOVER 0xE830FE8C
/* Internal developer note: /* Internal developer note:
Place new error codes directly above this comment. Place new error codes directly above this comment.

View File

@ -359,6 +359,8 @@ const char *iso_error_to_msg(int errcode)
return "Cannot open data file for appended partition"; return "Cannot open data file for appended partition";
case ISO_NON_MBR_SYS_AREA: case ISO_NON_MBR_SYS_AREA:
return "May not combine appended partition with non-MBR system area"; return "May not combine appended partition with non-MBR system area";
case ISO_DISPLACE_ROLLOVER:
return "Displacement offset leads outside 32 bit range";
default: default:
return "Unknown error"; return "Unknown error";
} }