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

« back to all changes in this revision

Viewing changes to src/modules/perl/modperl_types.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2005-08-12 01:40:38 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050812014038-gjigefs55pqx4qc8
Tags: 2.0.1-3
Grr.  Really include perl.conf file; it got lost due to diff not
wanting to add an empty file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2000-2004 The Apache Software Foundation
 
1
/* Copyright 2000-2005 The Apache Software Foundation
2
2
 *
3
3
 * Licensed under the Apache License, Version 2.0 (the "License");
4
4
 * you may not use this file except in compliance with the License.
127
127
 
128
128
typedef struct {
129
129
    MpHV *setvars;
130
 
    MpHV *addvars;
131
130
    MpHV *configvars;
132
131
    MpHV *SetEnv;
133
132
    MpHV *PassEnv;
134
 
    MpAV *PerlRequire, *PerlModule;
 
133
    MpAV *PerlRequire, *PerlModule, *PerlPostConfigRequire;
135
134
    MpAV *handlers_per_srv[MP_HANDLER_NUM_PER_SRV];
136
135
    MpAV *handlers_files[MP_HANDLER_NUM_FILES];
137
136
    MpAV *handlers_process[MP_HANDLER_NUM_PROCESS];
138
137
    MpAV *handlers_pre_connection[MP_HANDLER_NUM_PRE_CONNECTION];
139
138
    MpAV *handlers_connection[MP_HANDLER_NUM_CONNECTION];
140
 
    int threaded_mpm;
141
139
#ifdef USE_ITHREADS
142
140
    modperl_interp_pool_t *mip;
143
141
    modperl_tipool_config_t *interp_pool_cfg;
160
158
    MpAV *handlers_per_dir[MP_HANDLER_NUM_PER_DIR];
161
159
    MpHV *SetEnv;
162
160
    MpHV *setvars;
163
 
    MpHV *addvars;
164
161
    MpHV *configvars;
165
162
    modperl_options_t *flags;
166
163
#ifdef USE_ITHREADS
168
165
#endif
169
166
} modperl_config_dir_t;
170
167
 
 
168
typedef struct {
 
169
    const char *file;
 
170
    modperl_config_dir_t *dcfg;
 
171
} modperl_require_file_t;
 
172
 
171
173
typedef struct modperl_mgv_t modperl_mgv_t;
172
174
 
173
175
struct modperl_mgv_t {
179
181
 
180
182
typedef struct modperl_handler_t modperl_handler_t;
181
183
 
182
 
struct modperl_handler_t{
 
184
struct modperl_handler_t {
 
185
    /* could be:
 
186
     * - the lightweight gv for named subs
 
187
     * - the lookup data in $PL_modperl{ANONSUB}
 
188
     */
183
189
    modperl_mgv_t *mgv_obj;
184
190
    modperl_mgv_t *mgv_cv;
185
191
    /* could be:
186
 
     * - a subroutine name
187
 
     * - a subroutine source code as a string (anon subs)
188
 
     * - NULL, when .cv is set (anon subs)
 
192
     * - a subroutine name for named subs
 
193
     * - NULL for anon subs
189
194
     */
190
195
    const char *name; 
191
196
    CV *cv;
228
233
    apr_status_t rc;
229
234
    modperl_filter_mode_e mode;
230
235
    apr_pool_t *pool;
 
236
    apr_pool_t *temp_pool;
231
237
} modperl_filter_t;
232
238
 
233
239
typedef struct {
260
266
    void *data;
261
267
} modperl_cleanup_data_t;
262
268
 
263
 
/* subclass apr_uri_t */
264
 
typedef struct {
265
 
    apr_uri_t uri;
266
 
    apr_pool_t *pool;
267
 
    char *path_info;
268
 
} modperl_uri_t;
269
 
 
270
269
typedef struct {
271
270
    module *modp;
272
271
    const char *cmd_data;