Merge more Thomas contributions related to ticket #125.

This commit is contained in:
Vreixo Formoso
2008-02-23 01:07:30 +01:00
5 changed files with 46 additions and 6 deletions

View File

@ -345,7 +345,7 @@ int iso_msgs_submit(int error_code, char msg_text[], int os_errno,
ret = libiso_msgs__text_to_sev(severity, &sevno, 0);
if (ret <= 0)
sevno = LIBISO_MSGS_SEV_FATAL;
sevno = LIBISO_MSGS_SEV_ALL;
if (error_code <= 0) {
switch(sevno) {
case LIBISO_MSGS_SEV_ABORT: error_code = 0x00040000;
@ -416,3 +416,13 @@ int iso_error_get_code(int e)
{
return ISO_ERR_CODE(e);
}
/* ts A80222 */
int iso_report_errfile(char *path, int error_code, int os_errno, int flag)
{
libiso_msgs_submit(libiso_msgr, 0, error_code,
LIBISO_MSGS_SEV_ERRFILE, LIBISO_MSGS_PRIO_HIGH,
path, os_errno, 0);
return(1);
}