Added API to set the abort severity.

This commit is contained in:
Vreixo Formoso
2008-01-22 22:24:33 +01:00
parent 3530b7d137
commit 164e97f6bc
3 changed files with 29 additions and 1 deletions

View File

@ -1694,6 +1694,19 @@ int iso_obtain_msgs(char *minimum_severity, int *error_code,
*/
const char *iso_error_to_msg(int errcode);
/**
* Set the minimum error severity that causes a libisofs operation to
* be aborted as soon as possible.
*
* @param severity
* one of "FAILURE", "SORRY", "WARNING", "HINT", "NOTE". Severities
* greater than SORRY always cause program to abort. Severities under
* NOTE won't never cause function abort.
* @return
* Previous abort priority on success, < 0 on error.
*/
int iso_set_abort_severity(char *severity);
/**
* Return the messenger object handle used by libisofs. This handle
* may be used by related libraries to their own compatible