1 /** 2 * Copyright 2006 Christian Liesch 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * 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 /** 18 * @file 19 * 20 * @Author christian liesch <liesch@gmx.ch> 21 * 22 * Interface of the HTTP Test Tool file. 23 */ 24 25 #ifndef HTTEST_FILE_H 26 #define HTTEST_FILE_H 27 28 typedef struct bufreader_s bufreader_t; 29 30 apr_status_t bufreader_new(bufreader_t ** bufreader, apr_file_t * fp, 31 apr_pool_t * p); 32 apr_status_t bufreader_read_line(bufreader_t * self, char **line); 33 apr_status_t bufreader_read_eof(bufreader_t * self, 34 char **buf, apr_size_t *len); 35 36 #endif 37