~ubuntu-branches/ubuntu/jaunty/texlive-bin/jaunty-security

« back to all changes in this revision

Viewing changes to build/source/libs/curl/include/curl/easy.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2008-06-26 23:14:59 UTC
  • mfrom: (2.1.30 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080626231459-y02rjsrgtafu83yr
Tags: 2007.dfsg.2-3
add missing source roadmap.fig of roadmap.eps in fontinst documentation
(Closes: #482915) (urgency medium due to RC bug)
(new patch add-missing-fontinst-source)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __CURL_EASY_H
 
2
#define __CURL_EASY_H
 
3
/*****************************************************************************
 
4
 *                                  _   _ ____  _     
 
5
 *  Project                     ___| | | |  _ \| |    
 
6
 *                             / __| | | | |_) | |    
 
7
 *                            | (__| |_| |  _ <| |___ 
 
8
 *                             \___|\___/|_| \_\_____|
 
9
 *
 
10
 * Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
 
11
 *
 
12
 * In order to be useful for every potential user, curl and libcurl are
 
13
 * dual-licensed under the MPL and the MIT/X-derivate licenses.
 
14
 *
 
15
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
 
16
 * copies of the Software, and permit persons to whom the Software is
 
17
 * furnished to do so, under the terms of the MPL or the MIT/X-derivate
 
18
 * licenses. You may pick one of these licenses.
 
19
 *
 
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 
21
 * KIND, either express or implied.
 
22
 *
 
23
 * $Id: easy.h,v 1.5 2001/09/13 14:50:04 bagder Exp $
 
24
 *****************************************************************************/
 
25
#ifdef  __cplusplus
 
26
extern "C" {
 
27
#endif
 
28
 
 
29
CURL *curl_easy_init(void);
 
30
CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...);
 
31
CURLcode curl_easy_perform(CURL *curl);
 
32
void curl_easy_cleanup(CURL *curl);
 
33
 
 
34
/*
 
35
 * NAME curl_easy_getinfo()
 
36
 *
 
37
 * DESCRIPTION
 
38
 *
 
39
 * Request internal information from the curl session with this function.  The
 
40
 * third argument MUST be a pointer to a long, a pointer to a char * or a
 
41
 * pointer to a double (as the documentation describes elsewhere).  The data
 
42
 * pointed to will be filled in accordingly and can be relied upon only if the
 
43
 * function returns CURLE_OK.  This function is intended to get used *AFTER* a
 
44
 * performed transfer, all results from this function are undefined until the
 
45
 * transfer is completed.
 
46
 */
 
47
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
 
48
 
 
49
 
 
50
/*
 
51
 * NAME curl_easy_duphandle()
 
52
 *
 
53
 * DESCRIPTION
 
54
 *
 
55
 * Creates a new curl session handle with the same options set for the handle
 
56
 * passed in. Duplicating a handle could only be a matter of cloning data and
 
57
 * options, internal state info and things like persistant connections cannot
 
58
 * be transfered. It is useful in multithreaded applications when you can run
 
59
 * curl_easy_duphandle() for each new thread to avoid a series of identical
 
60
 * curl_easy_setopt() invokes in every thread.
 
61
 */
 
62
CURL* curl_easy_duphandle(CURL *curl);
 
63
 
 
64
#ifdef  __cplusplus
 
65
}
 
66
#endif
 
67
 
 
68
#endif