"Fossies" - the Fresh Open Source Software Archive 
Member "xorriso-1.5.4/libisofs/messages.h" (30 Jan 2021, 1593 Bytes) of package /linux/misc/xorriso-1.5.4.pl02.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "messages.h" see the
Fossies "Dox" file reference documentation.
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_*/