~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to lib/hostip.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-02-08 11:20:41 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080208112041-hed7sb5r6ghmjf8v
Tags: upstream-7.18.0
ImportĀ upstreamĀ versionĀ 7.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: hostip.h,v 1.59 2007-09-28 21:48:28 bagder Exp $
 
23
 * $Id: hostip.h,v 1.61 2008-01-15 22:44:12 bagder Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#include "setup.h"
125
125
struct SessionHandle;
126
126
struct connectdata;
127
127
 
128
 
void Curl_global_host_cache_init(void);
 
128
/*
 
129
 * Curl_global_host_cache_init() initializes and sets up a global DNS cache.
 
130
 * Global DNS cache is general badness. Do not use. This will be removed in
 
131
 * a future version. Use the share interface instead!
 
132
 *
 
133
 * Returns a struct curl_hash pointer on success, NULL on failure.
 
134
 */
 
135
struct curl_hash *Curl_global_host_cache_init(void);
129
136
void Curl_global_host_cache_dtor(void);
130
 
struct curl_hash *Curl_global_host_cache_get(void);
131
 
 
132
 
#define Curl_global_host_cache_use(__p) ((__p)->set.global_dns_cache)
133
137
 
134
138
struct Curl_dns_entry {
135
139
  Curl_addrinfo *addr;