10
#include "apr_portable.h"
11
#include "apr_file_io.h"
12
#include "apr_errno.h"
14
#ifndef MP_SOURCE_SCAN
15
#include "apr_optional.h"
20
#define IoTYPE_RDONLY '<'
23
#define IoTYPE_WRONLY '>'
31
void apr_perlio_init(pTHX);
33
/* The following functions can be used from other .so libs, they just
34
* need to load APR::PerlIO perl module first
36
#ifndef MP_SOURCE_SCAN
39
PerlIO *apr_perlio_apr_file_to_PerlIO(pTHX_ apr_file_t *file, apr_pool_t *pool,
40
apr_perlio_hook_e type);
41
APR_DECLARE_OPTIONAL_FN(PerlIO *,
42
apr_perlio_apr_file_to_PerlIO,
43
(pTHX_ apr_file_t *file, apr_pool_t *pool,
44
apr_perlio_hook_e type));
45
#endif /* PERLIO_LAYERS */
48
SV *apr_perlio_apr_file_to_glob(pTHX_ apr_file_t *file, apr_pool_t *pool,
49
apr_perlio_hook_e type);
50
APR_DECLARE_OPTIONAL_FN(SV *,
51
apr_perlio_apr_file_to_glob,
52
(pTHX_ apr_file_t *file, apr_pool_t *pool,
53
apr_perlio_hook_e type));
54
#endif /* MP_SOURCE_SCAN */
56
#endif /* APR_PERLIO_H */