~ubuntu-branches/ubuntu/warty/libapache2-mod-perl2/warty

« back to all changes in this revision

Viewing changes to xs/APR/PerlIO/apr_perlio.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2004-02-13 22:22:35 UTC
  • Revision ID: james.westby@ubuntu.com-20040213222235-x0ggyscn50jvab2v
Tags: upstream-1.99.12
ImportĀ upstreamĀ versionĀ 1.99.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef APR_PERLIO_H
 
2
#define APR_PERLIO_H
 
3
 
 
4
#ifdef PERLIO_LAYERS
 
5
#include "perliol.h"
 
6
#else 
 
7
#include "iperlsys.h"
 
8
#endif
 
9
 
 
10
#include "apr_portable.h"
 
11
#include "apr_file_io.h"
 
12
#include "apr_errno.h"
 
13
 
 
14
#ifndef MP_SOURCE_SCAN
 
15
#include "apr_optional.h"
 
16
#endif
 
17
 
 
18
/* 5.6.0 */
 
19
#ifndef IoTYPE_RDONLY
 
20
#define IoTYPE_RDONLY '<'
 
21
#endif
 
22
#ifndef IoTYPE_WRONLY
 
23
#define IoTYPE_WRONLY '>'
 
24
#endif
 
25
 
 
26
typedef enum {
 
27
    APR_PERLIO_HOOK_READ,
 
28
    APR_PERLIO_HOOK_WRITE
 
29
} apr_perlio_hook_e;
 
30
 
 
31
void apr_perlio_init(pTHX);
 
32
 
 
33
/* The following functions can be used from other .so libs, they just
 
34
 * need to load APR::PerlIO perl module first
 
35
 */
 
36
#ifndef MP_SOURCE_SCAN
 
37
 
 
38
#ifdef PERLIO_LAYERS
 
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 */
 
46
 
 
47
 
 
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 */
 
55
 
 
56
#endif /* APR_PERLIO_H */