gmyth-dbus/src/gmyth_debug.h
branchtrunk
changeset 902 f22ca7dadc01
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gmyth-dbus/src/gmyth_debug.h	Thu Jan 31 19:56:16 2008 +0000
     1.3 @@ -0,0 +1,42 @@
     1.4 +/**
     1.5 + * GMyth Library
     1.6 + *
     1.7 + * @file gmyth/gmyth_debug.h
     1.8 + * 
     1.9 + *
    1.10 + * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
    1.11 + * @author Renato Filho <renato.filho@indt.org.br>
    1.12 + *
    1.13 +* 
    1.14 +* This program is free software; you can redistribute it and/or modify
    1.15 +* it under the terms of the GNU Lesser General Public License as published by
    1.16 +* the Free Software Foundation; either version 2 of the License, or
    1.17 +* (at your option) any later version.
    1.18 +*
    1.19 +* This program is distributed in the hope that it will be useful,
    1.20 +	* but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.21 +	* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.22 +	* GNU General Public License for more details.
    1.23 +	*
    1.24 +	* You should have received a copy of the GNU Lesser General Public License
    1.25 +	* along with this program; if not, write to the Free Software
    1.26 +	* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.27 +	*/
    1.28 +
    1.29 +#ifndef __GMYTH_DEBUG_H__
    1.30 +#define __GMYTH_DEBUG_H__
    1.31 +
    1.32 +#include <stdarg.h>
    1.33 +#include <glib.h>
    1.34 +#include <time.h>
    1.35 +
    1.36 +G_BEGIN_DECLS
    1.37 +#define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
    1.38 +void
    1.39 +gmyth_debug_real(const char *func,
    1.40 +                 const char *file, int line, gboolean newline,
    1.41 +                 const char *format, ...)
    1.42 +G_GNUC_PRINTF(5, 6);
    1.43 +
    1.44 +G_END_DECLS
    1.45 +#endif