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

« back to all changes in this revision

Viewing changes to src/include/hlist.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
 * hlist.h 
 
20
 *
 
21
 * $Id: hlist.h,v 1.5 2004/02/16 19:47:28 grisha Exp $
 
22
 *
 
23
 * See accompanying documentation and source code comments 
 
24
 * for details.
 
25
 *
 
26
 */
 
27
 
 
28
#ifndef Mp_HLIST_H
 
29
#define Mp_HLIST_H
 
30
#ifdef __cplusplus
 
31
extern "C" {
 
32
#endif
 
33
 
 
34
    /* handler list entry */
 
35
    typedef struct hl_entry {
 
36
        const char *handler;
 
37
        const char *directory;
 
38
        int silent;  /* 1 for PythonHandlerModule, where
 
39
                        if a handler is not found in a module,
 
40
                        no error should be reported */
 
41
        struct hl_entry *next;
 
42
    } hl_entry;
 
43
    
 
44
    hl_entry *hlist_new(apr_pool_t *p, const char *h, const char *d, 
 
45
                        const int s);
 
46
    hl_entry *hlist_append(apr_pool_t *p, hl_entry *hle, const char * h,
 
47
                           const char *d, const int s);
 
48
    hl_entry *hlist_copy(apr_pool_t *p, const hl_entry *hle);
 
49
 
 
50
#ifdef __cplusplus
 
51
}
 
52
#endif
 
53
#endif /* !Mp_HLIST_H */