diff options
Diffstat (limited to 'src/lib/connection_info.c')
-rw-r--r-- | src/lib/connection_info.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/lib/connection_info.c b/src/lib/connection_info.c new file mode 100644 index 00000000..a4337679 --- /dev/null +++ b/src/lib/connection_info.c | |||
@@ -0,0 +1,52 @@ | |||
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/connection_info.c | ||
22 | * @brief implementation of MHD_connection_get_information_sz() | ||
23 | * @author Christian Grothoff | ||
24 | */ | ||
25 | #include "internal.h" | ||
26 | |||
27 | |||
28 | /** | ||
29 | * Obtain information about the given connection. | ||
30 | * Use wrapper macro #MHD_connection_get_information() instead of direct use | ||
31 | * of this function. | ||
32 | * | ||
33 | * @param connection what connection 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_ConnectionInformation 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 | */ | ||
43 | enum MHD_Bool | ||
44 | MHD_connection_get_information_sz (struct MHD_Connection *connection, | ||
45 | enum MHD_ConnectionInformationType info_type, | ||
46 | union MHD_ConnectionInformation *return_value, | ||
47 | size_t return_value_size) | ||
48 | { | ||
49 | return MHD_NO; /* FIXME: not yet implemented */ | ||
50 | } | ||
51 | |||
52 | /* end of connection_info.c */ | ||