diff options
author | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-05-20 20:40:37 +0800 |
---|---|---|
committer | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-08-20 19:11:11 +0800 |
commit | 07a671af77628fe419e0933e3a04dedf1f4efaa6 (patch) | |
tree | e00f0a3479649fd497d63f04ed9273d4ecb7d273 /tp-account-widgets/tpaw-debug.h | |
parent | 3d1021753d01d973c929c8758b11a147498377cc (diff) | |
download | gsoc2013-empathy-07a671af77628fe419e0933e3a04dedf1f4efaa6.tar gsoc2013-empathy-07a671af77628fe419e0933e3a04dedf1f4efaa6.tar.gz gsoc2013-empathy-07a671af77628fe419e0933e3a04dedf1f4efaa6.tar.bz2 gsoc2013-empathy-07a671af77628fe419e0933e3a04dedf1f4efaa6.tar.lz gsoc2013-empathy-07a671af77628fe419e0933e3a04dedf1f4efaa6.tar.xz gsoc2013-empathy-07a671af77628fe419e0933e3a04dedf1f4efaa6.tar.zst gsoc2013-empathy-07a671af77628fe419e0933e3a04dedf1f4efaa6.zip |
tp-account-widgets: remove internal copy
https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'tp-account-widgets/tpaw-debug.h')
-rw-r--r-- | tp-account-widgets/tpaw-debug.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/tp-account-widgets/tpaw-debug.h b/tp-account-widgets/tpaw-debug.h deleted file mode 100644 index 51ed827a6..000000000 --- a/tp-account-widgets/tpaw-debug.h +++ /dev/null @@ -1,87 +0,0 @@ -/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ -/* - * Copyright (C) 2007 Collabora Ltd. - * Copyright (C) 2007 Nokia Corporation - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __TPAW_DEBUG_H__ -#define __TPAW_DEBUG_H__ - -#include <glib.h> -#include <telepathy-glib/telepathy-glib.h> - -G_BEGIN_DECLS - -/* Please keep this enum in sync with #keys in tpaw-debug.c */ -typedef enum -{ - TPAW_DEBUG_CONTACT = 1 << 1, - TPAW_DEBUG_ACCOUNT = 1 << 2, - TPAW_DEBUG_IRC = 1 << 3, - TPAW_DEBUG_OTHER = 1 << 4, -} TpawDebugFlags; - -gboolean tpaw_debug_flag_is_set (TpawDebugFlags flag); -void tpaw_debug (TpawDebugFlags flag, const gchar *format, ...) - G_GNUC_PRINTF (2, 3); -void tpaw_debug_free (void); -void tpaw_debug_set_flags (const gchar *flags_string); -G_END_DECLS - -#endif /* __TPAW_DEBUG_H__ */ - -/* ------------------------------------ */ - -/* Below this point is outside the __DEBUG_H__ guard - so it can take effect - * more than once. So you can do: - * - * #define DEBUG_FLAG TPAW_DEBUG_ONE_THING - * #include "internal-debug.h" - * ... - * DEBUG ("if we're debugging one thing"); - * ... - * #undef DEBUG_FLAG - * #define DEBUG_FLAG TPAW_DEBUG_OTHER_THING - * #include "internal-debug.h" - * ... - * DEBUG ("if we're debugging the other thing"); - * ... - */ - -#ifdef DEBUG_FLAG -#ifdef ENABLE_DEBUG - -#undef DEBUG -#define DEBUG(format, ...) \ - tpaw_debug (DEBUG_FLAG, "%s: " format, G_STRFUNC, ##__VA_ARGS__) - -#undef DEBUGGING -#define DEBUGGING tpaw_debug_flag_is_set (DEBUG_FLAG) - -#else /* !defined (ENABLE_DEBUG) */ - -#undef DEBUG -#define DEBUG(format, ...) do {} while (0) - -#undef DEBUGGING -#define DEBUGGING 0 - -#endif /* !defined (ENABLE_DEBUG) */ - -#define gabble_debug_free() G_STMT_START { } G_STMT_END - -#endif /* defined (DEBUG_FLAG) */ |