Heraia  0.1.8
log.h
Go to the documentation of this file.
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /*
3  log.h
4  log functions for heraia
5 
6  (C) Copyright 2006 - 2011 Olivier Delhomme
7  e-mail : heraia@delhomme.org
8  URL : http://heraia.tuxfamily.org
9 
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2, or (at your option)
13  any later version.
14 
15  This program 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. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
23 /**
24  * @file log.h
25  * Header file for the logging subsystem
26  */
27 #ifndef _HERAIA_LOG_H_
28 #define _HERAIA_LOG_H_
29 
30 /**
31  * @def HERAIA_LOG_DOMAIN
32  * Defines heraia log domain (the one printed out on the logging window)
33  */
34 #define HERAIA_LOG_DOMAIN "Heraia"
35 
36 /* Messages */
37 extern void print_message(const char *format, ...);
38 extern void log_message(heraia_struct_t *main_struct, GLogLevelFlags log_level, const char *format, ...);
39 extern void log_window_init_interface(heraia_struct_t *main_struct);
40 extern void mw_cmi_show_logw_toggle(GtkWidget *widget, gpointer data);
41 
42 #endif /* _HERAIA_LOG_H_ */
This is the main structure.
Definition: libheraia.h:332
void mw_cmi_show_logw_toggle(GtkWidget *widget, gpointer data)
The Check menu item for the Log window.
Definition: log.c:263
void log_message(heraia_struct_t *main_struct, GLogLevelFlags log_level, const char *format,...)
A function that helps logging a message a the specified level.
Definition: log.c:195
void log_window_init_interface(heraia_struct_t *main_struct)
Inits the log window interface Called once at init time.
Definition: log.c:376
void print_message(const char *format,...)
Prints a message to stdout.
Definition: log.c:44