aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/internal.c')
-rw-r--r--src/daemon/internal.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/daemon/internal.c b/src/daemon/internal.c
new file mode 100644
index 00000000..ce06e2c6
--- /dev/null
+++ b/src/daemon/internal.c
@@ -0,0 +1,47 @@
1/*
2 This file is part of libmicrohttpd
3 (C) 2007 Daniel Pittman
4
5 libmicrohttpd is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 libmicrohttpd is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with libmicrohttpd; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file internal.h
23 * @brief internal shared structures
24 * @author Daniel Pittman
25 * @author Christian Grothoff
26 * @version 0.1.0
27 */
28
29#include "internal.h"
30
31
32/**
33 * fprintf-like helper function for logging debug
34 * messages.
35 */
36void MHD_DLOG(const struct MHD_Daemon * daemon,
37 const char * format,
38 ...) {
39 va_list va;
40
41 if ( (daemon->options & MHD_USE_DEBUG) == 0)
42 return;
43 va_start(va, format);
44 vfprintf(stderr, format, va);
45 va_end(va);
46}
47