diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/daemon/Makefile.am | 27 | ||||
-rw-r--r-- | src/daemon/daemon.c | 29 | ||||
-rw-r--r-- | src/include/microhttpd.h | 5 |
4 files changed, 59 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 00000000..401b0ad1 --- /dev/null +++ b/src/Makefile.am | |||
@@ -0,0 +1 @@ | |||
SUBDIRS = include daemon . | |||
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am new file mode 100644 index 00000000..fcc2c495 --- /dev/null +++ b/src/daemon/Makefile.am | |||
@@ -0,0 +1,27 @@ | |||
1 | SUBDIRS = . | ||
2 | |||
3 | INCLUDES = -I$(top_srcdir)/src/include | ||
4 | |||
5 | lib_LTLIBRARIES = \ | ||
6 | libmicrohttpd.la | ||
7 | |||
8 | libmicrohttpd_la_LDFLAGS = \ | ||
9 | -export-dynamic -version-info 0:0:0 | ||
10 | # libmicrohttpd_la_LIBADD = \ | ||
11 | # -lm | ||
12 | libmicrohttpd_la_SOURCES = \ | ||
13 | daemon.c | ||
14 | |||
15 | # No curl, not testcases | ||
16 | if HAVE_CURL | ||
17 | |||
18 | check_PROGRAMS = \ | ||
19 | testdaemon | ||
20 | |||
21 | test_daemon_SOURCES = \ | ||
22 | testdaemon.c | ||
23 | test_daemon_LDADD = \ | ||
24 | $(top_builddir)/src/daemon/libmicrohttpd.la \ | ||
25 | @LIBCURL@ | ||
26 | |||
27 | endif \ No newline at end of file | ||
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c new file mode 100644 index 00000000..f70ca34d --- /dev/null +++ b/src/daemon/daemon.c | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | This file is part of libmicrohttpd | ||
3 | (C) 2007 YOUR NAME HERE | ||
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 daemon.c | ||
23 | * @brief FIXME | ||
24 | * @author FIXME | ||
25 | */ | ||
26 | |||
27 | #include "config.h" | ||
28 | #include "microhttpd.h" | ||
29 | |||
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 58e3d1ab..a17f41f2 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libmicrohttpd | 2 | This file is part of libmicrohttpd |
3 | (C) 2006 Christian Grothoff (and other contributing authors) | 3 | (C) 2006, 2007 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | libmicrohttpd is free software; you can redistribute it and/or modify | 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 | 6 | it under the terms of the GNU General Public License as published |
@@ -31,8 +31,7 @@ | |||
31 | * thread-safe.<p> | 31 | * thread-safe.<p> |
32 | * | 32 | * |
33 | * TODO: | 33 | * TODO: |
34 | * - Is it ok to treat POST data and GET-URI arguments (a=4&b=5) equally, | 34 | * - proper API for file uploads via HTTP |
35 | * or do we need an extra pair of methods? | ||
36 | * - We probably need a significantly more extensive API for | 35 | * - We probably need a significantly more extensive API for |
37 | * proper SSL support (set local certificate, etc.) | 36 | * proper SSL support (set local certificate, etc.) |
38 | */ | 37 | */ |