From: Luke Howard Date: Fri, 24 Jan 2003 05:56:47 +0000 (+0000) Subject: Sync with slapd/slapi/slapi_utils.h X-Git-Tag: NO_SLAP_OP_BLOCKS~517 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7f189a15f7269fb1eef120e5fedbaf5e1e381e30;p=openldap Sync with slapd/slapi/slapi_utils.h --- diff --git a/include/slapi-plugin.h b/include/slapi-plugin.h index c749a92945..67d6311f8e 100644 --- a/include/slapi-plugin.h +++ b/include/slapi-plugin.h @@ -114,6 +114,17 @@ int slapi_valueset_next_value( Slapi_ValueSet *vs, int index, Slapi_Value **v); int slapi_valueset_count( const Slapi_ValueSet *vs); void slapi_valueset_set_valueset(Slapi_ValueSet *vs1, const Slapi_ValueSet *vs2); +typedef struct slapi_mutex Slapi_Mutex; +typedef struct slapi_condvar Slapi_CondVar; +Slapi_Mutex *slapi_new_mutex( void ); +void slapi_destroy_mutex( Slapi_Mutex *mutex ); +void slapi_lock_mutex( Slapi_Mutex *mutex ); +int slapi_unlock_mutex( Slapi_Mutex *mutex ); +Slapi_CondVar *slapi_new_condvar( Slapi_Mutex *mutex ); +void slapi_destroy_condvar( Slapi_CondVar *cvar ); +int slapi_wait_condvar( Slapi_CondVar *cvar, struct timeval *timeout ); +int slapi_notify_condvar( Slapi_CondVar *cvar, int notify_all ); + char *slapi_ch_malloc( unsigned long size ); void slapi_ch_free( void **ptr ); void slapi_ch_free_string( char **ptr );