aboutsummaryrefslogtreecommitdiff
path: root/src/lib/daemon_select.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/daemon_select.h')
-rw-r--r--src/lib/daemon_select.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/lib/daemon_select.h b/src/lib/daemon_select.h
new file mode 100644
index 00000000..3625ea87
--- /dev/null
+++ b/src/lib/daemon_select.h
@@ -0,0 +1,43 @@
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/daemon_select.h
22 * @brief non-public functions provided by daemon_select.c
23 * @author Christian Grothoff
24 */
25
26#ifndef DAEMON_SELECT_H
27#define DAEMON_SELECT_H
28
29/**
30 * Main internal select() call. Will compute select sets, call
31 * select() and then #internal_run_from_select() with the result.
32 *
33 * @param daemon daemon to run select() loop for
34 * @param may_block #MHD_YES if blocking, #MHD_NO if non-blocking
35 * @return #MHD_SC_OK on success
36 */
37enum MHD_StatusCode
38MHD_daemon_select_ (struct MHD_Daemon *daemon,
39 int may_block)
40 MHD_NONNULL(1);
41
42
43#endif