gmyth/src/gmyth_debug.h
author rosfran
Wed May 23 16:11:29 2007 +0100 (2007-05-23)
branchtrunk
changeset 698 9019388af980
parent 319 69382cca242e
child 701 2f28edb4d804
permissions -rw-r--r--
[svn r704] Added gmyth-upnp-search, to search for MythTV UPnP devices.
renatofilho@132
     1
/**
renatofilho@132
     2
 * GMyth Library
renatofilho@132
     3
 *
renatofilho@132
     4
 * @file gmyth/gmyth_debug.h
renatofilho@132
     5
 * 
renatofilho@132
     6
 *
renatofilho@132
     7
 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
renatofilho@132
     8
 * @author Renato Filho <renato.filho@indt.org.br>
renatofilho@132
     9
 *
rosfran@698
    10
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              *//*
rosfran@698
    11
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * 
rosfran@698
    12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * This program is free software; you can redistribute it and/or modify
rosfran@698
    13
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * it under the terms of the GNU Lesser General Public License as published by
rosfran@698
    14
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * the Free Software Foundation; either version 2 of the License, or
rosfran@698
    15
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * (at your option) any later version.
rosfran@698
    16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 *
rosfran@698
    17
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * This program is distributed in the hope that it will be useful,
rosfran@698
    18
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rosfran@698
    19
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
rosfran@698
    20
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * GNU General Public License for more details.
rosfran@698
    21
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 *
rosfran@698
    22
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * You should have received a copy of the GNU Lesser General Public License
rosfran@698
    23
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * along with this program; if not, write to the Free Software
rosfran@698
    24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
rosfran@698
    25
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 */
renatofilho@132
    26
renatofilho@132
    27
#ifndef __GMYTH_DEBUG_H__
renatofilho@132
    28
#define __GMYTH_DEBUG_H__
renatofilho@132
    29
renatofilho@132
    30
#include <stdarg.h>
renatofilho@132
    31
#include <glib.h>
renatofilho@150
    32
#include <time.h>
renatofilho@132
    33
renatofilho@132
    34
G_BEGIN_DECLS
renatofilho@319
    35
#ifdef GMYTH_USE_DEBUG
renatofilho@132
    36
#define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
renatofilho@319
    37
#else
renatofilho@319
    38
#define gmyth_debug(...)
renatofilho@319
    39
#endif
rosfran@698
    40
    void
rosfran@698
    41
gmyth_debug_real (const char *func,
rosfran@698
    42
    const char *file, int line, gboolean newline, const char *format, ...)
rosfran@698
    43
G_GNUC_PRINTF (5, 6);
renatofilho@132
    44
renatofilho@132
    45
G_END_DECLS
renatofilho@132
    46
#endif