1251875Speter/* Licensed to the Apache Software Foundation (ASF) under one or more
2251875Speter * contributor license agreements.  See the NOTICE file distributed with
3251875Speter * this work for additional information regarding copyright ownership.
4251875Speter * The ASF licenses this file to You under the Apache License, Version 2.0
5251875Speter * (the "License"); you may not use this file except in compliance with
6251875Speter * the License.  You may obtain a copy of the License at
7251875Speter *
8251875Speter *     http://www.apache.org/licenses/LICENSE-2.0
9251875Speter *
10251875Speter * Unless required by applicable law or agreed to in writing, software
11251875Speter * distributed under the License is distributed on an "AS IS" BASIS,
12251875Speter * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13251875Speter * See the License for the specific language governing permissions and
14251875Speter * limitations under the License.
15251875Speter */
16251875Speter
17251875Speter#ifndef APR_SUPPORT_H
18251875Speter#define APR_SUPPORT_H
19251875Speter
20251875Speter/**
21251875Speter * @file apr_support.h
22251875Speter * @brief APR Support functions
23251875Speter */
24251875Speter
25251875Speter#include "apr.h"
26251875Speter#include "apr_network_io.h"
27251875Speter#include "apr_file_io.h"
28251875Speter
29251875Speter#ifdef __cplusplus
30251875Speterextern "C" {
31251875Speter#endif /* __cplusplus */
32251875Speter
33251875Speter/**
34251875Speter * @defgroup apr_support Internal APR support functions
35251875Speter * @ingroup APR
36251875Speter * @{
37251875Speter */
38251875Speter
39251875Speter/**
40251875Speter * Wait for IO to occur or timeout.
41251875Speter *
42251875Speter * @param f The file to wait on.
43251875Speter * @param s The socket to wait on if @a f is @c NULL.
44251875Speter * @param for_read If non-zero wait for data to be available to read,
45251875Speter *        otherwise wait for data to be able to be written.
46251875Speter * @return APR_TIMEUP if we run out of time.
47251875Speter */
48251875Speterapr_status_t apr_wait_for_io_or_timeout(apr_file_t *f, apr_socket_t *s,
49251875Speter                                        int for_read);
50251875Speter
51251875Speter/** @} */
52251875Speter
53251875Speter#ifdef __cplusplus
54251875Speter}
55251875Speter#endif
56251875Speter
57251875Speter#endif  /* ! APR_SUPPORT_H */
58