libUnihan  0.5.3
verboseMsg.h
Go to the documentation of this file.
1 
21 /*
22  * Copyright © 2008 Red Hat, Inc. All rights reserved.
23  * Copyright © 2008 Ding-Yi Chen <dchen at redhat dot com>
24  *
25  * This file is part of the libUnihan Project.
26  *
27  * This library is free software; you can redistribute it and/or
28  * modify it under the terms of the GNU Lesser General Public
29  * License as published by the Free Software Foundation; either
30  * version 2 of the License, or (at your option) any later version.
31  *
32  * This library is distributed in the hope that it will be useful,
33  * but WITHOUT ANY WARRANTY; without even the implied warranty of
34  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35  * GNU Lesser General Public License for more details.
36  *
37  * You should have received a copy of the GNU Lesser General Public
38  * License along with this program; if not, write to the
39  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
40  * Boston, MA 02111-1307 USA
41  */
42 
43 #ifndef VERBOSEMSG_H_
44 #define VERBOSEMSG_H_
45 #include <stdio.h>
46 #include <glib.h>
55 #define VERBOSE_MSG_NONE -1
56 #define VERBOSE_MSG_CRITICAL 0
57 #define VERBOSE_MSG_ERROR 1
58 #define VERBOSE_MSG_WARNING 2
59 #define VERBOSE_MSG_INFO1 3
60 #define VERBOSE_MSG_INFO2 4
61 #define VERBOSE_MSG_INFO3 5
62 #define VERBOSE_MSG_INFO4 6
63 #define VERBOSE_MSG_INFO5 7
64 #define VERBOSE_MSG_INFO6 8
65 
66 
76 
82 void verboseMsg_set_level(gint verboseLevel);
83 
90 
96 void verboseMsg_set_fileLevel(gint fileVerboseLevel);
97 
103 void verboseMsg_set_logFile(FILE *outputFile);
104 
105 
122 gint verboseMsg_print(gint verboseLevel, const gchar *format, ...);
123 
132 void verboseMsg_increase_level(gint difference);
133 
134 #endif /*VERBOSEMSG_H_*/