4
* Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation and
10
* appearing in the file LICENSE.LGPL included in the package of this file.
11
* You can also redistribute it and/or modify it under the terms of
12
* the GNU General Public License as published by the Free Software Foundation and
13
* appearing in the file LICENSE.GPL included in the package of this file.
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22
* @author Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
23
* @brief This header is used for print out error messages.
25
#ifndef SCIMBRIDGEOUTPUT_H_
26
#define SCIMBRIDGEOUTPUT_H_
28
#include "scim-bridge.h"
29
#include "scim-bridge-debug.h"
37
* Print out a message and give a line feed ('\n').
38
* The messages will be shown in the stdout.
40
* @param format The message in printf style.
42
void scim_bridge_println (const char *format,...);
45
* Print out an error message and give a line feed ('\n').
46
* The error messages will be shown in the stderr.
48
* @param format The message in printf style.
50
void scim_bridge_perrorln (const char *format,...);
53
* Print out an debug message and give a line feed ('\n').
54
* The error messages will be shown in the stdout.
55
* Note, the message will be ignored if the given debug level is lower than that of the preference.
56
* @ ee scim_bridge_debug_get_level ()
58
* @param level The debug level.
59
* @param format The message in printf style.
61
void scim_bridge_pdebugln (scim_bridge_debug_level_t level, const char *format,...);
64
* Print out a message without giving a line feed ('\n').
65
* The messages will be shown in the stdout.
67
* @param format The message in printf style.
69
void scim_bridge_print (const char *format,...);
72
* Print out an error message without giving a line feed ('\n').
73
* The error messages will be shown in the stderr.
75
* @param format The message in printf style.
77
void scim_bridge_perror (const char *format,...);
80
* Print out an debug message without giving a line feed ('\n').
81
* The error messages will be shown in the stdout.
82
* Note, the message will be ignored if the given debug level is lower than that of the preference.
83
* @ ee scim_bridge_debug_get_level ()
85
* @param level The debug level.
86
* @param format The message in printf style.
88
void scim_bridge_pdebug (scim_bridge_debug_level_t level, const char *format,...);
93
#endif /*SCIMBRIDGEOUTPUT_H_*/