Commit a93d1823 authored by Thomas Schmitt's avatar Thomas Schmitt

New API call burn_sev_to_text()

parent ec8b7521
#define Cdrskin_timestamP "2008.02.03.092134"
#define Cdrskin_timestamP "2008.02.03.092509"
......@@ -281,6 +281,18 @@ int burn_text_to_sev(char *severity_name, int *sevno, int flag)
}
/* ts A80202 API */
int burn_sev_to_text(int severity_number, char **severity_name, int flag)
{
int ret;
ret = libdax_msgs__sev_to_text(severity_number, severity_name, 0);
if (ret <= 0)
*severity_name = "FATAL";
return ret;
}
int burn_builtin_abort_handler(void *handle, int signum, int flag)
{
......
......@@ -2146,6 +2146,16 @@ int burn_msgs_submit(int error_code, char msg_text[], int os_errno,
int burn_text_to_sev(char *severity_name, int *severity_number, int flag);
/* ts A80202 : @since 0.4.4 */
/** Convert a severity number into a severity name
@param severity_number The rank number: the higher, the more severe.
@param severity_name A name as with burn_msgs_submit(), e.g. "SORRY".
@param flag Bitfield for control purposes (unused yet, submit 0)
*/
int burn_sev_to_text(int severity_number, char **severity_name, int flag);
/* ts A70915 */
/** Replace the messenger object handle of libburn by a compatible handle
obtained from a related library.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment