~ubuntu-branches/ubuntu/precise/empathy/precise-proposed-201205180810

« back to all changes in this revision

Viewing changes to telepathy-yell/telepathy-yell/debug.h

  • Committer: Bazaar Package Importer
  • Author(s): Brian Curtis, Brian Curtis, Ken VanDine
  • Date: 2011-06-01 10:35:24 UTC
  • mfrom: (1.1.70 upstream) (6.3.44 experimental)
  • Revision ID: james.westby@ubuntu.com-20110601103524-wx3wgp71394730jt
Tags: 3.1.1-1ubuntu1
[ Brian Curtis ]
* Merge with Debian experimental, remaining Ubuntu changes:
* debian/control:
  - Drop geoclue/mapping build-depends (they are in Universe)
  - Add Vcz-Bzr link
  - Add Suggests on telepathy-idle
  - Bump telepathy-butterfly, telepathy-haze to recommends
  - Don't recommend the freedesktop sound theme we have an ubuntu one
  - Add build depend for libunity-dev
* debian/rules:
  - Use autoreconf.mk
  - Disable map and location
* debian/empathy.install:
  - Install message indicator configuration
* debian/indicators/empathy:
  - Message indicator configuration
* debian/patches/01_lpi.patch:
  - Add Launchpad integration
* debian/patches/10_use_notify_osd_icons.patch:
  - Use the notify-osd image for new messages
* debian/patches/34_start_raised_execpt_in_session.patch
  - If not started with the session, we should always raise
* debian/patches/36_chat_window_default_size.patch:
  - Make the default chat window size larger
* debian/patches/37_facebook_default.patch:
  - Make facebook the default chat account type
* debian/patches/38_lp_569289.patch
  - Set freenode as default IRC network for new IRC accounts 
* debian/patches/41_unity_launcher_progress.patch
  - Display file transfer progress in the unity launcher

[ Ken VanDine ]
* debian/control
  - build depend on libgcr-3-dev instead of libgcr-dev
  - dropped build depends for libindicate, we will use telepathy-indicator
  - Depend on dconf-gsettings-backend | gsettings-backend
  - Added a Recommends for telepathy-indicator
* +debian/empathy.gsettings-override
  - Added an override for notifications-focus
* debian/patches/series
  - commented out 23_idomessagedialog_for_voip_and_ft.patch, until ido has 
    been ported to gtk3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * debug.h - debugging utilities for telepathy-yell
3
 
 * Copyright (C) 2010 Collabora Ltd.
4
 
 * @author Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
5
 
 *
6
 
 * This library is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU Lesser General Public
8
 
 * License as published by the Free Software Foundation; either
9
 
 * version 2.1 of the License, or (at your option) any later version.
10
 
 *
11
 
 * This library is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
 * Lesser General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Lesser General Public
17
 
 * License along with this library; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef __TPY_DEBUG_H__
22
 
#define __TPY_DEBUG_H__
23
 
 
24
 
#include "config.h"
25
 
#include <glib.h>
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
29
 
typedef enum
30
 
{
31
 
  TPY_DEBUG_CALL = 1 << 0
32
 
} TpyDebugFlags;
33
 
 
34
 
void tpy_debug_set_flags (const char *flags_string);
35
 
 
36
 
void tpy_log (GLogLevelFlags level, TpyDebugFlags flag,
37
 
                const gchar *format, ...) G_GNUC_PRINTF(3, 4);
38
 
 
39
 
#ifdef DEBUG_FLAG
40
 
 
41
 
#define ERROR(format, ...) \
42
 
  tpy_log (G_LOG_LEVEL_ERROR, DEBUG_FLAG, "%s: " format, \
43
 
             G_STRFUNC, ##__VA_ARGS__)
44
 
#define CRITICAL(format, ...) \
45
 
  tpy_log (G_LOG_LEVEL_CRITICAL, DEBUG_FLAG, "%s: " format, \
46
 
             G_STRFUNC, ##__VA_ARGS__)
47
 
#define WARNING(format, ...) \
48
 
  tpy_log (G_LOG_LEVEL_WARNING, DEBUG_FLAG, "%s: " format, \
49
 
             G_STRFUNC, ##__VA_ARGS__)
50
 
#define MESSAGE(format, ...) \
51
 
  tpy_log (G_LOG_LEVEL_MESSAGE, DEBUG_FLAG, "%s: " format, \
52
 
             G_STRFUNC, ##__VA_ARGS__)
53
 
#define INFO(format, ...) \
54
 
  tpy_log (G_LOG_LEVEL_INFO, DEBUG_FLAG, "%s: " format, \
55
 
             G_STRFUNC, ##__VA_ARGS__)
56
 
#define DEBUG(format, ...) \
57
 
  tpy_log (G_LOG_LEVEL_DEBUG, DEBUG_FLAG, "%s: " format, \
58
 
             G_STRFUNC, ##__VA_ARGS__)
59
 
 
60
 
#endif /* DEBUG_FLAG */
61
 
 
62
 
G_END_DECLS
63
 
 
64
 
#endif /* __TPY_DEBUG_H__ */