1.1 --- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/pecan_log.h Fri Aug 21 13:24:36 2009 -0700
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,79 +0,0 @@
1.4 -/**
1.5 - * Copyright (C) 2007-2008 Felipe Contreras
1.6 - *
1.7 - * This program is free software; you can redistribute it and/or modify
1.8 - * it under the terms of the GNU General Public License as published by
1.9 - * the Free Software Foundation; either version 2 of the License, or
1.10 - * (at your option) any later version.
1.11 - *
1.12 - * This program is distributed in the hope that it will be useful,
1.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.15 - * GNU General Public License for more details.
1.16 - *
1.17 - * You should have received a copy of the GNU General Public License
1.18 - * along with this program; if not, write to the Free Software
1.19 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.20 - */
1.21 -
1.22 -#ifndef PECAN_LOG_H
1.23 -#define PECAN_LOG_H
1.24 -
1.25 -#include <glib.h>
1.26 -#include "msn.h"
1.27 -
1.28 -#define PECAN_DEBUG
1.29 -
1.30 -#if defined(PECAN_DEBUG)
1.31 -
1.32 -/* #define PECAN_DEBUG_MSG */
1.33 -/* #define PECAN_DEBUG_SLPMSG */
1.34 -/* #define PECAN_DEBUG_HTTP */
1.35 -
1.36 -/* #define PECAN_DEBUG_SLP_VERBOSE */
1.37 -/* #define PECAN_DEBUG_SLP_FILES */
1.38 -
1.39 -/* #define PECAN_DEBUG_NS */
1.40 -/* #define PECAN_DEBUG_SB */
1.41 -/* #define PECAN_DEBUG_DC */
1.42 -
1.43 -/* #define PECAN_DEBUG_DC_FILES */
1.44 -
1.45 -enum PecanLogLevel
1.46 -{
1.47 - PECAN_LOG_LEVEL_NONE,
1.48 - PECAN_LOG_LEVEL_ERROR,
1.49 - PECAN_LOG_LEVEL_WARNING,
1.50 - PECAN_LOG_LEVEL_INFO,
1.51 - PECAN_LOG_LEVEL_DEBUG,
1.52 - PECAN_LOG_LEVEL_LOG
1.53 -};
1.54 -
1.55 -typedef enum PecanLogLevel PecanLogLevel;
1.56 -
1.57 -void msn_base_log_helper (PecanLogLevel level, const gchar *file, const gchar *function, gint line, const gchar *fmt, ...);
1.58 -void msn_dump_file (const gchar *buffer, gsize len);
1.59 -
1.60 -#define pecan_print(...) g_print (__VA_ARGS__);
1.61 -
1.62 -#define msn_base_log(level, ...) msn_base_log_helper (level, __FILE__, __func__, __LINE__, __VA_ARGS__);
1.63 -
1.64 -#define pecan_error(...) msn_base_log (PECAN_LOG_LEVEL_ERROR, __VA_ARGS__);
1.65 -#define pecan_warning(...) msn_base_log (PECAN_LOG_LEVEL_WARNING, __VA_ARGS__);
1.66 -#define pecan_info(...) msn_base_log (PECAN_LOG_LEVEL_INFO, __VA_ARGS__);
1.67 -#define pecan_debug(...) msn_base_log (PECAN_LOG_LEVEL_DEBUG, __VA_ARGS__);
1.68 -#define pecan_log(...) msn_base_log (PECAN_LOG_LEVEL_LOG, __VA_ARGS__);
1.69 -
1.70 -#elif !defined(PECAN_DEBUG)
1.71 -
1.72 -#define pecan_print(...) {}
1.73 -#define pecan_error(...) {}
1.74 -#define pecan_warning(...) {}
1.75 -#define pecan_info(...) {}
1.76 -#define pecan_debug(...) {}
1.77 -#define pecan_log(...) {}
1.78 -#define msn_dump_file(...) {}
1.79 -
1.80 -#endif /* !defined(PECAN_DEBUG) */
1.81 -
1.82 -#endif /* PECAN_LOG_H */