Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/apache2/modperl_handler.h
$ cat -n /usr/include/apache2/modperl_handler.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_HANDLER_H 18 #define MODPERL_HANDLER_H 19 20 typedef enum { 21 MP_HANDLER_ACTION_GET, 22 MP_HANDLER_ACTION_PUSH, 23 MP_HANDLER_ACTION_SET 24 } modperl_handler_action_e; 25 26 void modperl_handler_anon_init(pTHX_ apr_pool_t *p); 27 MP_INLINE modperl_mgv_t *modperl_handler_anon_next(pTHX_ apr_pool_t *p); 28 MP_INLINE void modperl_handler_anon_add(pTHX_ modperl_mgv_t *anon, CV *cv); 29 MP_INLINE CV *modperl_handler_anon_get(pTHX_ modperl_mgv_t *anon); 30 31 #define modperl_handler_array_new(p) \ 32 apr_array_make(p, 1, sizeof(modperl_handler_t *)) 33 34 #define modperl_handler_array_push(handlers, h) \ 35 *(modperl_handler_t **)apr_array_push(handlers) = h 36 37 #define modperl_handler_array_item(handlers, idx) \ 38 ((modperl_handler_t **)(handlers)->elts)[idx] 39 40 #define modperl_handler_array_last(handlers) \ 41 modperl_handler_array_item(handlers, ((handlers)->nelts - 1)) 42 43 modperl_handler_t *modperl_handler_new(apr_pool_t *p, const char *name); 44 45 modperl_handler_t *modperl_handler_new_from_sv(pTHX_ apr_pool_t *p, SV *sv); 46 47 MP_INLINE const char *modperl_handler_name(modperl_handler_t *handler); 48 49 int modperl_handler_resolve(pTHX_ modperl_handler_t **handp, 50 apr_pool_t *p, server_rec *s); 51 52 modperl_handler_t *modperl_handler_dup(apr_pool_t *p, 53 modperl_handler_t *h); 54 55 int modperl_handler_equal(modperl_handler_t *h1, modperl_handler_t *h2); 56 57 MpAV *modperl_handler_array_merge(apr_pool_t *p, MpAV *base_a, MpAV *add_a); 58 59 void modperl_handler_make_args(pTHX_ AV **avp, ...); 60 61 MpAV **modperl_handler_lookup_handlers(modperl_config_dir_t *dcfg, 62 modperl_config_srv_t *scfg, 63 modperl_config_req_t *rcfg, 64 apr_pool_t *p, 65 int type, int idx, 66 modperl_handler_action_e action, 67 const char **desc); 68 69 MpAV **modperl_handler_get_handlers(request_rec *r, conn_rec *c,server_rec *s, 70 apr_pool_t *p, const char *name, 71 modperl_handler_action_e action); 72 73 int modperl_handler_push_handlers(pTHX_ apr_pool_t *p, 74 MpAV *handlers, SV *sv); 75 76 SV *modperl_handler_perl_get_handlers(pTHX_ MpAV **handp, apr_pool_t *p); 77 78 int modperl_handler_perl_add_handlers(pTHX_ 79 request_rec *r, 80 conn_rec *c, 81 server_rec *s, 82 apr_pool_t *p, 83 const char *name, 84 SV *sv, 85 modperl_handler_action_e action); 86 87 #endif /* MODPERL_HANDLER_H */ 88 89 /* 90 * Local Variables: 91 * c-basic-offset: 4 92 * indent-tabs-mode: nil 93 * End: 94 */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™