aboutsummaryrefslogtreecommitdiff
path: root/src/lib/request_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/request_info.c')
-rw-r--r--src/lib/request_info.c53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/lib/request_info.c b/src/lib/request_info.c
new file mode 100644
index 00000000..4a903ef0
--- /dev/null
+++ b/src/lib/request_info.c
@@ -0,0 +1,53 @@
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/request_info.c
22 * @brief implementation of MHD_request_get_information_sz()
23 * @author Christian Grothoff
24 */
25#include "internal.h"
26
27
28/**
29 * Obtain information about the given request.
30 * Use wrapper macro #MHD_request_get_information() instead of direct use
31 * of this function.
32 *
33 * @param request what request to get information about
34 * @param info_type what information is desired?
35 * @param[out] return_value pointer to union where requested information will
36 * be stored
37 * @param return_value_size size of union MHD_RequestInformation at compile
38 * time
39 * @return #MHD_YES on success, #MHD_NO on error
40 * (@a info_type is unknown, NULL pointer etc.)
41 * @ingroup specialized
42 */
43enum MHD_Bool
44MHD_request_get_information_sz (struct MHD_Request *request,
45 enum MHD_RequestInformationType info_type,
46 union MHD_RequestInformation *return_value,
47 size_t return_value_size)
48{
49 return MHD_NO; /* not implemented */
50}
51
52
53/* end of request_info.c */