- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List

# ngx_http_passenger_module.h

    00001 /*
    00002  * Copyright (C) Igor Sysoev
    00003  * Copyright (C) 2007 Manlio Perillo (manlio.perillo@gmail.com)
    00004  * Copyright (C) 2010 Phusion
    00005  *
    00006  * Redistribution and use in source and binary forms, with or without
    00007  * modification, are permitted provided that the following conditions
    00008  * are met:
    00009  * 1. Redistributions of source code must retain the above copyright
    00010  *    notice, this list of conditions and the following disclaimer.
    00011  * 2. Redistributions in binary form must reproduce the above copyright
    00012  *    notice, this list of conditions and the following disclaimer in the
    00013  *    documentation and/or other materials provided with the distribution.
    00014  *
    00015  * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    00016  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    00017  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    00018  * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
    00019  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    00020  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    00021  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    00022  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    00023  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    00024  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    00025  * SUCH DAMAGE.
    00026  */
    00027
    00028 #ifndef _PASSENGER_NGINX_MODULE_H_
    00029 #define _PASSENGER_NGINX_MODULE_H_
    00030
    00031 #include <ngx_config.h>
    00032 #include <ngx_core.h>
    00033 #include "../common/AgentsStarter.h"
    00034 #include "../common/Utils/CachedFileStat.h"
    00035
    00036 /**
    00037  * The Nginx version number as an integer.
    00038  * For example, on nginx 1.7.30 this value is 1007030.
    00039  */
    00040 #define NGINX_VERSION_NUM \
    00041     (1000000 * PASSENGER_NGINX_MAJOR_VERSION + \
    00042      1000   * PASSENGER_NGINX_MINOR_VERSION + \
    00043      PASSENGER_NGINX_MICRO_VERSION)
    00044
    00045 extern ngx_module_t ngx_http_passenger_module;
    00046
    00047 /**
    00048  * A static schema string to be assigned to Nginx 'upstream' strctures.
    00049  */
    00050 extern ngx_str_t                passenger_schema_string;
    00051
    00052 extern ngx_str_t                passenger_placeholder_upstream_address;
    00053
    00054 /**
    00055  * A CachedFileStat object used for caching stat() calls.
    00056  */
    00057 extern PassengerCachedFileStat *passenger_stat_cache;
    00058
    00059 extern AgentsStarter           *passenger_agents_starter;
    00060
    00061 extern ngx_cycle_t             *passenger_current_cycle;
    00062
    00063 #endif /* _PASSENGER_NGINX_MODULE_H_ */
    00064