edf92dba223855dcb31d58dc0756a947d1452207
[metze/samba/wip.git] / source / lib / events / events_s4.c
1 /* 
2    Unix SMB/CIFS implementation.
3    Copyright (C) Andrew Tridgell 2003
4    
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 3 of the License, or
8    (at your option) any later version.
9    
10    This program 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
13    GNU General Public License for more details.
14    
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "includes.h"
20 #include "events.h"
21 #include "events_internal.h"
22
23 NTSTATUS s4_events_standard_init(void)
24 {
25        if (!events_standard_init()) {
26                return NT_STATUS_INTERNAL_ERROR;
27        }
28        return NT_STATUS_OK;
29 }
30
31 NTSTATUS s4_events_select_init(void)
32 {
33        if (!events_select_init()) {
34                return NT_STATUS_INTERNAL_ERROR;
35        }
36        return NT_STATUS_OK;
37 }
38
39 #if HAVE_EVENTS_EPOLL
40 NTSTATUS s4_events_epoll_init(void)
41 {
42        if (!events_epoll_init()) {
43                return NT_STATUS_INTERNAL_ERROR;
44        }
45        return NT_STATUS_OK;
46 }
47 #endif
48
49 #if HAVE_LINUX_AIO
50 NTSTATUS s4_events_aio_init(void)
51 {
52        if (!events_aio_init()) {
53                return NT_STATUS_INTERNAL_ERROR;
54        }
55        return NT_STATUS_OK;
56 }
57 #endif