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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2004-08-19 06:23:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040819062348-jxl4koqbtvgm8v2t
Tags: 1.99.14-4
Remove the LFS CFLAGS, and build-dep against apache2-*-dev (>= 2.0.50-10)
as we're backing out of the apache2/apr ABI transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2001-2004 The Apache Software Foundation
 
2
 *
 
3
 * Licensed under the Apache License, Version 2.0 (the "License");
 
4
 * you may not use this file except in compliance with the License.
 
5
 * You may obtain a copy of the License at
 
6
 *
 
7
 *     http://www.apache.org/licenses/LICENSE-2.0
 
8
 *
 
9
 * Unless required by applicable law or agreed to in writing, software
 
10
 * distributed under the License is distributed on an "AS IS" BASIS,
 
11
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
12
 * See the License for the specific language governing permissions and
 
13
 * limitations under the License.
 
14
 */
 
15
 
1
16
#ifndef MODPERL_CGI_H
2
17
#define MODPERL_CGI_H
3
18
 
 
19
/**
 
20
 * split the HTTP headers from the body (if any) and feed them to
 
21
 * Apache. Populate the pointer to the remaining data in the buffer
 
22
 * (body if any or NULL)
 
23
 *
 
24
 * @param r       request_rec
 
25
 * @param buffer  a string with headers and potentially body
 
26
 *                (could be non-null terminated)
 
27
 * @param len     length of 'buffer' on entry
 
28
 *                length of 'body' on return
 
29
 * @param body    pointer to the body within the 'buffer' on return
 
30
 *                NULL if the buffer contained only headers
 
31
 *
 
32
 * @return status
 
33
 */
4
34
MP_INLINE int modperl_cgi_header_parse(request_rec *r, char *buffer,
5
 
                                       const char **bodytext);
 
35
                                       apr_size_t *len, const char **body);
6
36
 
7
37
#endif /* MODPERL_CGI_H */