non-ascii.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_NON_ASCII_H
00002 #define HEADER_CURL_NON_ASCII_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 #include "curl_setup.h"
00025 
00026 #ifdef CURL_DOES_CONVERSIONS
00027 
00028 #include "urldata.h"
00029 
00030 /*
00031  * Curl_convert_clone() returns a malloced copy of the source string (if
00032  * returning CURLE_OK), with the data converted to network format.
00033  *
00034  * If no conversion was needed *outbuf may be NULL.
00035  */
00036 CURLcode Curl_convert_clone(struct Curl_easy *data,
00037                             const char *indata,
00038                             size_t insize,
00039                             char **outbuf);
00040 
00041 void Curl_convert_init(struct Curl_easy *data);
00042 void Curl_convert_setup(struct Curl_easy *data);
00043 void Curl_convert_close(struct Curl_easy *data);
00044 
00045 CURLcode Curl_convert_to_network(struct Curl_easy *data,
00046                                  char *buffer, size_t length);
00047 CURLcode Curl_convert_from_network(struct Curl_easy *data,
00048                                  char *buffer, size_t length);
00049 CURLcode Curl_convert_from_utf8(struct Curl_easy *data,
00050                                  char *buffer, size_t length);
00051 CURLcode Curl_convert_form(struct Curl_easy *data, struct FormData *form);
00052 #else
00053 #define Curl_convert_clone(a,b,c,d) ((void)a, CURLE_OK)
00054 #define Curl_convert_init(x) Curl_nop_stmt
00055 #define Curl_convert_setup(x) Curl_nop_stmt
00056 #define Curl_convert_close(x) Curl_nop_stmt
00057 #define Curl_convert_to_network(a,b,c) ((void)a, CURLE_OK)
00058 #define Curl_convert_from_network(a,b,c) ((void)a, CURLE_OK)
00059 #define Curl_convert_from_utf8(a,b,c) ((void)a, CURLE_OK)
00060 #define Curl_convert_form(a,b) CURLE_OK
00061 #endif
00062 
00063 #endif /* HEADER_CURL_NON_ASCII_H */


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:05