Apache2
simple_event.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "apr.h"
18 #include "apr_pools.h"
19 #include "apr_poll.h"
20 
21 #ifndef APACHE_MPM_SIMPLE_EVENT_H
22 #define APACHE_MPM_SIMPLE_EVENT_H
23 
24 /* pqXXXXXX: Pool based cleanups
25  */
26 
27 void
29  simple_timer_cb cb,
30  void *baton,
31  apr_time_t relative_time,
32  apr_pool_t *shutdown_pool);
33 
34 void
36 
37 #if THESE_ARE_JUST_IDEAS_PATCHES_WELCOME
41 void
42 simple_register_sock_io(simple_core_t * sc,
44  void *baton,
45  apr_socket_t * sock,
46  int watch_for, apr_time_t relative_timeout);
47 
51 void
52 simple_register_file_io(simple_core_t * sc,
54  void *baton,
55  apr_file_t * file,
56  int watch_for, apr_time_t relative_timeout);
57 
58 #endif
59 
60 #endif /* APACHE_MPM_SIMPLE_EVENT_H */
APR Platform Definitions.
APR Poll interface.
APR memory allocation.
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_int64_t apr_time_t
Definition: apr_time.h:45
void simple_register_timer(simple_core_t *sc, simple_timer_cb cb, void *baton, apr_time_t relative_time, apr_pool_t *shutdown_pool)
void simple_timer_run(simple_timer_t *ep)
void(* simple_io_sock_cb)(simple_core_t *sc, apr_socket_t *sock, int flags, void *baton)
Definition: simple_types.h:46
void(* simple_timer_cb)(simple_core_t *sc, void *baton)
Definition: simple_types.h:45
void(* simple_io_file_cb)(simple_core_t *sc, apr_socket_t *sock, int flags, void *baton)
Definition: simple_types.h:48
Definition: apr_arch_file_io.h:107
Definition: apr_arch_networkio.h:37
Definition: simple_types.h:92
Definition: simple_types.h:75