mirror of
https://github.com/apache/httpd.git
synced 2025-08-10 02:56:11 +00:00
As discussed at AC NA 2011
o relocate srclib/libapreq/library/*.c -> server/apreq_${f}.c o relocate srclib/libapreq/include/*.h -> include/*.h o remove apreq_version.[hc] related stuff since its nolonger its own lib o connect modules/apreq to the build under 'most' default comment out in httpd.conf o update make_exports.awk to handle APREQ marcos git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201372 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -88,8 +88,8 @@ function add_symbol(symbol) {
|
||||
}
|
||||
}
|
||||
|
||||
/^[ \t]*AP[RU]?_(CORE_)?DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
|
||||
sub("[ \t]*AP[RU]?_(CORE_)?DECLARE[^(]*[(][^)]*[)][ \t]*", "")
|
||||
/^[ \t]*(AP|APR|APU|APREQ)_(CORE_)?DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
|
||||
sub("[ \t]*(AP|APR|APU|APREQ)?_(CORE_)?DECLARE[^(]*[(][^)]*[)][ \t]*", "")
|
||||
sub("[(].*", "")
|
||||
sub("([^ ]* (^([ \t]*[(])))+", "")
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
include $(top_srcdir)/build/special.mk
|
||||
|
@ -0,0 +1,9 @@
|
||||
dnl modules enabled in this directory by default
|
||||
|
||||
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
|
||||
|
||||
APACHE_MODPATH_INIT(apreq)
|
||||
|
||||
APACHE_MODULE(apreq, Apache Request Filter, filter.lo handle.lo, , most)
|
||||
|
||||
APACHE_MODPATH_FINISH
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "apreq_private_apache2.h"
|
||||
#include "apreq_error.h"
|
||||
#include "apreq_util.h"
|
||||
#include "apreq_version.h"
|
||||
|
||||
static void *apreq_create_dir_config(apr_pool_t *p, char *d)
|
||||
{
|
||||
@ -424,11 +423,6 @@ static int apreq_post_init(apr_pool_t *p, apr_pool_t *plog,
|
||||
{
|
||||
apr_status_t status;
|
||||
|
||||
ap_add_version_component(p, apr_psprintf(p,
|
||||
"mod_apreq2-%d/%s",
|
||||
APREQ_APACHE2_MMN,
|
||||
apreq_version_string()));
|
||||
|
||||
status = apreq_post_initialize(p);
|
||||
if (status != APR_SUCCESS) {
|
||||
ap_log_error(APLOG_MARK, APLOG_STARTUP|APLOG_ERR, status, base_server,
|
||||
|
@ -14,7 +14,12 @@ LTLIBRARY_SOURCES = \
|
||||
util_filter.c util_pcre.c util_regex.c exports.c \
|
||||
scoreboard.c error_bucket.c protocol.c core.c request.c provider.c \
|
||||
eoc_bucket.c eor_bucket.c core_filters.c \
|
||||
util_expr_parse.c util_expr_scan.c util_expr_eval.c
|
||||
util_expr_parse.c util_expr_scan.c util_expr_eval.c \
|
||||
apreq_cookie.c apreq_error.c apreq_module.c \
|
||||
apreq_module_cgi.c apreq_module_custom.c apreq_param.c \
|
||||
apreq_parser.c apreq_parser_header.c apreq_parser_multipart.c \
|
||||
apreq_parser_urlencoded.c apreq_util.c
|
||||
|
||||
LTLIBRARY_DEPENDENCIES = test_char.h
|
||||
|
||||
TARGETS = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE) export_vars.h httpd.exp
|
||||
|
@ -1,105 +0,0 @@
|
||||
/*
|
||||
** Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
** contributor license agreements. See the NOTICE file distributed with
|
||||
** this work for additional information regarding copyright ownership.
|
||||
** The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
** (the "License"); you may not use this file except in compliance with
|
||||
** the License. You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef APREQ_VERSION_H
|
||||
#define APREQ_VERSION_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "apr_version.h"
|
||||
#include "apreq.h"
|
||||
|
||||
/**
|
||||
* @file apreq_version.h
|
||||
* @brief Versioning API for libapreq
|
||||
* @ingroup libapreq2
|
||||
*
|
||||
* There are several different mechanisms for accessing the version. There
|
||||
* is a string form, and a set of numbers; in addition, there are constants
|
||||
* which can be compiled into your application, and you can query the library
|
||||
* being used for its actual version.
|
||||
*
|
||||
* Note that it is possible for an application to detect that it has been
|
||||
* compiled against a different version of libapreq by use of the compile-time
|
||||
* constants and the use of the run-time query function.
|
||||
*
|
||||
* libapreq version numbering follows the guidelines specified in:
|
||||
*
|
||||
* http://apr.apache.org/versioning.html
|
||||
*/
|
||||
|
||||
/* The numeric compile-time version constants. These constants are the
|
||||
* authoritative version numbers for libapreq.
|
||||
*/
|
||||
|
||||
/** major version
|
||||
* Major API changes that could cause compatibility problems for older
|
||||
* programs such as structure size changes. No binary compatibility is
|
||||
* possible across a change in the major version.
|
||||
*/
|
||||
#define APREQ_MAJOR_VERSION 2
|
||||
|
||||
/**
|
||||
* Minor API changes that do not cause binary compatibility problems.
|
||||
* Should be reset to 0 when upgrading APREQ_MAJOR_VERSION
|
||||
*/
|
||||
#define APREQ_MINOR_VERSION 8
|
||||
|
||||
/** patch level */
|
||||
#define APREQ_PATCH_VERSION 0
|
||||
|
||||
/**
|
||||
* This symbol is defined for internal, "development" copies of libapreq.
|
||||
* This symbol will be \#undef'd for releases.
|
||||
*/
|
||||
#define APREQ_IS_DEV_VERSION
|
||||
|
||||
|
||||
/** The formatted string of libapreq's version */
|
||||
#define APREQ_VERSION_STRING \
|
||||
APR_STRINGIFY(APREQ_MAJOR_VERSION) "." \
|
||||
APR_STRINGIFY(APREQ_MINOR_VERSION) "." \
|
||||
APR_STRINGIFY(APREQ_PATCH_VERSION) \
|
||||
APREQ_IS_DEV_STRING
|
||||
|
||||
/**
|
||||
* Return libapreq's version information information in a numeric form.
|
||||
*
|
||||
* @param pvsn Pointer to a version structure for returning the version
|
||||
* information.
|
||||
*/
|
||||
APREQ_DECLARE(void) apreq_version(apr_version_t *pvsn);
|
||||
|
||||
/** Return libapreq's version information as a string. */
|
||||
APREQ_DECLARE(const char *) apreq_version_string(void);
|
||||
|
||||
|
||||
/** Internal: string form of the "is dev" flag */
|
||||
#ifdef APREQ_IS_DEV_VERSION
|
||||
#define APREQ_IS_DEV_STRING "-dev"
|
||||
#else
|
||||
#define APREQ_IS_DEV_STRING ""
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* APREQ_VERSION_H */
|
@ -1,36 +0,0 @@
|
||||
/*
|
||||
** Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
** contributor license agreements. See the NOTICE file distributed with
|
||||
** this work for additional information regarding copyright ownership.
|
||||
** The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
** (the "License"); you may not use this file except in compliance with
|
||||
** the License. You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
|
||||
#include "apreq_version.h"
|
||||
#include "apr_general.h" /* for APR_STRINGIFY */
|
||||
|
||||
APREQ_DECLARE(void) apreq_version(apr_version_t *pvsn)
|
||||
{
|
||||
pvsn->major = APREQ_MAJOR_VERSION;
|
||||
pvsn->minor = APREQ_MINOR_VERSION;
|
||||
pvsn->patch = APREQ_PATCH_VERSION;
|
||||
#ifdef APREQ_IS_DEV_VERSION
|
||||
pvsn->is_dev = 1;
|
||||
#else
|
||||
pvsn->is_dev = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
APREQ_DECLARE(const char *) apreq_version_string(void)
|
||||
{
|
||||
return APREQ_VERSION_STRING;
|
||||
}
|
Reference in New Issue
Block a user