Hi,

Attached is a not applied patch that I already submitted a while ago.
It fixes some of the documentation on how to port the modules.



-- 
address: Covalent Technologies, 645 Howard St, San Francisco, CA - 94105
phone: +1-415-536-5221                               fax:+1-415-536-5210
personal website: http://www.lisanza.net/
--- ../developer-orig/modules.html Mon Apr 16 11:21:42 2001 +++ docs/manual/developer/modules.html Mon Apr 16 12:13:00 2001 @@ -35,20 +35,20 @@ These should now be renamed to better signify where they sit in the overall process. So the name gets a small change from mmap_init to mmap_post_config. The arguments passed have undergone a radical change and now look like

    -
  • ap_context_t *p,
  • -
  • ap_context_t *plog,
  • -
  • ap_context_t *ptemp,
  • +
  • apr_pools_t *p,
  • +
  • apr_pools_t *plog,
  • +
  • apr_pools_t *ptemp,
  • server_rec *s

-Throughout Apache the old pools have been replced by the ap_context_t, though their use remains remarkably similar. +Throughout Apache the old pools have been replced by the apr_pools_t, though their use remains remarkably similar.

Data Types

A lot of the data types have been moved into the APR. This means that some have had a name change, such as the one shown above. The following is a brief list of some of the changes that you are likely to have to make.

    -
  • pool becomes ap_context_t
  • +
  • pool becomes apr_pools_t
  • table becomes ap_table_t

@@ -171,26 +171,65 @@ ap_hook_post_config (this is where the old _init routines get registered)
  • -ap_hook_http_method +ap_hook_http_method (retrieve the http method from a request. (legacy))
  • -ap_hook_open_logs +ap_hook_open_logs (open any specified logs)
  • -ap_hook_auth_checker +ap_hook_auth_checker (check if the resource requires authorization)
  • -ap_hook_default_port +ap_hook_access_checker (check for module-specific restrictions)
  • -ap_hook_access_checker +ap_hook_check_user_id (check the user-id and password)
  • -ap_hook_process_connection +ap_hook_default_port (retrieve the default port for the server)
  • -ap_hook_child_init_hook +ap_hook_pre_connection (do any setup required just before processing, but after accepting)
  • +
  • +ap_hook_process_connection (run the correct protocol) +
  • +
  • +ap_hook_child_init (call as soon as the child is started) +
  • +
  • +ap_hook_create_request (??) +
  • +
  • +ap_hook_fixups (last chance to modify things before generating content) +
  • +
  • +ap_hook_handler (generate the content) +
  • +
  • +ap_hook_header_parser (let's modules look at the headers, not used by most modules, because they use post_read_request for this.) +
  • +
  • +ap_hook_insert_filter (to insert filters into the filter chain) +
  • +
  • +ap_hook_log_transaction (log information about the request) +
  • +
  • +ap_hook_optional_fn_retrieve (retrieve any functions registered as optional) +
  • +
  • +ap_hook_post_read_request (called after reading the request, before any other phase) +
  • +
  • +ap_hook_quick_handler (??) +
  • +
  • +ap_hook_translate_name (translate the URI into a filename) +
  • +
  • +ap_hook_type_checker (determine and/or set the doc type) +

    Reply via email to