From 0869f7d472f869e9a0bf812dedc33e1056e19f6d Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Sun, 27 Jan 2008 18:20:33 +0100 Subject: [PATCH] Add iso_image_get_msg_id() API. --- libisofs/image.c | 5 +++++ libisofs/libisofs.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/libisofs/image.c b/libisofs/image.c index f9ff8f5..3d2595d 100644 --- a/libisofs/image.c +++ b/libisofs/image.c @@ -216,3 +216,8 @@ const char *iso_image_get_biblio_file_id(const IsoImage *image) { return image->biblio_file_id; } + +int iso_image_get_msg_id(IsoImage *image) +{ + return image->id; +} diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index f4c3d97..5cccf13 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -1910,6 +1910,13 @@ int iso_set_msgs_severities(char *queue_severity, char *print_severity, int iso_obtain_msgs(char *minimum_severity, int *error_code, int *imgid, char msg_text[], int *os_errno, char severity[]); +/** + * Get the id of an IsoImage, used for message reporting. This message id, + * retrieved with iso_obtain_msgs(), can be used to distinguish what + * IsoImage has isssued a given message. + */ +int iso_image_get_msg_id(IsoImage *image); + /** * Get a textual description of a libisofs error. */