~ubuntu-branches/ubuntu/jaunty/libapache2-mod-python/jaunty

« back to all changes in this revision

Viewing changes to src/include/requestobject.h

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-09-06 20:27:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040906202757-yzpyu1bcabgpjtiu
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2004 Apache Software Foundation 
 
3
 * 
 
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 
5
 * may not use this file except in compliance with the License.  You
 
6
 * 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
 
13
 * implied.  See the License for the specific language governing
 
14
 * permissions and limitations under the License.
 
15
 *
 
16
 * Originally developed by Gregory Trubetskoy.
 
17
 *
 
18
 *
 
19
 * requestobject.h
 
20
 *
 
21
 * $Id: requestobject.h,v 1.16 2004/02/16 19:47:28 grisha Exp $
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef Mp_REQUESTOBJECT_H
 
26
#define Mp_REQUESTOBJECT_H
 
27
#ifdef __cplusplus
 
28
extern "C" {
 
29
#endif
 
30
 
 
31
    typedef struct requestobject {
 
32
        PyObject_HEAD
 
33
        PyObject       * dict;
 
34
        request_rec    * request_rec;
 
35
        PyObject       * connection;
 
36
        PyObject       * server;
 
37
        PyObject       * next;
 
38
        PyObject       * prev;
 
39
        PyObject       * main;
 
40
        PyObject       * headers_in;
 
41
        PyObject       * headers_out;
 
42
        PyObject       * err_headers_out;
 
43
        PyObject       * subprocess_env;
 
44
        PyObject       * notes;
 
45
        PyObject       * phase;
 
46
        char           * extension;   /* for | .ext syntax */
 
47
        char           * interpreter; 
 
48
        int              content_type_set;
 
49
        hlistobject    * hlo;
 
50
        char           * rbuff;       /* read bufer */
 
51
        int              rbuff_len;   /* read buffer size */
 
52
        int              rbuff_pos;   /* position into the buffer */
 
53
    } requestobject;
 
54
 
 
55
    extern DL_IMPORT(PyTypeObject) MpRequest_Type;
 
56
    
 
57
#define MpRequest_Check(op) ((op)->ob_type == &MpRequest_Type)
 
58
    
 
59
    extern DL_IMPORT(PyObject *) MpRequest_FromRequest Py_PROTO((request_rec *r));
 
60
 
 
61
#ifdef __cplusplus
 
62
}
 
63
#endif
 
64
#endif /* !Mp_REQUESTOBJECT_H */