httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/locks/win32 locks.c
Date Wed, 22 Sep 1999 14:14:02 GMT
stoddard    99/09/22 07:14:01

  Modified:    src/lib/apr/locks/win32 locks.c
  Log:
  Updates to allow locks.c to compile (userdata updates from the Unix tree)
  
  Revision  Changes    Path
  1.2       +8 -5      apache-2.0/src/lib/apr/locks/win32/locks.c
  
  Index: locks.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/win32/locks.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- locks.c	1999/08/17 15:59:42	1.1
  +++ locks.c	1999/09/22 14:14:01	1.2
  @@ -58,7 +58,9 @@
   #include "locks.h"
   #include "apr_portable.h"
   
  -ap_status_t ap_create_lock(ap_context_t *cont, ap_locktype_e type, char *fname, struct
lock_t **lock)
  +ap_status_t ap_create_lock(ap_context_t *cont, ap_locktype_e type, 
  +                           ap_lockscope_e scope, char *fname, 
  +                           struct lock_t **lock)
   {
       struct lock_t *newlock;
       SECURITY_ATTRIBUTES sec;
  @@ -132,10 +134,10 @@
       return APR_SUCCESS;
   }
   
  -ap_status_t ap_get_lockdata(struct lock_t *lock, void *data)
  +ap_status_t ap_get_lockdata(struct lock_t *lock, char *key, void *data)
   {
       if (lock != NULL) {
  -        return ap_get_userdata(lock->cntxt, &data);
  +        return ap_get_userdata(lock->cntxt, key, &data);
       }
       else {
           data = NULL;
  @@ -143,10 +145,11 @@
       }
   }
   
  -ap_status_t ap_set_lockdata(struct lock_t *lock, void *data)
  +ap_status_t ap_set_lockdata(struct lock_t *lock, void *data, char *key,
  +                            ap_status_t (*cleanup) (void *))
   {
       if (lock != NULL) {
  -        return ap_set_userdata(lock->cntxt, data);
  +        return ap_set_userdata(lock->cntxt, data, key, cleanup);
       }
       else {
           data = NULL;
  
  
  

Mime
View raw message