]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
changed function names
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 16 Dec 2001 10:27:45 +0000 (10:27 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 16 Dec 2001 10:27:45 +0000 (10:27 +0000)
lib/gnutls.h.in
lib/gnutls_db.c
lib/gnutls_record.c

index d0a5e878547c45deace088da2b9a6e37f4e6e453..d45c54b726bd9bdf19edf8a10e17dc6cf238ffef 100644 (file)
@@ -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);
index becb38287dbef2750ea2e35c83d4051b7f36b34f..234325edaf76ff04806814900d89b55254aea1b7 100644 (file)
@@ -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;
 }
 
index 14703b8807f0b7b9a7d169d83308dbae8438f448..6952964a213368dcb56ab227999b9583e20d7f43 100644 (file)
@@ -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;
 }