Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/apache2/modperl_filter.h
$ cat -n /usr/include/apache2/modperl_filter.h 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 MODPERL_FILTER_H 18 #define MODPERL_FILTER_H 19 20 #define MP_FILTER_CONNECTION_OUTPUT_NAME "MODPERL_CONNECTION_OUTPUT" 21 #define MP_FILTER_CONNECTION_INPUT_NAME "MODPERL_CONNECTION_INPUT" 22 23 #define MP_FILTER_REQUEST_OUTPUT_NAME "MODPERL_REQUEST_OUTPUT" 24 #define MP_FILTER_REQUEST_INPUT_NAME "MODPERL_REQUEST_INPUT" 25 26 #define MP_FILTER_CONNECTION_HANDLER 0x01 27 #define MP_FILTER_REQUEST_HANDLER 0x02 28 #define MP_FILTER_HAS_INIT_HANDLER 0x04 29 #define MP_FILTER_INIT_HANDLER 0x08 30 #define MP_FILTER_HTTPD_HANDLER 0x10 31 32 typedef ap_filter_t * MP_FUNC_T(modperl_filter_add_t) (const char *, void *, 33 request_rec *, 34 conn_rec *); 35 36 /* simple buffer api */ 37 MP_INLINE apr_status_t modperl_wbucket_pass(modperl_wbucket_t *b, 38 const char *buf, apr_size_t len, 39 int add_flush_bucket); 40 41 MP_INLINE apr_status_t modperl_wbucket_flush(modperl_wbucket_t *b, 42 int add_flush_bucket); 43 44 MP_INLINE apr_status_t modperl_wbucket_write(pTHX_ 45 modperl_wbucket_t *b, 46 const char *buf, 47 apr_size_t *wlen); 48 49 /* generic filter routines */ 50 51 modperl_filter_t *modperl_filter_new(ap_filter_t *f, 52 apr_bucket_brigade *bb, 53 modperl_filter_mode_e mode, 54 ap_input_mode_t input_mode, 55 apr_read_type_e block, 56 apr_off_t readbytes); 57 58 modperl_filter_t *modperl_filter_mg_get(pTHX_ SV *obj); 59 60 int modperl_filter_resolve_init_handler(pTHX_ modperl_handler_t *handler, 61 apr_pool_t *p); 62 63 int modperl_run_filter(modperl_filter_t *filter); 64 65 /* output filters */ 66 apr_status_t modperl_output_filter_handler(ap_filter_t *f, 67 apr_bucket_brigade *bb); 68 69 void modperl_output_filter_add_connection(conn_rec *c); 70 71 void modperl_output_filter_add_request(request_rec *r); 72 73 MP_INLINE apr_status_t modperl_output_filter_flush(modperl_filter_t *filter); 74 MP_INLINE apr_status_t modperl_input_filter_flush(modperl_filter_t *filter); 75 76 77 MP_INLINE apr_size_t modperl_output_filter_read(pTHX_ 78 modperl_filter_t *filter, 79 SV *buffer, 80 apr_size_t wanted); 81 82 MP_INLINE apr_status_t modperl_output_filter_write(pTHX_ 83 modperl_filter_t *filter, 84 const char *buf, 85 apr_size_t *len); 86 87 void modperl_brigade_dump(apr_bucket_brigade *bb, apr_file_t *file); 88 89 /* input filters */ 90 apr_status_t modperl_input_filter_handler(ap_filter_t *f, 91 apr_bucket_brigade *bb, 92 ap_input_mode_t input_mode, 93 apr_read_type_e block, 94 apr_off_t readbytes); 95 96 void modperl_input_filter_add_connection(conn_rec *c); 97 98 void modperl_input_filter_add_request(request_rec *r); 99 100 MP_INLINE apr_size_t modperl_input_filter_read(pTHX_ 101 modperl_filter_t *filter, 102 SV *buffer, 103 apr_size_t wanted); 104 105 MP_INLINE apr_status_t modperl_input_filter_write(pTHX_ 106 modperl_filter_t *filter, 107 const char *buf, 108 apr_size_t *len); 109 110 void modperl_filter_runtime_add(pTHX_ request_rec *r, conn_rec *c, 111 const char *name, 112 modperl_filter_mode_e mode, 113 modperl_filter_add_t addfunc, 114 SV *callback, const char *type); 115 116 #endif /* MODPERL_FILTER_H */ 117 118 /* 119 * Local Variables: 120 * c-basic-offset: 4 121 * indent-tabs-mode: nil 122 * End: 123 */
Welcome to MyWebUniversity on May 17, 2025.
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™