blob: 37677038d3297f2abd733c5c931502fd4b20eae5 [file] [log] [blame]
#ifndef _SUBST_FILE_H
#define _SUBST_FILE_H 1
#define SUBST_FILE_MAX_URL_SIZE 8096
#define SUBST_FILE_ERROR_BUF 256
#define SUBST_FILE_ARR_MAX 10
struct subst_rec_t {
char* subst_var;
char* subst_file_name;
apr_file_t* subst_file;
int subst_mode;
apr_off_t fsize;
int valid;
};
typedef struct subst_rec_t subst_rec_t;
subst_rec_t subst_list[SUBST_FILE_ARR_MAX];
//int subst_list_size = sizeof(subst_list)/sizeof(subst_rec_t);
void subst_file_err(const char*, const char*, apr_status_t);
int subst_file_open(apr_file_t**, const char*, apr_off_t*, apr_pool_t*);
int close_subst_file(apr_file_t*);
char* subst_file_entry_get(apr_file_t**, apr_off_t*, char*, int);
subst_rec_t* subst_file_get(const char*, subst_rec_t*);
#endif