]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Mon Dec 15 10:50:21 CST 2008 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 15:56:43 +0000 (15:56 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 15:56:43 +0000 (15:56 +0000)
  * sofia-resolv/sres_cache.h: added prototype for sres_cache_clean()

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11761 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/libsofia-sip-ua/sresolv/sofia-resolv/sres_cache.h
libs/sofia-sip/libsofia-sip-ua/sresolv/sres_cache.c

index b34260d51d54eea2ccbe3d828382501f078abb35..9eb8ab642b11a938f4778ed624996177a7e0c4c5 100644 (file)
@@ -90,6 +90,9 @@ SRESPUBFUN void sres_cache_free_answers(sres_cache_t *, sres_record_t **);
 /** Free and zero one record. */
 SRESPUBFUN void sres_cache_free_one(sres_cache_t *, sres_record_t *answer);
 
+/** Remove old records from cache.  */
+SRESPUBFUN void sres_cache_clean(sres_cache_t *cache, time_t now);
+
 /** Allocate a cache record */
 SRESPUBFUN
 sres_record_t *sres_cache_alloc_record(sres_cache_t *cache,
index 40cc294a0c7d412507c88f2a81d05c69d4730ee8..f050d67496b0df66eeb8f0d0b7b70f5dd5d5c1b2 100644 (file)
@@ -437,7 +437,13 @@ sres_hash_key(const char *string)
   return result;
 }
 
-/** Remove entries from cache. */
+/** Remove old records from cache.
+ *
+ * Remove entries older than @a now from the cache.
+ *
+ * @param cache    pointer to DNS cache object
+ * @param now      remove older than this time
+ */
 void sres_cache_clean(sres_cache_t *cache, time_t now)
 {
   size_t i;