summaryrefslogtreecommitdiff
path: root/hooks/apr_hooks.c
Commit message (Collapse)AuthorAgeFilesLines
* Include apr_private.h for NetWare to resolve the per application global data ↵bnicholes2003-02-071-0/+1
| | | | | | api's git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58850 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notifications to 2003.thommay2003-01-011-1/+1
| | | | | | | No Functional changes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58816 13f79535-47bb-0310-9956-ffa450edef68
* Eliminating the per-application global data in the apr_hook source for NetWare.bnicholes2002-12-021-1/+34
| | | | | | | | | Static per-application global data in a library causes a problem on NetWare because a library NLM does not have application boundaries. All static data is global to all applications. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58795 13f79535-47bb-0310-9956-ffa450edef68
* Fix a warning that was added with the symbol renames.rbb2002-07-081-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58682 13f79535-47bb-0310-9956-ffa450edef68
* Renames Pending:thommay2002-07-061-19/+55
| | | | | | | | | | | | | | | | | | | | | | | | This clears the list of renames pending in apr-util. Parts of this list was alreadu done, but the pending list hadn't been updated. apr_hook_debug_current from apr_current_hooking_module apr_hook_debug_show from apr_show_hook apr_hook_global_pool from apr_global_hook_pool apr_hook_sort_all from apr_sort_hooks apr_uri_port_of_scheme from apr_uri_default_port_for_scheme apr_uri_unparse from apr_uri_unparse_components apr_uri_parse from apr_uri_parse_components apr_uri_parse_hostinfo from apr_uri_parse_hostinfo_components apr_uri_t from apr_uri_components All APR_URI_* from all APU_URI_* symbols All APR_UNP_* from all UNP_* symbols git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58681 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-131-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58571 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of some warnings about missing prototypes for memXXX and strXXXtrawick2001-05-211-4/+3
| | | | | | | functions. (I only saw this on RH 7.1.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58258 13f79535-47bb-0310-9956-ffa450edef68
* Long overdue name change from "generic hook" to "optional hook".ben2001-05-201-17/+18
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58257 13f79535-47bb-0310-9956-ffa450edef68
* Fix the win32 GP fault from the 2.0.16 release candidate. Hook callingwrowe2001-04-051-2/+2
| | | | | | | convention was ignored due to the casts in apr_optional.h. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58196 13f79535-47bb-0310-9956-ffa450edef68
* Substantial cleanup to the linkage and declarations of the genericwrowe2001-04-031-3/+3
| | | | | | | hook creatures [Ben Laurie, Will Rowe] git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58186 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-161-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58104 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-081-12/+12
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58088 13f79535-47bb-0310-9956-ffa450edef68
* use a cast to resolve the discrepancy between void(*)(void)" and "void*"trawick2001-01-291-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58082 13f79535-47bb-0310-9956-ffa450edef68
* Remove a warning. This variable is never used.rbb2001-01-281-2/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58077 13f79535-47bb-0310-9956-ffa450edef68
* Not sure what all the private stuff is doing in the header... but heck,wrowe2001-01-271-3/+3
| | | | | | | this makes it all compile on win32. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58075 13f79535-47bb-0310-9956-ffa450edef68
* Add support for type-safe optional functions.ben2001-01-271-0/+22
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58074 13f79535-47bb-0310-9956-ffa450edef68
* The current hooking module is _not_ a debugging aid.ben2001-01-241-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58071 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of irritating comment weirdness.ben2001-01-241-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58070 13f79535-47bb-0310-9956-ffa450edef68
* apr-util rename of ap_ symbols to apr_ notation. Part 2 of the change.wrowe2001-01-191-27/+27
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58050 13f79535-47bb-0310-9956-ffa450edef68
* Back out the last change, this breaks Apache. The abstraction is incorrectrbb2001-01-061-1/+1
| | | | | | | | here, but I would rather have working code with the wrong abstraction than non-working code with a better abstraction. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58026 13f79535-47bb-0310-9956-ffa450edef68
* Move ap_generic_hook from the Apache include directory to the apr-utilrbb2001-01-061-1/+2
| | | | | | | | | include directory. The hooks themselves are implemented by apr-util, instead of Apache. This removes a few warnings when compiled in maintainer-mode that have been bothering me. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58024 13f79535-47bb-0310-9956-ffa450edef68
* Generic hooks (and a demo content filter module).ben2001-01-021-4/+53
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58020 13f79535-47bb-0310-9956-ffa450edef68
* These two patches for apr and apr-util fix compile warnings on Solaris fortrawick2000-12-221-0/+3
| | | | | | | | | | str* and mem* functions. This fixes all of them. APR_HAVE_STRINGS_H is now defined in apr.h. Submitted by: Dale Ghent <daleg@elemental.org> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58013 13f79535-47bb-0310-9956-ffa450edef68
* The APU_DECLARE symbol rename to solve DAV faults and other lurkingwrowe2000-12-211-7/+7
| | | | | | | | | dangers. Someone please add the build of apu.h from apu.h.in for Unix. This is not complete, there may be other lurking data that were never exported (with APR_DECLARE). This patch doesn't attempt to fix them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58005 13f79535-47bb-0310-9956-ffa450edef68
* Remove some warnings. The fixes may not be perfectly portable, but thisrbb2000-12-051-0/+1
| | | | | | | | | is a start. We now build without cleanly and create a working web server. :-) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57942 13f79535-47bb-0310-9956-ffa450edef68
* Get the hooks code into apr-utilsrbb2000-12-051-9/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57940 13f79535-47bb-0310-9956-ffa450edef68
* *) Compensate for recent changes in the APR headers. Specifically, somegstein2000-11-261-2/+7
| | | | | | | | | | | | files need to specifically include stdio.h, or a particular apr_*.h header. *) Adjust callers of apr_create_process() to deal with the extra "const" *) Add "const" to args of ap_os_create_privileged_process() git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57924 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolswrowe2000-10-161-7/+7
| | | | | | | | | | for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper) and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE. All _VAR_ flavors changes to _DATA to be absolutely clear. Thank you Greg, for the most obvious suggestion. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57896 13f79535-47bb-0310-9956-ffa450edef68
* Sloppy licenses. Update to ASF license 1.1.fielding2000-08-141-0/+54
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57830 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-021-16/+16
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57822 13f79535-47bb-0310-9956-ffa450edef68
* PR:wrowe2000-05-271-3/+3
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Reverse out all _EXPORT_VAR changes back to their original _VAR_EXPORT names for linkage (API_, CORE_, and MODULE_). git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57808 13f79535-47bb-0310-9956-ffa450edef68
* PR:wrowe2000-05-271-7/+7
| | | | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Reverse out AP_EXPORT symbols, restore to API_EXPORT. 2nd patch will remove linkage argument to DECLARE/IMPLEMENT_HOOKS. 3rd patch will remove ap.dsp from the project, and treat these three modules as part of the core build under win32. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57807 13f79535-47bb-0310-9956-ffa450edef68
* A really simple change for readability:wrowe2000-05-271-9/+9
| | | | | | | | | | | ap_pool_t *g_pHookPool; becomes ap_global_hook_pool int g_bDebugHooks; becomes ap_debug_module_hooks const char *g_szCurrentHookName; becomes ap_debug_module_name Just as a reminder, these are now declared in ap_hooks.c git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57806 13f79535-47bb-0310-9956-ffa450edef68
* ap.h is the basis for the ap.lib collection. Since it is a distinctwrowe2000-05-271-5/+10
| | | | | | | | | | | | | | | | | | package, this patch provides appropriate Win32 linkage resolution for its functions and data. The most significant change is in the ap_hooks.h declaration macros. These now require a first parameter of the linkage to be used. There is no shared data, so only the hook-in and hook-run functions are affected. Use the appropriate function export without the parens, for the core server this will be API_EXPORT (no variable args, and the functions are exported from the core server.) The patch to correct the resulting issues in the server core follows seperately. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57805 13f79535-47bb-0310-9956-ffa450edef68
* PR:wrowe2000-04-291-2/+0
| | | | | | | | | | | | | | | | | Obtained from: Submitted by: William Rowe Reviewed by: Created ap_base64.h to extract those declarations for clarity from ap.h CORE_PRIVATE, httpd.h do not belong in library functions, removed from ap.lib Use apr headers for declarations in ap.lib stuff, kill AP_LONG from ap_sha1.h Move credit to lib/apr/lib/ap_snprintf.c from ap.h for authorship git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57799 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesrbb2000-04-141-3/+3
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57796 13f79535-47bb-0310-9956-ffa450edef68
* Clear hook registrations between reads of the config file.ake2000-03-231-1/+12
| | | | | | | | When DSOs are unloaded and re-loaded the old hook pointers may no longer be valid. This fix eliminates potential segfaults. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57791 13f79535-47bb-0310-9956-ffa450edef68
* Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX isrbb2000-01-281-0/+1
| | | | | | | defined correctly in all C files. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57788 13f79535-47bb-0310-9956-ffa450edef68
* Finish the commits for the change in the header files. Basically, this hidesrbb2000-01-191-0/+1
| | | | | | | | | | all of the Apache macros that modules don't need access to. This should have been committed with the modules, but I wasn't paying attention to the directory I was in when I ran the commit. Submitted by: Manoj Kasichainula and Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57787 13f79535-47bb-0310-9956-ffa450edef68
* Fix hook sorting. When walking a linked list it's a good idea to startbjh1999-11-281-1/+1
| | | | | | | | at the head rather than the first element of the array. This makes mod_userdir actually work. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57786 13f79535-47bb-0310-9956-ffa450edef68
* First patch to re-order function parameters. This one gets the low hangingrbb1999-10-041-1/+1
| | | | | | | | | | fruit, and moves most of the result parameters to the first argument. Future patches in this series will move the rest of the result parameters to the beginning of the list, and will move the context's to the end of the list git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57785 13f79535-47bb-0310-9956-ffa450edef68
* A change to how APR uses user data. Now, user data is a linked list thatrbb1999-09-141-1/+1
| | | | | | | | | | | | | is retreivable using a char string. Basically, you provide a string that will be used as a key when you store the data. If the key was used before, we will overwrite the old data. When you want to retreive your data, pass in the same key, and we will find the data you care about. This also makes it harder to put user data in when creating a context, so that option has disappeared. It is also impossible to inherit user data from parent contexts. This option may be added in later. I will be documenting this VERY soon. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57784 13f79535-47bb-0310-9956-ffa450edef68
* Changed pools to contexts. Tested with prefork and pthread mpm's. I'llrbb1999-08-311-7/+8
| | | | | | | check this out tomorrow and make sure everything was checked in correctly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57781 13f79535-47bb-0310-9956-ffa450edef68
* Reformat according to style guide.ben1999-08-011-65/+54
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57773 13f79535-47bb-0310-9956-ffa450edef68
* Use C comments instead of C++ commentsmartin1999-07-191-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57769 13f79535-47bb-0310-9956-ffa450edef68
* Add non-topological ordering for hooks.ben1999-07-111-0/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57768 13f79535-47bb-0310-9956-ffa450edef68
* Add topological sorting to hook ordering.ben1999-07-111-0/+221
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57766 13f79535-47bb-0310-9956-ffa450edef68