--- include/ldap_pvt_thread.h 2007/11/07 20:58:37 1.51.2.6 +++ include/ldap_pvt_thread.h 2008/02/11 21:36:19 1.51.2.7 @@ -1,5 +1,5 @@ /* ldap_pvt_thread.h - ldap threads header file */ -/* $OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.51.2.5 2007/10/18 00:39:22 quanah Exp $ */ +/* $OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.51.2.6 2007/11/07 20:58:37 quanah Exp $ */ /* This work is part of OpenLDAP Software . * * Copyright 1998-2007 The OpenLDAP Foundation. @@ -268,11 +268,16 @@ ldap_pvt_thread_pool_getkey LDAP_P(( ldap_pvt_thread_pool_keyfree_t **kfree )); LDAP_F( int ) -ldap_pvt_thread_pool_setkey LDAP_P(( +ldap_pvt_thread_pool_setkey_x LDAP_P(( void *ctx, void *key, void *data, - ldap_pvt_thread_pool_keyfree_t *kfree )); + ldap_pvt_thread_pool_keyfree_t *kfree, + void **olddatap, + ldap_pvt_thread_pool_keyfree_t **oldkfreep )); + +#define ldap_pvt_thread_pool_setkey( ctx, key, data, kfree ) \ + ldap_pvt_thread_pool_setkey_x( (ctx), (key), (data), (kfree), NULL, NULL ) LDAP_F( void ) ldap_pvt_thread_pool_purgekey LDAP_P(( void *key ));