From: Nikos Mavrogiannopoulos Date: Sun, 16 Dec 2001 10:27:45 +0000 (+0000) Subject: changed function names X-Git-Tag: gnutls_0_3_0~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a714fccfe5883f87e42d37dbc2ff783ccc168f5a;p=thirdparty%2Fgnutls.git changed function names --- diff --git a/lib/gnutls.h.in b/lib/gnutls.h.in index d0a5e87854..d45c54b726 100644 --- a/lib/gnutls.h.in +++ b/lib/gnutls.h.in @@ -141,8 +141,7 @@ typedef int (*DB_STORE_FUNC)(void*, gnutls_datum key, gnutls_datum data); typedef int (*DB_REMOVE_FUNC)(void*, gnutls_datum key); typedef gnutls_datum (*DB_RETR_FUNC)(void*, gnutls_datum key); -void gnutls_set_lowat( GNUTLS_STATE state, int num); -void gnutls_set_cache_expiration( GNUTLS_STATE state, int seconds); +void gnutls_db_set_cache_expiration( GNUTLS_STATE state, int seconds); int gnutls_db_set_name( GNUTLS_STATE state, char* filename); int gnutls_db_clean( GNUTLS_STATE state); @@ -234,6 +233,8 @@ typedef ssize_t (*GNUTLS_PUSH_FUNC)(GNUTLS_SOCKET_PTR, const void*, size_t); void gnutls_transport_set_ptr(GNUTLS_STATE state, GNUTLS_SOCKET_PTR ptr); GNUTLS_SOCKET_PTR gnutls_transport_get_ptr(GNUTLS_STATE state); +void gnutls_transport_set_lowat( GNUTLS_STATE state, int num); + typedef void (*LOG_FUNC)( const char*); void gnutls_transport_set_push_function( GNUTLS_STATE, GNUTLS_PUSH_FUNC push_func); diff --git a/lib/gnutls_db.c b/lib/gnutls_db.c index becb38287d..234325edaf 100644 --- a/lib/gnutls_db.c +++ b/lib/gnutls_db.c @@ -118,14 +118,14 @@ void* gnutls_db_get_ptr( GNUTLS_STATE state) { } /** - * gnutls_set_cache_expiration - Sets the expiration time for resumed sessions. + * gnutls_db_set_cache_expiration - Sets the expiration time for resumed sessions. * @state: is a &GNUTLS_STATE structure. * @seconds: is the number of seconds. * * Sets the expiration time for resumed sessions. The default is 3600 (one hour) * at the time writing this. **/ -void gnutls_set_cache_expiration( GNUTLS_STATE state, int seconds) { +void gnutls_db_set_cache_expiration( GNUTLS_STATE state, int seconds) { state->gnutls_internals.expire_time = seconds; } diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c index 14703b8807..6952964a21 100644 --- a/lib/gnutls_record.c +++ b/lib/gnutls_record.c @@ -54,7 +54,7 @@ void _gnutls_set_current_version(GNUTLS_STATE state, GNUTLS_Version version) { } /** - * gnutls_set_lowat - Used to set the lowat value in order for select to check for pending data. + * gnutls_transport_set_lowat - Used to set the lowat value in order for select to check for pending data. * @state: is a &GNUTLS_STATE structure. * @num: is the low water value. * @@ -66,7 +66,7 @@ void _gnutls_set_current_version(GNUTLS_STATE state, GNUTLS_Version version) { * Otherwise it must be called and set lowat to zero. * **/ -void gnutls_set_lowat(GNUTLS_STATE state, int num) { +void gnutls_transport_set_lowat(GNUTLS_STATE state, int num) { state->gnutls_internals.lowat = num; }