From 27e69c38ab4097a5227cb33e2c833e9a467d1433 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 30 Nov 2010 09:47:22 +0100 Subject: [PATCH] New error reply code ISO_DISPLACE_ROLLOVER for external data sources with address displacement. --- libisofs/libisofs.h | 6 +++++- libisofs/messages.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index f3bf6aa..2771455 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -322,7 +322,7 @@ struct iso_data_source * automatically called by iso_data_source_unref() when refcount reach * 0. */ - void (*free_data)(IsoDataSource *); + void (*free_data)(IsoDataSource *src); /** Source specific data */ void *data; @@ -6417,6 +6417,10 @@ int iso_md5_match(char first_md5[16], char second_md5[16]); (FAILURE, HIGH, -371) */ #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: Place new error codes directly above this comment. diff --git a/libisofs/messages.c b/libisofs/messages.c index 79a77fd..e3fadf0 100644 --- a/libisofs/messages.c +++ b/libisofs/messages.c @@ -359,6 +359,8 @@ const char *iso_error_to_msg(int errcode) return "Cannot open data file for appended partition"; case ISO_NON_MBR_SYS_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: return "Unknown error"; }