~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to lib/share.h

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __CURL_SHARE_H
 
2
#define __CURL_SHARE_H
 
3
 
 
4
/***************************************************************************
 
5
 *                                  _   _ ____  _     
 
6
 *  Project                     ___| | | |  _ \| |    
 
7
 *                             / __| | | | |_) | |    
 
8
 *                            | (__| |_| |  _ <| |___ 
 
9
 *                             \___|\___/|_| \_\_____|
 
10
 *
 
11
 * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
 
12
 *
 
13
 * This software is licensed as described in the file COPYING, which
 
14
 * you should have received as part of this distribution. The terms
 
15
 * are also available at http://curl.haxx.se/docs/copyright.html.
 
16
 * 
 
17
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
 
18
 * copies of the Software, and permit persons to whom the Software is
 
19
 * furnished to do so, under the terms of the COPYING file.
 
20
 *
 
21
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 
22
 * KIND, either express or implied.
 
23
 *
 
24
 * $Id: share.h,v 1.9 2004/01/07 09:19:35 bagder Exp $
 
25
 ***************************************************************************/
 
26
 
 
27
#include "setup.h"
 
28
#include <curl/curl.h>
 
29
#include "cookie.h"
 
30
 
 
31
/* this struct is libcurl-private, don't export details */
 
32
struct Curl_share {
 
33
  unsigned int specifier;
 
34
  volatile unsigned int dirty;
 
35
  
 
36
  curl_lock_function lockfunc;
 
37
  curl_unlock_function unlockfunc;
 
38
  void *clientdata;
 
39
 
 
40
  curl_hash *hostcache;
 
41
  struct CookieInfo *cookies;
 
42
};
 
43
 
 
44
CURLSHcode Curl_share_lock (
 
45
    struct SessionHandle *, 
 
46
    curl_lock_data,
 
47
    curl_lock_access
 
48
    );
 
49
 
 
50
CURLSHcode Curl_share_unlock (
 
51
    struct SessionHandle *, 
 
52
    curl_lock_data
 
53
    );
 
54
 
 
55
#endif /* __CURL_SHARE_H */