toolkit/crashreporter/google-breakpad/src/third_party/curl/easy.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #ifndef __CURL_EASY_H
michael@0 2 #define __CURL_EASY_H
michael@0 3 /***************************************************************************
michael@0 4 * _ _ ____ _
michael@0 5 * Project ___| | | | _ \| |
michael@0 6 * / __| | | | |_) | |
michael@0 7 * | (__| |_| | _ <| |___
michael@0 8 * \___|\___/|_| \_\_____|
michael@0 9 *
michael@0 10 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
michael@0 11 *
michael@0 12 * This software is licensed as described in the file COPYING, which
michael@0 13 * you should have received as part of this distribution. The terms
michael@0 14 * are also available at http://curl.haxx.se/docs/copyright.html.
michael@0 15 *
michael@0 16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
michael@0 17 * copies of the Software, and permit persons to whom the Software is
michael@0 18 * furnished to do so, under the terms of the COPYING file.
michael@0 19 *
michael@0 20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
michael@0 21 * KIND, either express or implied.
michael@0 22 *
michael@0 23 * $Id: easy.h,v 1.14 2008-05-12 21:43:28 bagder Exp $
michael@0 24 ***************************************************************************/
michael@0 25 #ifdef __cplusplus
michael@0 26 extern "C" {
michael@0 27 #endif
michael@0 28
michael@0 29 CURL_EXTERN CURL *curl_easy_init(void);
michael@0 30 CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...);
michael@0 31 CURL_EXTERN CURLcode curl_easy_perform(CURL *curl);
michael@0 32 CURL_EXTERN void curl_easy_cleanup(CURL *curl);
michael@0 33
michael@0 34 /*
michael@0 35 * NAME curl_easy_getinfo()
michael@0 36 *
michael@0 37 * DESCRIPTION
michael@0 38 *
michael@0 39 * Request internal information from the curl session with this function. The
michael@0 40 * third argument MUST be a pointer to a long, a pointer to a char * or a
michael@0 41 * pointer to a double (as the documentation describes elsewhere). The data
michael@0 42 * pointed to will be filled in accordingly and can be relied upon only if the
michael@0 43 * function returns CURLE_OK. This function is intended to get used *AFTER* a
michael@0 44 * performed transfer, all results from this function are undefined until the
michael@0 45 * transfer is completed.
michael@0 46 */
michael@0 47 CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
michael@0 48
michael@0 49
michael@0 50 /*
michael@0 51 * NAME curl_easy_duphandle()
michael@0 52 *
michael@0 53 * DESCRIPTION
michael@0 54 *
michael@0 55 * Creates a new curl session handle with the same options set for the handle
michael@0 56 * passed in. Duplicating a handle could only be a matter of cloning data and
michael@0 57 * options, internal state info and things like persistant connections cannot
michael@0 58 * be transfered. It is useful in multithreaded applications when you can run
michael@0 59 * curl_easy_duphandle() for each new thread to avoid a series of identical
michael@0 60 * curl_easy_setopt() invokes in every thread.
michael@0 61 */
michael@0 62 CURL_EXTERN CURL* curl_easy_duphandle(CURL *curl);
michael@0 63
michael@0 64 /*
michael@0 65 * NAME curl_easy_reset()
michael@0 66 *
michael@0 67 * DESCRIPTION
michael@0 68 *
michael@0 69 * Re-initializes a CURL handle to the default values. This puts back the
michael@0 70 * handle to the same state as it was in when it was just created.
michael@0 71 *
michael@0 72 * It does keep: live connections, the Session ID cache, the DNS cache and the
michael@0 73 * cookies.
michael@0 74 */
michael@0 75 CURL_EXTERN void curl_easy_reset(CURL *curl);
michael@0 76
michael@0 77 /*
michael@0 78 * NAME curl_easy_recv()
michael@0 79 *
michael@0 80 * DESCRIPTION
michael@0 81 *
michael@0 82 * Receives data from the connected socket. Use after successful
michael@0 83 * curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
michael@0 84 */
michael@0 85 CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen,
michael@0 86 size_t *n);
michael@0 87
michael@0 88 /*
michael@0 89 * NAME curl_easy_send()
michael@0 90 *
michael@0 91 * DESCRIPTION
michael@0 92 *
michael@0 93 * Sends data over the connected socket. Use after successful
michael@0 94 * curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
michael@0 95 */
michael@0 96 CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer,
michael@0 97 size_t buflen, size_t *n);
michael@0 98
michael@0 99 #ifdef __cplusplus
michael@0 100 }
michael@0 101 #endif
michael@0 102
michael@0 103 #endif

mercurial