httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/misc/os2 start.c
Date Mon, 30 Aug 1999 14:39:52 GMT
bjh         99/08/30 07:39:51

  Modified:    src/lib/apr/misc/os2 start.c
  Log:
  APR OS/2 startup module:
  - fix parameter to ap_destroy_pool
  - add ap_set_userdata(), ap_get_userdata() and ap_initialize() functions.
  
  Revision  Changes    Path
  1.3       +40 -1     apache-2.0/src/lib/apr/misc/os2/start.c
  
  Index: start.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/misc/os2/start.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- start.c	1999/08/27 16:25:51	1.2
  +++ start.c	1999/08/30 14:39:51	1.3
  @@ -97,7 +97,46 @@
   
   ap_status_t ap_destroy_context(struct context_t *cont)
   {
  -    ap_destroy_pool(cont->pool);
  +    ap_destroy_pool(cont);
       return APR_SUCCESS;
   }
   
  +/* ***APRDOC********************************************************
  + * ap_status_t ap_set_userdata(ap_context_t *, void *)
  + *    Set the data associated with the current context.
  + * arg 1) The current context.
  + * arg 2) The user data associated with the context.
  + */
  +ap_status_t ap_set_userdata(struct context_t *cont, void *data)
  +{
  +    if (cont) {
  +        cont->prog_data = data;
  +        return APR_SUCCESS;
  +    }
  +    return APR_ENOCONT;
  +}
  +
  +/* ***APRDOC********************************************************
  + * ap_status_t ap_get_userdata(ap_context_t *, void **)
  + *    Return the data associated with the current context.
  + * arg 1) The current context.
  + * arg 2) The user data associated with the context.
  + */
  +ap_status_t ap_get_userdata(struct context_t *cont, void **data)
  +{
  +    if (cont) {
  +        (*data) = cont->prog_data;
  +        return APR_SUCCESS;
  +    }
  +    return APR_ENOCONT;
  +}
  +
  +/* ***APRDOC********************************************************
  + * ap_status_t ap_initialize()
  + *    Setup any APR internal data structures.  This MUST be the first
  + *    function called for any APR program.
  + */
  +ap_status_t ap_initialize(void)
  +{
  +    return APR_SUCCESS;
  +}
  
  
  

Mime
View raw message