summaryrefslogtreecommitdiffstats
path: root/src/debug.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-12 17:38:36 +0100
committerGravatar Martin Szulecki2010-01-12 17:38:36 +0100
commit3b57fa5d0ed2d8060233fa9604bd7f98a7d6cdab (patch)
tree5849ff972c4890b2db61a70c5e806cbd03a292b7 /src/debug.h
parent219a8db037ec1cc163d2ad4902e6e4578040a2de (diff)
downloadlibimobiledevice-3b57fa5d0ed2d8060233fa9604bd7f98a7d6cdab.tar.gz
libimobiledevice-3b57fa5d0ed2d8060233fa9604bd7f98a7d6cdab.tar.bz2
Rename utils to debug as it does exactly that, contain debug code
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/debug.h b/src/debug.h
new file mode 100644
index 0000000..96844dd
--- /dev/null
+++ b/src/debug.h
@@ -0,0 +1,33 @@
1/*
2 * debug.h
3 * contains utilitary methos for logging and debugging
4 *
5 * Copyright (c) 2008 Jonathan Beck All Rights Reserved.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#ifndef DEBUG_H
23#define DEBUG_H
24
25#include <glib.h>
26
27G_GNUC_INTERNAL inline void log_debug_msg(const char *format, ...);
28G_GNUC_INTERNAL inline void log_dbg_msg(uint16_t id, const char *format, ...);
29
30G_GNUC_INTERNAL inline void log_debug_buffer(const char *data, const int length);
31G_GNUC_INTERNAL inline void dump_debug_buffer(const char *file, const char *data, const int length);
32
33#endif