Merge changes from Thomas (ticket #125). Minor changes on merge.
This commit is contained in:
@ -2526,6 +2526,63 @@ 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[], char severity[]);
|
||||
|
||||
|
||||
/**
|
||||
* Submit a message to the libisofs queueing system. It will be queued or
|
||||
* printed as if it was generated by libisofs itself.
|
||||
*
|
||||
* @param error_code
|
||||
* The unique error code of your message.
|
||||
* Submit 0 if you do not have reserved error codes within the libburnia
|
||||
* project.
|
||||
* @param msg_text
|
||||
* Not more than ISO_MSGS_MESSAGE_LEN characters of message text.
|
||||
* @param os_errno
|
||||
* Eventual errno related to the message. Submit 0 if the message is not
|
||||
* related to a operating system error.
|
||||
* @param severity
|
||||
* One of "ABORT", "FATAL", "FAILURE", "SORRY", "WARNING", "HINT", "NOTE",
|
||||
* "UPDATE", "DEBUG". Defaults to "FATAL".
|
||||
* @param origin
|
||||
* Submit 0 for now.
|
||||
* @return
|
||||
* 1 if message was delivered, <=0 if failure
|
||||
*
|
||||
* @since 0.6.4
|
||||
*/
|
||||
int iso_msgs_submit(int error_code, char msg_text[], int os_errno,
|
||||
char severity[], int origin);
|
||||
|
||||
|
||||
/**
|
||||
* Convert a severity name into a severity number, which gives the severity
|
||||
* rank of the name.
|
||||
*
|
||||
* @param severity_name
|
||||
* A name as with iso_msgs_submit(), e.g. "SORRY".
|
||||
* @param severity_number
|
||||
* The rank number: the higher, the more severe.
|
||||
* @return
|
||||
* >0 success, <=0 failure
|
||||
*
|
||||
* @since 0.6.4
|
||||
*/
|
||||
int iso_text_to_sev(char *severity_name, int *severity_number);
|
||||
|
||||
|
||||
/**
|
||||
* 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 iso_msgs_submit(), e.g. "SORRY".
|
||||
*
|
||||
* @since 0.6.4
|
||||
*/
|
||||
int iso_sev_to_text(int severity_number, char **severity_name);
|
||||
|
||||
|
||||
/**
|
||||
* Get the id of an IsoImage, used for message reporting. This message id,
|
||||
* retrieved with iso_obtain_msgs(), can be used to distinguish what
|
||||
|
Reference in New Issue
Block a user