xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

messages.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007 Vreixo Formoso
3  *
4  * This file is part of the libisofs project; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License version 2
6  * or later as published by the Free Software Foundation.
7  * See COPYING file for details.
8  */
9 
10 /*
11  * Message handling for libisofs
12  */
13 
14 #ifndef MESSAGES_H_
15 #define MESSAGES_H_
16 
17 /**
18  * Take and increment this variable to get a valid identifier for message
19  * origin.
20  */
21 extern int iso_message_id;
22 
23 /**
24  * Submit a debug message.
25  */
26 void iso_msg_debug(int imgid, const char *fmt, ...);
27 
28 
29 /**
30  * Inquire whether the given error code triggers the abort threshold
31  */
32 int iso_msg_is_abort(int errcode);
33 
34 
35 /**
36  *
37  * @param errcode
38  * The error code.
39  * @param causedby
40  * Error that was caused the errcode. If this error is a FATAL error,
41  * < 0 will be returned in any case. Use 0 if there is no previous
42  * cause for the error.
43  * @return
44  * 0 on success, < 0 if function must abort asap.
45  */
46 int iso_msg_submit(int imgid, int errcode, int causedby, const char *fmt, ...);
47 
48 
49 /* To be called with events which report incidents with individual input
50  files from the local filesystem. Not with image nodes, files containing an
51  image or similar file-like objects.
52 */
53 int iso_report_errfile(char *path, int error_code, int os_errno, int flag);
54 
55 
56 /* Drains the libjte message list and puts out the messages via
57  iso_msg_submit()
58 */
59 int iso_libjte_forward_msgs(void *libjte_handle,
60  int imgid, int errcode, int flag);
61 
62 #endif /*MESSAGES_H_*/
int iso_report_errfile(char *path, int error_code, int os_errno, int flag)
Definition: messages.c:783
int iso_libjte_forward_msgs(void *libjte_handle, int imgid, int errcode, int flag)
Definition: messages.c:792
int iso_msg_submit(int imgid, int errcode, int causedby, const char *fmt,...)
Definition: messages.c:579
int iso_message_id
Definition: messages.c:73
int iso_msg_is_abort(int errcode)
Definition: messages.c:571
void iso_msg_debug(int imgid, const char *fmt,...)
Definition: messages.c:253