Browse Source

Add iso_image_get_msg_id() API.

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent
commit
0869f7d472
  1. 5
      libisofs/image.c
  2. 7
      libisofs/libisofs.h

5
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;
}

7
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.
*/

Loading…
Cancel
Save