]> granicus.if.org Git - apache/commitdiff
As discussed at AC NA 2011
authorPhilip M. Gollucci <pgollucci@apache.org>
Sun, 13 Nov 2011 00:20:32 +0000 (00:20 +0000)
committerPhilip M. Gollucci <pgollucci@apache.org>
Sun, 13 Nov 2011 00:20:32 +0000 (00:20 +0000)
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

25 files changed:
build/make_exports.awk
include/apreq.h [moved from srclib/libapreq/include/apreq.h with 100% similarity]
include/apreq_cookie.h [moved from srclib/libapreq/include/apreq_cookie.h with 100% similarity]
include/apreq_error.h [moved from srclib/libapreq/include/apreq_error.h with 100% similarity]
include/apreq_module.h [moved from srclib/libapreq/include/apreq_module.h with 100% similarity]
include/apreq_param.h [moved from srclib/libapreq/include/apreq_param.h with 100% similarity]
include/apreq_parser.h [moved from srclib/libapreq/include/apreq_parser.h with 100% similarity]
include/apreq_util.h [moved from srclib/libapreq/include/apreq_util.h with 100% similarity]
modules/apreq/Makefile.in
modules/apreq/config.m4
modules/apreq/filter.c
server/Makefile.in
server/apreq_cookie.c [moved from srclib/libapreq/library/cookie.c with 100% similarity]
server/apreq_error.c [moved from srclib/libapreq/library/error.c with 100% similarity]
server/apreq_module.c [moved from srclib/libapreq/library/module.c with 100% similarity]
server/apreq_module_cgi.c [moved from srclib/libapreq/library/module_cgi.c with 100% similarity]
server/apreq_module_custom.c [moved from srclib/libapreq/library/module_custom.c with 100% similarity]
server/apreq_param.c [moved from srclib/libapreq/library/param.c with 100% similarity]
server/apreq_parser.c [moved from srclib/libapreq/library/parser.c with 100% similarity]
server/apreq_parser_header.c [moved from srclib/libapreq/library/parser_header.c with 100% similarity]
server/apreq_parser_multipart.c [moved from srclib/libapreq/library/parser_multipart.c with 100% similarity]
server/apreq_parser_urlencoded.c [moved from srclib/libapreq/library/parser_urlencoded.c with 100% similarity]
server/apreq_util.c [moved from srclib/libapreq/library/util.c with 100% similarity]
srclib/libapreq/include/apreq_version.h [deleted file]
srclib/libapreq/library/version.c [deleted file]

index 1cf05684149a2f81459587cf801a7b4e3acca1af..3bbba19aa00457d22fe907ca18ab38d4f72f539e 100644 (file)
@@ -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]*[(])))+", "")
 
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..f34af9cbd660c1d26b7605f82f4c945ab7fa5b28 100644 (file)
@@ -0,0 +1 @@
+include $(top_srcdir)/build/special.mk
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a61c4231b09a4a94bcc3de4e72d4bfcdde424c01 100644 (file)
@@ -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
index ef122ba450d735508f22cc9e7d55724912865a52..b682e6dbed32747ba5b2b03a43f2a99fdaaf5b7d 100644 (file)
@@ -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,
index 42d1fe5c1425075f271562479dd5b83d8a536ada..6511af2bf0f3b51a51cc731aff67f6e73f06dcae 100644 (file)
@@ -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
diff --git a/srclib/libapreq/include/apreq_version.h b/srclib/libapreq/include/apreq_version.h
deleted file mode 100644 (file)
index 8f5b8d2..0000000
+++ /dev/null
@@ -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 */
diff --git a/srclib/libapreq/library/version.c b/srclib/libapreq/library/version.c
deleted file mode 100644 (file)
index 5cfd767..0000000
+++ /dev/null
@@ -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;
-}