aboutsummaryrefslogtreecommitdiff
path: root/src/lib/action_continue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/action_continue.c')
-rw-r--r--src/lib/action_continue.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/lib/action_continue.c b/src/lib/action_continue.c
new file mode 100644
index 00000000..0367f536
--- /dev/null
+++ b/src/lib/action_continue.c
@@ -0,0 +1,60 @@
1/*
2 This file is part of libmicrohttpd
3 Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18*/
19
20/**
21 * @file lib/action_continue.c
22 * @brief implementation of MHD_action_continue()
23 * @author Christian Grothoff
24 */
25#include "internal.h"
26
27
28/**
29 * The continue action is being run. Continue
30 * handling the upload.
31 *
32 * @param cls NULL
33 * @param request the request to apply the action to
34 */
35static void
36cont_action (void *cls,
37 struct MHD_Request *request)
38{
39 /* not sure yet, but this function body may
40 just legitimately stay empty... */
41}
42
43
44/**
45 * Action telling MHD to continue processing the upload.
46 *
47 * @return action operation, never NULL
48 */
49struct MHD_Action *
50MHD_action_continue (void)
51{
52 static MHD_Action acont = {
53 .action = &cont_action,
54 .action_cls = NULL
55 };
56
57 return &acont;
58}
59
60/* end of action_continue.c */