"Fossies" - the Fresh Open Source Software Archive

Member "mod_perl-2.0.11/src/modules/perl/modperl_mgv.h" (5 Oct 2019, 2129 Bytes) of package /linux/www/apache_httpd_modules/mod_perl-2.0.11.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "modperl_mgv.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.0.8_vs_2.0.9.

    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_MGV_H
   18 #define MODPERL_MGV_H
   19 
   20 modperl_mgv_t *modperl_mgv_new(apr_pool_t *p);
   21 
   22 int modperl_mgv_equal(modperl_mgv_t *mgv1,
   23                       modperl_mgv_t *mgv2);
   24 
   25 modperl_mgv_t *modperl_mgv_compile(pTHX_ apr_pool_t *p, const char *name);
   26 
   27 GV *modperl_mgv_lookup(pTHX_ modperl_mgv_t *symbol);
   28 
   29 GV *modperl_mgv_lookup_autoload(pTHX_ modperl_mgv_t *symbol,
   30                                 server_rec *s, apr_pool_t *p);
   31 
   32 int modperl_mgv_resolve(pTHX_ modperl_handler_t *handler,
   33                         apr_pool_t *p, const char *name, int logfailure);
   34 
   35 void modperl_mgv_append(pTHX_ apr_pool_t *p, modperl_mgv_t *symbol,
   36                         const char *name);
   37 
   38 modperl_mgv_t *modperl_mgv_last(modperl_mgv_t *symbol);
   39 
   40 char *modperl_mgv_last_name(modperl_mgv_t *symbol);
   41 
   42 char *modperl_mgv_as_string(pTHX_ modperl_mgv_t *symbol,
   43                             apr_pool_t *p, int package);
   44 
   45 #ifdef USE_ITHREADS
   46 int modperl_mgv_require_module(pTHX_ modperl_mgv_t *symbol,
   47                                server_rec *s, apr_pool_t *p);
   48 #endif
   49 
   50 void modperl_mgv_hash_handlers(apr_pool_t *p, server_rec *s);
   51 
   52 #define modperl_mgv_sv(sv) \
   53 (isGV(sv) ? GvSV(sv) : (SV*)sv)
   54 
   55 #define modperl_mgv_cv(sv) \
   56 GvCV(sv)
   57 
   58 #endif /* MODPERL_MGV_H */
   59 
   60 /*
   61  * Local Variables:
   62  * c-basic-offset: 4
   63  * indent-tabs-mode: nil
   64  * End:
   65  */