1 |
/* Licensed to the Apache Software Foundation (ASF) under one or more |
2 |
* contributor license agreements. See the NOTICE file distributed with |
3 |
* this work for additional information regarding copyright ownership. |
4 |
* The ASF licenses this file to You under the Apache License, Version 2.0 |
5 |
* (the "License"); you may not use this file except in compliance with |
6 |
* the License. You 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 implied. |
13 |
* See the License for the specific language governing permissions and |
14 |
* limitations under the License. |
15 |
* |
16 |
*/ |
17 |
#ifndef _SUBST_FILE_H |
18 |
#define _SUBST_FILE_H 1 |
19 |
|
20 |
#define SUBST_FILE_MAX_URL_SIZE 8096 |
21 |
#define SUBST_FILE_ERROR_BUF 256 |
22 |
#define SUBST_FILE_ARR_MAX 10 |
23 |
struct subst_rec_t { |
24 |
char* subst_var; |
25 |
char* subst_file_name; |
26 |
apr_file_t* subst_file; |
27 |
int subst_mode; |
28 |
apr_off_t fsize; |
29 |
int valid; |
30 |
}; |
31 |
typedef struct subst_rec_t subst_rec_t; |
32 |
|
33 |
void subst_file_err(const char*, const char*, apr_status_t); |
34 |
int subst_file_open(apr_file_t**, const char*, apr_off_t*, apr_pool_t*); |
35 |
char* subst_file_entry_get(apr_file_t**, apr_off_t*, char*, int); |
36 |
subst_rec_t* subst_file_get(const char*, subst_rec_t*); |
37 |
#endif |