aboutsummaryrefslogtreecommitdiff
path: root/src/lib/daemon_epoll.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/daemon_epoll.h')
-rw-r--r--src/lib/daemon_epoll.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/lib/daemon_epoll.h b/src/lib/daemon_epoll.h
new file mode 100644
index 00000000..50452d8d
--- /dev/null
+++ b/src/lib/daemon_epoll.h
@@ -0,0 +1,46 @@
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_epoll.h
22 * @brief non-public functions provided by daemon_epoll.c
23 * @author Christian Grothoff
24 */
25
26#ifndef DAEMON_EPOLL_H
27#define DAEMON_EPOLL_H
28
29#ifdef EPOLL_SUPPORT
30
31/**
32 * Do epoll()-based processing (this function is allowed to
33 * block if @a may_block is set to #MHD_YES).
34 *
35 * @param daemon daemon to run poll loop for
36 * @param may_block true if blocking, false if non-blocking
37 * @return #MHD_SC_OK on success
38 */
39enum MHD_StatusCode
40MHD_daemon_epoll_ (struct MHD_Daemon *daemon,
41 bool may_block)
42 MHD_NONNULL (1);
43
44#endif
45
46#endif