diff options
author | Perberos <[email protected]> | 2011-11-06 19:30:49 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-06 19:30:49 -0300 |
commit | a8d28a6ce7e0c56dacba5d527d9134573a008902 (patch) | |
tree | 8852602004b5a13cc5d1ce3ecd7a314be81d1198 /src/eom-debug.h | |
download | eom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.bz2 eom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.xz |
inicial
Diffstat (limited to 'src/eom-debug.h')
-rw-r--r-- | src/eom-debug.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/eom-debug.h b/src/eom-debug.h new file mode 100644 index 0000000..bde758c --- /dev/null +++ b/src/eom-debug.h @@ -0,0 +1,75 @@ +/* Eye Of Mate - Debugging + * + * Copyright (C) 2007 The Free Software Foundation + * + * Author: Lucas Rocha <[email protected]> + * + * Based on gedit code (gedit/gedit-debug.h) by: + * - Alex Roberts <[email protected]> + * - Evan Lawrence <[email protected]> + * - Chema Celorio <[email protected]> + * - Paolo Maggi <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __EOM_DEBUG_H__ +#define __EOM_DEBUG_H__ + +#include <glib.h> + +typedef enum { + EOM_NO_DEBUG = 0, + EOM_DEBUG_WINDOW = 1 << 0, + EOM_DEBUG_VIEW = 1 << 1, + EOM_DEBUG_JOBS = 1 << 2, + EOM_DEBUG_THUMBNAIL = 1 << 3, + EOM_DEBUG_IMAGE_DATA = 1 << 4, + EOM_DEBUG_IMAGE_LOAD = 1 << 5, + EOM_DEBUG_IMAGE_SAVE = 1 << 6, + EOM_DEBUG_LIST_STORE = 1 << 7, + EOM_DEBUG_PREFERENCES = 1 << 8, + EOM_DEBUG_PRINTING = 1 << 9, + EOM_DEBUG_LCMS = 1 << 10, + EOM_DEBUG_PLUGINS = 1 << 11 +} EomDebugSection; + +#define DEBUG_WINDOW EOM_DEBUG_WINDOW, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_VIEW EOM_DEBUG_VIEW, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_JOBS EOM_DEBUG_JOBS, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_THUMBNAIL EOM_DEBUG_THUMBNAIL, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_IMAGE_DATA EOM_DEBUG_IMAGE_DATA, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_IMAGE_LOAD EOM_DEBUG_IMAGE_LOAD, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_IMAGE_SAVE EOM_DEBUG_IMAGE_SAVE, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_LIST_STORE EOM_DEBUG_LIST_STORE, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_PREFERENCES EOM_DEBUG_PREFERENCES, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_PRINTING EOM_DEBUG_PRINTING, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_LCMS EOM_DEBUG_LCMS, __FILE__, __LINE__, G_STRFUNC +#define DEBUG_PLUGINS EOM_DEBUG_PLUGINS, __FILE__, __LINE__, G_STRFUNC + +void eom_debug_init (void); + +void eom_debug (EomDebugSection section, + const gchar *file, + gint line, + const gchar *function); + +void eom_debug_message (EomDebugSection section, + const gchar *file, + gint line, + const gchar *function, + const gchar *format, ...) G_GNUC_PRINTF(5, 6); + +#endif /* __EOM_DEBUG_H__ */ |